Like most languages, XQuery has arithmetic operators and comparison operators, and because sequences of nodes are a fundamental datatype in XQuery, it is not surprising that XQuery also has node sequence operators.
The collection() and doc() functions are standard XQuery/XPath functions; whereas, xmldb:xcollection() and xmldb:document() are eXist-db-specific extensions.
Update: Minor correction in the last two rows of the table -- thanks to a comment by Michael Ludwig. I will talk about the efficiency of this and other related XPath expressions in my next post. In my first post I provided a compact one-liner XPath expression that obtains all duplicate items in a given…
Browsing corpora of Interlinearized glossed texts with an adaptable web interface - GitHub - sylvainloiseau/Rest4Interlinear: Browsing corpora of Interlinearized glossed texts with an adaptable web interface