7 Oct
2013
7 Oct
'13
4:08 p.m.
Hi France, one more solution to your indentation issue: if you add an xml:space attribute to the root node of your updated element, no extra indentations wil be added to your output: let $original := <div xml:space="preserve">... And now I’ll finally have a look at your frequently cited mail, Christian ___________________________ 2013/10/7 Christian Grün <christian.gruen@gmail.com>:
I tried that, I figured it was not supported: [XQST0108] No output declarations allowed in library modules.
True, this is a restriction of the XQuery 3.0 specification. However, output declarations are allowed in main modules, and since 7.7, you can specify your RESTXQ functions both in library and main modules [1].
Hope this helps, Christian