Project

Profile

Help

Bug #2545

closed

Invalid slot number: local variables in match pattern with mode="#all"

Added by Michael Kay over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
Start date:
2015-12-16
Due date:
% Done:

100%

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

Description

Reported on the help forum:

Using: Saxon-EE 9.6.0.7

Input:

<?xml version="1.0" encoding="UTF-8"?>
<A/>

Stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
    <xsl:template match="*[some $item in ('') satisfies $item eq local-name()]" mode="#all"/>
</xsl:stylesheet>

I've been able to isolate this issue to this very small subset of the stylesheet I encountered it in. Removing or changing the mode attribute avoids the error, as does rewriting the match pattern to *[local-name() = ('')]. (The sequence being compared against was originally in a stylesheet variable and contained more than just an empty string.)

I'm stuck with version 9.6.0.7 for the time being, so my apologies if this issue has already been addressed.

Please register to edit this issue

Also available in: Atom PDF