let $c := 1 to 3
return ``[»Count `{ $c }`, and I will be there.«]``</pre>
=Enclosed Expressions=
''Enclosed expression'' is the syntactical term for the expressions that are specified inside a function body, try/catch clauses, node constructors and some other expressions. In the following example expressions, it’s the empty sequence:
<pre class="brush:xquery">
declare function local:x() { () };
try { () } catch * { () },
element x { () },
text { () }
</pre>
With XQuery 3.1, the expression can be omitted. The following query is equivalent to the upper one:
<pre class="brush:xquery">
declare function local:x() { };
try { } catch * { },
element x { }
text { }
</pre>
=Serialization=
(: returns 0 (both strings are compared as equal) :)
compare('a-b', 'ab', 'http://www.w3.org/2013/collation/UCA?alternate=shifted')
</pre>
=Enclosed Expressions=
''Enclosed expression'' is the syntactical term for the expressions that are specified inside a function body, try/catch clauses, node constructors and some other expressions. In the following example expressions, it’s the empty sequence:
<pre class="brush:xquery">
declare function local:x() { () };
try { () } catch * { () },
element x { () },
text { () }
</pre>
With XQuery 3.1, the expression can be omitted. The following query is equivalent to the upper one:
<pre class="brush:xquery">
declare function local:x() { };
try { } catch * { },
element x { }
text { }
</pre>