Re: Invalid URL on otherwise valid eXist queries
Posted by
bsteuhl on
Jan 19, 2010; 8:51pm
URL: https://discuss.orbeon.com/Invalid-URL-on-otherwise-valid-eXist-queries-tp1008531p1017927.html
I am using square brackets as a predicate in an eXist xquery which works bu fails in submission from xForms because of the square bracket. I found this post but maybe I do not understand something because using encode-for-uri does not do anything. Here is my submission:
<xforms:submission id="psiSearch" method="get"
action="
http://localhost:8600/exist/rest/db/?_query=declare namespace xmldb='
http://exist-db.org/xquery/xmldb';
let $resources := for $x in xmldb:get-child-resources('/db/CJPSIS/completedPSI')[contains(., '000000029098')]
return <file>{{$x}}</file>
return <files>{{$resources}}</files>"
replace="instance" instance="searchResults" xxforms:username="XXXX" xxforms:password="XXXXXX!" validate="false">
<xforms:message ev:event="xforms-submit-error" level="modal">exist call failed</xforms:message>
</xforms:submission>
How do I escape the square brackets above for the predicate? Thank you.