Project

Profile

Help

Bug #2409

closed

Document URI property is not transferred to the second stylesheet when using the saxon:next-in-chain extension

Added by Radu Pisoi over 9 years ago. Updated almost 7 years ago.

Status:
Won't fix
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2015-06-25
Due date:
% Done:

0%

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

Description

The document URI of the source XML document is not available in chaining transformations when using the saxon:next-in-chain extension.

The next XSLT code from the stylesheet pointed by the saxon:next-in-chain attribute:

<xsl:variable name="docURI" select="document-uri(/)"/>
<xsl:message>Document URI: '<xsl:value-of select="$docURI"/>'</xsl:message>

will produce the next message:

Document URI: ''.

If I run the same stylesheet with Saxon 9.5.1.7 I get the expected result:

[Saxon-PE] Document URI: file:/D:/workspace/eXml/test/EXM-33883/res1.xml

Command line to reproduce the issue:

D:\workspace\eXml>java -Xmx60m -cp lib/saxon9ee.jar net.sf.saxon.Transform -s:file:instance.xml -xsl:main.xsl -o:result.xml

Files

instance.xml (59 Bytes) instance.xml Radu Pisoi, 2015-06-25 11:25
main.xsl (433 Bytes) main.xsl Radu Pisoi, 2015-06-25 11:25
second.xsl (796 Bytes) second.xsl Radu Pisoi, 2015-06-25 11:25

Please register to edit this issue

Also available in: Atom PDF