I can't seem to paramaterize LIMIT and OFFSET in a SPARQL query. This is the error message I get:
<rapi:error xmlns:rapi="http://marklogic.com/rest-api"> <rapi:status-code>500</rapi:status-code> <rapi:status>INTERNAL ERROR</rapi:status> <rapi:message-code>XDMP-UNEXPECTED</rapi:message-code> <rapi:message> XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected <variable>, expecting <integer literal>. See the MarkLogic server error log for further detail. </rapi:message> </rapi:error> I want to be able to pass values for LIMIT and OFFSET to XQuery and extract them with something like this: map:entry("limit", xs:unsignedInt(xdmp:get-request-field("limit", "100"))) Is this possible to do?
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
