Project

Profile

Help

Bug #4019

closed

Problems with reuse of Transformer instances

Added by Anonymous about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
-
Start date:
2018-11-12
Due date:
% Done:

100%

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

Description

Starting with SaxonHE version 9.9.0-1 there is a problem with reuse of Transformer instances. If you have variables set in your XSLT outside of a template they are not cleared when you reuse the Transformer with another XML input.

The attached code example illustrates the issue. In the XSLT there is a variable populated with a value selected from the XML. The same Transformer instance is then used for two transformations in a row with different XML input. Both times the same value is output.


Files

saxon-test.zip (60.7 KB) saxon-test.zip Anonymous, 2018-11-12 01:15

Please register to edit this issue

Also available in: Atom PDF