Hi Pascal,
You are right, twice. It looks like you have to add path-namespaces in the admin console. It is next to where you add the path index.. Kind regards, Geert *Van:* [email protected] [mailto: [email protected]] *Namens *Pascal Cadet *Verzonden:* woensdag 31 oktober 2012 15:39 *Aan:* MarkLogic Developer Discussion *Onderwerp:* Re: [MarkLogic Dev General] Path index with namespace in an serialized cts:query node Geert, There is already the namespace in the prolog of my xqy. Do you mean "xdmp:with-namespaces" ? With "xdmp:with-namespaces", the result is same ("no namespace binding"). Because the namespace to bind is in a element value and not in the element (or attribute). Regards, Pascal 2012/10/31 Geert Josten <[email protected]> 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 -- *Pascal CADET* 06 12 97 02 53 www.pressinnov.com
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
