Bug #3530
Updated by Michael Kay over 4 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: ~~~ <root xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="subfolder/child.xml"/> </root> ~~~ subfolder/child.xml: ~~~ <child/> ~~~ xsl: ~~~ <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> ~~~ output: ~~~ root: file:/[…]/base-uri-test/root.xml child: file:/[…]/base-uri-test/subfolder/subfolder/child.xml ~~~ So “subfolder” is duplicated in the URI. I get the same result wen calling the java method NodeInfo.getBaseURI().