The restriction goes back to the XML standard:
https://www.w3.org/TR/xmlbase/#granularity
Hans-Juergen Rennau hrennau@yahoo.de schrieb am Mo., 28. Aug. 2023, 16:39:
A pity (for me), because I need to preserve the information about an element's origin without changing the element by adding a clumsy @xml:base.
Out of luck.
Kind regards, Hans-Jürgen
Am Montag, 28. August 2023 um 16:11:56 MESZ hat Christian Grün < christian.gruen@gmail.com> Folgendes geschrieben:
after manifold motions making little speed it dawned on me that the problem occurs if the node in question is an element node, rather than the document node, as demonstrated by this query:
Thanks. This behavior is compliant with the spec: A copied element loses its reference to the document node providing the base URI.
Hope this helps, Christian