Use this tag for questions specific to XQuery version 3.0 and no other version.
XQuery 3.0 introduces the following new features:
Functions are first-class items which can be passed as parameters to other functions
Functions and variables support
public
andprivate
annotationsUnion types are allowed in function arguments
XML Schema 1.1 is supported
Clauses added to FLWOR expressions:
group by
: assigns tuples in the input tuple stream to a group, returns a tuple for each grouptumbling window
: destructing assignment of a sequence during iteration without intersectionsliding window
: destructing assignment of a sequence during iteration with intersectioncount clause
: binds a variable to the position in each tuple in the tuple streamallowing empty
: facilitates outer joins as in SQL
decimal format declaration: adds a decimal format to the statically known decimal formats
try/catch expressions: allows for user defined recovery from errors
switch expressions: allows for user defined branching logic
References