Changes

Jump to navigation Jump to search
304 bytes added ,  22:59, 11 October 2017
=Pragmas=
A [[Options|local database option]] can also be assigned locally via a pragma. Examples: * Whitespace chopping is disabled for a particular document:
<pre class="brush:xquery">
(# db:chop false #) { doc('doc.xml') }
</pre>
 
* {{Version|9.0}}: Enforce index rewriting if database name is not static:
 
<pre class="brush:xquery">
(# db:enforceindex #) {
for $db in ('persons1', 'persons2', 'persons3')
return db:open($db)//name[text() = 'John']
}
</pre>
Bureaucrats, editor, reviewer, Administrators
12,003

edits

Navigation menu