Project

Profile

Help

Bug #2008

closed

Problem using xsl:copy-of with an xsl:variable

Added by Nicolas Houillon about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2014-02-18
Due date:
% Done:

100%

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

Description

The problem occurs in some very specific conditions, so I made an example project to illustrate it, that I'm attaching to this ticket.

The problem appears when :

  1. you run a transformation that opens a large file with document()

  2. run a second transformation (even if unrelated) that puts some data in an xsl:variable and use xsl:copy-of on that variable

One thing about this bug that my example doesn't illustrate :

  • only some parts of the variable aren't copied, if you make an xml structure in the variable and fill it with data from different places in the source document, only the first field of data inserted with xsl:value-of will be omitted, the structure and the following data will be there.

To run the example project use @mvn test@, it will generate a large file in the project root dir, then run a transformation on that file (without any output), then run a transformation that makes a variable and a copy of it, and display the (incorrect) result. Then it will run that exact transformation again, displaying the result again, which is (for some reason) correct.


Files

saxon-error-demo.zip (5.36 KB) saxon-error-demo.zip Nicolas Houillon, 2014-02-18 15:33

Please register to edit this issue

Also available in: Atom PDF