Project

Profile

Help

Bug #1992

closed

Template pattern incorrectly identified as never matching

Added by John Lumley over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2014-01-30
Due date:
% Done:

100%

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

Description

The template:

xsl:template match="@*[xp:is.AVT(.)]"

with function:

<xsl:function name="xp:is.AVT" as="xs:boolean">

<xsl:param name="test" as="attribute()"/>

<xsl:sequence select="contains($test,'{')"/>

</xsl:function>

is incorrectly warned as 'Pattern will never match anything', and does not execute. Works correctly in 9.5.1.3. Running as SaxonEE and the fault occurs with both -opt:0 and byte code generation.


Files

bug9.5.1.4.xsl (725 Bytes) bug9.5.1.4.xsl John Lumley, 2014-01-30 11:17

Related issues

Related to Saxon - Bug #1908: Performance: patterns calling a function in a predicateClosedMichael Kay2013-09-20

Actions

Please register to edit this issue

Also available in: Atom PDF