Actions
Bug #4886
closed![Author: Maarten Kroon](https://www.gravatar.com/avatar/6aaae0aa2f197a521fbcee869fc0973f?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Error "Cannot copy a variable reference whose binding is unknown" when using inline variables in specific situation
Start date:
2021-01-29
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:
Description
Hi,
In some of my stylesheet transformations a Java exception is thrown with the message "Cannot copy a variable reference whose binding is unknown". I tried to create a simple example in which the error can be reproduced. The error seems to occur when:
- The variable reference is an inline variable (expand-text="yes")
- The template in which the variable is used has both a name and match attribute.
- The template is in an included/imported stylesheet and the variable is declared in the including/importing stylesheet.
The transformation can be executed using the command:
java -jar saxon-he-10.3.jar -s:source.xml -xsl:including.xsl
All files are attached
Regards, Maarten
Files
Please register to edit this issue
Actions