Project

Profile

Help

Bug #6218

closed

Allows $value in match patterns for xsl:accumulator-rule when exporting

Added by Norm Tovey-Walsh 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2023-10-09
Due date:
% Done:

0%

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

Description

The underlying cause of #6096 is that the $value variable reference is incorrectly allowed in the xsl:accumulator-rule match pattern. SaxonJ correctly reports XPST008 if the stylesheet is executed, but it does not detect the problem when exporting an SEF file.

Should it? Or should the SEF runtime detect this problem and report the error?

Actions #1

Updated by Michael Kay 7 months ago

  • Status changed from New to Closed

I think this has been fixed. Attempting to export the test case accumulator-091.xsl fails:

Error at char 15 in xsl:accumulator-rule/@match on line 11 column 101 of accumulator-091.xsl:
  XPST0008  Variable $value has not been declared (or its declaration is not in scope)
Package compilation failed: one error reported

The change was to StyleElement.bindLocalVariable() and was committed on 2023-06-26.

Checked on the 11.x, 12.x, and main branches.

I'm closing this, please reopen if there is new evidence.

Please register to edit this issue

Also available in: Atom PDF