[MarkLogic Dev General] element-query 3rd parameter?

William Merritt Sawyer william.sawyer at ldschurch.org
Thu Mar 1 14:11:45 PST 2012

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:element-query( xs:QName($element), cts:and-query(()), 'self')
let $uris2 :=
        cts:element-query( xs:QName($element), cts:and-query(()))
return (

10133 - with self option
31830 - without options

From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] 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.


From: general-bounces at developer.marklogic.com<mailto:general-bounces at developer.marklogic.com> [mailto:general-bounces at developer.marklogic.com]<mailto:[mailto:general-bounces at developer.marklogic.com]> On Behalf Of William Merritt Sawyer
Sent: Thursday, March 01, 2012 1:34 PM
To: General at developer.marklogic.com<mailto:General at developer.marklogic.com>
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?
- 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120301/123bed7e/attachment.html 

More information about the General mailing list