Re: [basex-talk] use-character-maps vs parameter-document with db:export()

2023-10-09 Thread Christian Grün
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  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-instance
>
>
>
> 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 
> *Gesendet:* Dienstag, 3. Oktober 2023 14:38
> *An:* Zimmel, Daniel 
> *Cc:* BaseX 
> *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
>
>
>
> [1] https://github.com/qt4cg/qtspecs/issues
>
>
>


Re: [basex-talk] use-character-maps vs parameter-document with db:export()

2023-10-05 Thread Zimmel, Daniel
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-instance

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 
Gesendet: Dienstag, 3. Oktober 2023 14:38
An: Zimmel, Daniel 
Cc: BaseX 
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

[1] https://github.com/qt4cg/qtspecs/issues



Re: [basex-talk] use-character-maps vs parameter-document with db:export()

2023-10-03 Thread Christian Grün
>
> 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

[1] https://github.com/qt4cg/qtspecs/issues


[basex-talk] use-character-maps vs parameter-document with db:export()

2023-09-29 Thread Zimmel, Daniel
Hi,

when using db:export, the serialization parameter use-character-maps works just 
fine.
But can someone explain why it is not possible to use parameter-document? At 
least, it does not work here with 10.3.

As in:

db:export($dbname,$path, map{
  'indent':'no',
  'omit-xml-declaration':'no',
  'parameter-document':'map.xml'
})

OK I can see that there is no parameter-document option in the table I can find 
here defined for fn:serialize():
https://www.w3.org/TR/xpath-functions-31/#func-serialize

When not using db:export(), all is well as described:
https://docs.basex.org/wiki/Serialization#Character_mappings

So in short, I think the answer is the spec. Is it?

Have a nice weekend, Daniel