Changes

Jump to navigation Jump to search
24 bytes removed ,  18:37, 1 December 2023
m
Text replacement - "<syntaxhighlight lang="xquery">" to "<pre lang='xquery'>"
* <code>{URI}a=x</code> &nbsp; binds the value {{Code|x}} to the variable $a with the namespace {{Code|URI}}.
* In the following [[Commands#Command_Scripts| Command Script]], the value {{Code|hello world!}} is bound to the variable {{Code|$GREETING}}:
<syntaxhighlight pre lang="'xquery"'>
SET BINDINGS GREETING="hello world!"
XQUERY declare variable $GREETING external; $GREETING
| '''Summary'''
|When creating new nodes in XQuery via [https://www.w3.org/TR/xquery-31/#id-constructors Node Constructors], copies of all enclosed nodes are created, and the copied nodes get new node identities. As a result, the following query yields <code>false</code>:
<syntaxhighlight pre lang="'xquery"'>
let $a := <a/>
let $b := <b>{ $a }</b>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu