Actions
Bug #2530
closedAnt XSLT task - top-level variables always refer to first input document
Start date:
2015-12-04
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7
Fixed in Maintenance Release:
Platforms:
Description
Using 9.7, if I use an Ant XSLT task on multiple files (via @basedir/@destdir), and there are top-level variables in the XSLT, they use the first input document in the entire set as their context rather than the current input document. Local variables do not have this issue.
See attached zip - the top-level variables in test.xsl always use file1.xml as the context, even when processing file2.xml and file3.xml.
I'm using SaxonHE 9.7.0.1 with Ant 1.9.2 on Windows 7. When I switch back in the 9.6.0.5 jar, it works as expected.
Files
Please register to edit this issue
Actions