Copy Modify Return - base URI preserved?

Wednesday, 7 September 2022 · 2 messages
HR
Hans-Juergen Rennau7 Sep 2022 09:30 #
Dear BaseX people, I just observed that a document obtained by applying Copy/Modify/Return to a source document preserves its base URI, that is, base-uri($resultDoc) = base-uri($sourceDoc). That is marvellous, but can I rely on this as a feature? (In comparison - if I obtained the result document in a "conventional" way by recursive processing of the source document, the base URI would be lost, unless I added an @xml:base.) Kind regards,Hans-Jürgen
CG
Christian Grün7 Sep 2022 10:40 #
Hi Hans-Jürgen,
Quoted text · Hans-Juergen Rennau · 1 line
> can I rely on this as a feature?
Yes, you can! Cheers, Christian
Quoted text · Hans-Juergen Rennau · 8 lines
On Wed, Sep 7, 2022 at 9:30 AM Hans-Juergen Rennau <hrennau at yahoo.de> wrote: > > Dear BaseX people, > > I just observed that a document obtained by applying Copy/Modify/Return to a source document preserves its base URI, that is, base-uri($resultDoc) = base-uri($sourceDoc). That is marvellous, but can I rely on this as a feature? (In comparison - if I obtained the result document in a "conventional" way by recursive processing of the source document, the base URI would be lost, unless I added an @xml:base.) > > Kind regards, > Hans-Jürgen

⚡Generated with XQuery