Project

Profile

Help

Bug #3530

closed

Base URI of an element introduced using xi:include

Added by Michael Kay over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2017-11-15
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:

Description

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().

Please register to edit this issue

Also available in: Atom PDF