This is kind of a pedantic style-related question, but I am building a structured query and want to submit it to the REST values endpoint. However, that endpoint doesn't like double quotes, so I can't do something tidy like: concat($url, $path, "?options=uris&structuredQuery=", xdmp:quote($structured-query-xml)) because xdmp:quote outputs double quotes for the namespace declaration. I tried POSTing the XML, but the values endpoint only accepts GET requests (?). I couldn't find an option to force xdmp:quote to serialize attributes using single quotes (maybe that’s not technically allowed?).

Is there a better way to approach this, or is my best option to just replace the double quotes from xdmp:quote output? 

-Will


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to