Bug #3530
Updated by Michael Kay over 6 years ago
Reported by Patrik Stellmann today on the Saxon help list (SourceForge):
I’ve created following test scenario and run it with saxon EE 9.6.0.7 (from within oXygen 18.1) on windows
root.xml:
<pre>
<root xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="subfolder/child.xml"/>
</root>
</pre>
subfolder/child.xml:
<pre>
<child/>
</pre>
xsl:
<pre>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" expand-text="yes">
<xsl:template match="*">
<xsl:message>{name(.)}: {base-uri(.)}</xsl:message>
<xsl:next-match/>
</xsl:template>
</xsl:stylesheet>
</pre>
output:
<pre>
root: file:/[…]/base-uri-test/root.xml
child: file:/[…]/base-uri-test/subfolder/subfolder/child.xml
</pre>
So “subfolder” is duplicated in the URI. I get the same result wen calling the java method NodeInfo.getBaseURI().