Changes

Jump to navigation Jump to search
377 bytes added ,  17:42, 5 July 2023
m
Add note on boundary-space preserve
In addition, databases may considerably increase in size, as whitespaces used for indenting an XML document will be interpreted and stored as additional text nodes. If your XML resources are structured and have no [[Full-Text#Mixed Content|mixed content]], it is advisable to enable whitespaces stripping when importing them to a database.
Note {{Option|STRIPWS}} only applies to stored XML and not to XML constructed within XQuery source files. Within XQuery sources the standard {{Code|boundary-space}} setting applies. This defaults to {{Code|strip}}. To preserve XML whitespace in XQuery source add the following to the prolog:
<syntaxhighlight lang="xquery">
declare boundary-space preserve;
</syntaxhighlight>
==Value Resources==
administrator, editor
31

edits

Navigation menu