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…
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.
P. Michiels. Proc. of the VLDB 2003 PhD Workshop. Co-located with the 29th International Conference on Very Large Data Bases (VLDB 2003), 76, Berlin, Germany, (сентября 2003)
G. Ghelli, C. Ré, и J. Siméon. Proc. of the 2nd International Workshop on Database Technologies for Handling XML Information on the Web (DataX 2006), Munich, Germany, (2006)