Project

Profile

Help

Bug #4886

closed

Error "Cannot copy a variable reference whose binding is unknown" when using inline variables in specific situation

Added by Maarten Kroon about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
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

including.xsl (297 Bytes) including.xsl Maarten Kroon, 2021-01-29 16:24
included.xsl (334 Bytes) included.xsl Maarten Kroon, 2021-01-29 16:24
source.xml (47 Bytes) source.xml Maarten Kroon, 2021-01-29 16:24
stacktrace.txt (1.42 KB) stacktrace.txt Maarten Kroon, 2021-01-29 16:24

Please register to edit this issue

Also available in: Atom PDF