So I am finding it has options and it does something. Adding the self option
limited the cts:element-query to only match root image nodes. I would be
interested in what other options it supports.
- Will
Example Query
xquery version "1.0-ml";
let $element := 'image'
let $uris1 :=
cts:search(/*,
cts:element-query( xs:QName($element), cts:and-query(()), 'self')
)/xdmp:node-uri(.)
let $uris2 :=
cts:search(/*,
cts:element-query( xs:QName($element), cts:and-query(()))
)/xdmp:node-uri(.)
return (
fn:count($uris1),
fn:count($uris2)
)
RESULT
10133 - with self option
31830 - without options
From: [email protected]
[mailto:[email protected]] On Behalf Of Danny Sokolsky
Sent: Thursday, March 01, 2012 2:52 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] element-query 3rd parameter?
I am not positive, but I think the 3rd param is for options, but there are no
options to cts:element-query, so it there is no documentation for it.
-Danny
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
On Behalf Of William Merritt Sawyer
Sent: Thursday, March 01, 2012 1:34 PM
To: [email protected]<mailto:[email protected]>
Subject: [MarkLogic Dev General] cts:element-query 3rd parameter?
I am finding cts:element-query has an optional third parameter but I am finding
no documentation mentioning it. Can anyone tell me what this third parameter
is and purpose?
Thanks,
- Will
NOTICE: This email message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies of
the original message.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general