On 2/13/2023 8:28 PM, Patrick Durusau wrote:
Greetings! I have the following in the prolog of an XQuery: declare namespace output = 'http://www.w3.org/2010/xslt-xquery-serialization'; declare option output:method 'basex'; declare option output:basex 'indent=yes, newline=\n'; I'm following the example at: https://docs.basex.org/wiki/Serialization for CSV, reasoning the same form should work for basex. Sadly, BaseX 10.4 on Debian reports: [XQST0109] Unknown option 'basex Is it because basex isn't in the namespace of 'http://www.w3.org/2010/xslt-xquery-serialization'; ? OK so I change the namespace to http://tm.durusau.net and it runs! Sadly not applying the requested formatting. Some guidance on serialization please?
I think the right syntax is declare namespace output = 'http://www.w3.org/2010/xslt-xquery-serialization'; declare option output:method 'basex'; declare option output:indent 'yes'; declare option output:newline '\n';