Thanks, Daniel,
I double-checked the documents. As you’ve already indicated, the parameter-document option is only allowed in the query prolog, i.e., it is an XQuery feature, not something that’s defined in the Serialization or XQuery Functions & Operators spec. I’ve revised our documentation. I assume the option was not light-weight enough to embed it in the other specs, but it could still be discussed in the qtspecs repo if you like.
Best, Christian
On Thu, Oct 5, 2023 at 1:34 PM Zimmel, Daniel D.Zimmel@esvmedien.de wrote:
Thanks for the hint.
So this would be a parameter for the implementation option that is described in detail here:
https://www.w3.org/TR/xslt-xquery-serialization-31/#serparams-in-xdm-instanc...
I was not sure, because it is declared a standard (BaseX) parameter here https://docs.basex.org/wiki/Serialization#Standard_Parameters but not getting respected in db:export() ( https://docs.basex.org/wiki/Database_Module#db:export)
It only works when is is declared in the prolog, as in your example on the wiki page (declare option output:parameter-document "map.xml";)
Daniel
*Von:* Christian Grün christian.gruen@gmail.com *Gesendet:* Dienstag, 3. Oktober 2023 14:38 *An:* Zimmel, Daniel D.Zimmel@ESVmedien.de *Cc:* BaseX basex-talk@mailman.uni-konstanz.de *Betreff:* Re: [basex-talk] use-character-maps vs parameter-document with db:export()
Hi Daniel,
Is it?
It is. Maybe the parameter could be introduced with the 4.0 version of the spec. I invite you to add a proposal for it in the qtspecs repository [1].
Thanks,
Christian