Changes

Jump to navigation Jump to search
96 bytes removed ,  18:30, 1 December 2023
m
Text replacement - "</syntaxhighlight>" to "</pre>"
<syntaxhighlight lang="xquery">
xquery:eval(xs:anyURI('cleanup.xq'))
</syntaxhighlightpre>
* You can bind the context and e.g. operate on a certain database only:<br/>
<syntaxhighlight lang="xquery">
xquery:eval("//country", map { '': db:get('factbook') })
</syntaxhighlightpre>
* The following expressions use strings as keys. All of them return 'XML':<br/>
<syntaxhighlight lang="xquery">
map { '{URI}xml': 'XML' }
)
</syntaxhighlightpre>
* The following expressions use QNames as keys. All of them return 'XML':<br/>
<syntaxhighlight lang="xquery">
let $vars := map { xs:QName('pref:xml'): 'XML' }
return xquery:eval($query, $vars)
</syntaxhighlightpre>
|}
update:output('TEMPORARY DATABASE WAS CLEANED UP')
")
</syntaxhighlightpre>
|}
</QueryPlan>
</MainModule>
</syntaxhighlightpre>
|}
map { 'parallel': 8 }
)
</syntaxhighlightpre>
* Parallel sleep function calls. The function is expected to finish in 1 second if the system has at least 2 cores:
<syntaxhighlight lang="xquery">
let $f := function() { prof:sleep(1000) }
return xquery:fork-join(($f, $f))
</syntaxhighlightpre>
|- valign="top"
|'''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu