A useful way to combine cts:element-query and cts:and-query to test for the presence of an element.
The and query gets passed an empty sequence () and this will return either true or false depending on whether the element is found.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2010
(43)
-
▼
September
(7)
- MarkLogic: Creating Multiple Range Element Indexes
- MarkLogic: Listing all Collections in a Database
- MarkLogic: Basic Database Cloning Script
- MarkLogic: Estimating the number of documents cont...
- MarkLogic: Search: Compound OR Queries
- MarkLogic: XQuery: Check for the presence of an el...
- MarkLogic: XQuery: Type Validation using xsi:type
-
▼
September
(7)
No comments:
Post a Comment