Project

Profile

Help

Bug #5633

closed

Cannot copy a variable reference whose binding is unknown [Saxon 11]

Added by Radu Coravu over 2 years ago. Updated over 2 years ago.

Status:
Duplicate
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-08-04
Due date:
% Done:

0%

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

Description

Attaching a zip with XSLTs. If I try to create a transformer over the stylesheet "EXM-38993\dita2fo_import.xsl" I get an exception thrown:

java.lang.UnsupportedOperationException: Cannot copy a variable reference whose binding is unknown
	at net.sf.saxon.expr.GlobalVariableReference.copy(GlobalVariableReference.java:43)
	at net.sf.saxon.expr.FilterExpression.copy(FilterExpression.java:1188)
	at net.sf.saxon.expr.SlashExpression.copy(SlashExpression.java:637)
	at net.sf.saxon.pattern.GeneralNodePattern.makeTopNodeEquivalent(GeneralNodePattern.java:61)
	at net.sf.saxon.pattern.GeneralNodePattern.<init>(GeneralNodePattern.java:47)
	at net.sf.saxon.expr.SlashExpression.toPattern(SlashExpression.java:849)
	at net.sf.saxon.expr.sort.DocumentSorter.toPattern(DocumentSorter.java:252)
	at net.sf.saxon.pattern.PatternMaker.fromExpression(PatternMaker.java:45)
	at net.sf.saxon.pattern.PatternParser.parsePattern(PatternParser.java:160)
	at net.sf.saxon.pattern.Pattern.make(Pattern.java:58)
	at net.sf.saxon.style.StyleElement.makePattern(StyleElement.java:739)
	at net.sf.saxon.style.XSLTemplate.prepareAttributes(XSLTemplate.java:371)
	at net.sf.saxon.style.StyleElement.processAttributes(StyleElement.java:610)
	at net.sf.saxon.style.StyleElement.processAllAttributes(StyleElement.java:547)
	at net.sf.saxon.style.XSLTemplate.processAllAttributes(XSLTemplate.java:428)
	at net.sf.saxon.style.PrincipalStylesheetModule.processAllAttributes(PrincipalStylesheetModule.java:587)
	at net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:367)
	at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:290)
	at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:249)
	at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:113)
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:932)
	at net.sf.saxon.jaxp.SaxonTransformerFactory.newTemplates(SaxonTransformerFactory.java:174)
	at net.sf.saxon.jaxp.SaxonTransformerFactory.newTransformer(SaxonTransformerFactory.java:131)

Before, with Saxon 10 I got an error like "The parent axis starting at a document node will never select anything" with the same stylesheet.


Files

EXM-38993.zip (194 KB) EXM-38993.zip Radu Coravu, 2022-08-04 08:41

Related issues

Is duplicate of Saxon - Bug #5495: java.lang.UnsupportedOperationException: Cannot copy a variable reference whose binding is unknownClosed2022-05-18

Actions

Please register to edit this issue

Also available in: Atom PDF