Project

Profile

Help

Bug #5131

closed

XSLT command line tool has different result with <xsl:global-context-item use="absent"/>

Added by Frederic Guilbeault about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2021-10-18
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 11
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

XSLT command line tool result should be the same when <xsl:global-context-item use="absent"/> is specified. The only difference is that with <xsl:global-context-item use="absent"/> the source tree is not built prior to invoking applyTemplates. Otherwise, by default, the tree is built and added to the global context prior to invoking applyTemplates.

How the source XML is pre-processed should not affect the result of the XSLT transformation.

Please refer to attached files.zip and matching command lines below:

java -jar /tmp/saxon9he.jar -s:datastore.xml -xsl:orig.xsl -o:orig_output.xml -t -T > orig_debug.log 2>&1 java -jar /tmp/saxon9he.jar -s:datastore.xml -xsl:nocontext.xsl -o:nocontext_output.xml -t -T > nocontext_debug.log 2>&1

saxon9he.jar is taken from https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/SaxonHE9-9-1-8J.zip/download

files.zip contains the following: saxonica_ticket/ ├── datastore.xml ├── nocontext_debug.log ├── nocontext_output.xml ├── nocontext.xsl ├── orig_debug.log ├── orig_output.xml ├── orig.xsl └── README


Files

files.zip (6.48 KB) files.zip Frederic Guilbeault, 2021-10-19 00:04

Please register to edit this issue

Also available in: Atom PDF