Changes

Jump to navigation Jump to search
48 bytes removed ,  18:36, 1 December 2023
m
Text replacement - "<syntaxhighlight lang="xquery">" to "<pre lang='xquery'>"
|
* Creates a new database with an initial document and adds a document to an existing database.
<syntaxhighlight pre lang="'xquery"'>
declare %updating function local:update(
$database as xs:string,
|
* Creates two databases:
<syntaxhighlight pre lang="'xquery"'>
let $names := ('db1', 'db2')
return update:for-each($names, db:create#1)
|
* Renames nodes in an XML snippets:
<syntaxhighlight pre lang="'xquery"'>
copy $xml := <xml><a/><b/></xml>
modify update:for-each-pair(
|
* Inserts attributes into a document:
<syntaxhighlight pre lang="'xquery"'>
copy $doc := <xml/>
modify update:map-for-each(
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu