[MarkLogic Dev General] 3.2 documentation for cts:element-value-query

Michael Blakeley michael.blakeley at marklogic.com
Wed Sep 5 07:43:48 PDT 2007


Peter,

That seems to be a typo in the docs. The correct option seems to be 
"descendant-or-self".

cts:element-value-query(xs:QName('p'), 'cat', 'descendant-or-self')
=>
cts:element-value-query(xs:QName("p"), "cat", 
("descendant-or-self","lang=en"), 1)

-- Mike

Peter Hickman wrote:
> According to the 3.2 docs cts:element-value-query takes a list of option 
> which should include "descendant-or-child". However when I try and use 
> it I am getting
> 
> XDMP-OPTION: cts:element-value-query(xs:QName("oaoomo:sf_author"), "J.A. 
> Owens", ("case-insensitive", "diacritic-insensitive", 
> "punctuation-insensitive", ...)) -- Invalid option "descendant-or-child"
> 
> Which is at fault here, the docs or MarkLogic?
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4532 bytes
Desc: S/MIME Cryptographic Signature
Url : http://xqzone.marklogic.com/pipermail/general/attachments/20070905/dc2d3b0b/smime.bin


More information about the General mailing list