Hi Pascal,


Put declare namescape my ="http://my_namespace";; in the prolog of you xqy,
or use xdmp:namespaces to wrap search:estimate if it needs to be dynamic.



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *Pascal Cadet
*Verzonden:* woensdag 31 oktober 2012 15:23
*Aan:* MarkLogic MailingList
*Onderwerp:* [MarkLogic Dev General] Path index with namespace in an
serialized cts:query node



Hi !



How can I use index path namespace in an serialized cts:query node ?



         *search:estimate* (
                 <cts:path-range-query *operator* =*"="* >
                     <cts:path *xmlns* =*"
http://marklogic.com/appservices/search"* *xmlns:my* =*"http://my_namespace";
*> /my:root/my:elt[@att="val"]</cts:path>
                     <cts:value *xsi:type* =*"xs:string"* *xmlns:xsi* =*"
http://www.w3.org/2001/XMLSchema-instance"* >search</cts:value>
             </cts:path-range-query>

          )



Result :
[1.0-ml] XDMP-UNBPRFX: (err:XPST0081) Prefix my has no namespace binding





Any idea ?



Thanks



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

Reply via email to