Gary,
Yes,
cts:element-query(xs:QName('myElement'),cts:and-query( () ))
Empty ANDs are "truth" and empty ORs are "falsehood." It makes sense since
every conjunct in an AND is an additionl condition needed to pass for the item
to be in the queried set. No conjuncts means everything is in.
Yours,
Damon
________________________________
From: [email protected]
[[email protected]] On Behalf Of Gary Larsen
[[email protected]]
Sent: Wednesday, July 27, 2011 11:53 AM
To: 'General MarkLogic Developer Discussion'
Subject: [MarkLogic Dev General] check element existance
Hi,
Is there a cts:query that I can use to determine if an element exists in a
document (regardless of value)?
This does not work: cts:element-query(xs:QName('myElement'),())
Thanks for your expertise,
gary
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general