Project

Profile

Help

Bug #6600

open

current function wrongly allowed in pattern

Added by Heiko Theißen 5 days ago. Updated about 3 hours ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2024-11-29
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

According to https://www.w3.org/TR/xslt-10/#function-current

It is an error to use the current function in a pattern.

But Saxon-JS 2.7.0 compiles the following XSLT 1.0 stylesheet

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="a[.=current()]"/>
</xsl:stylesheet>

It seems that this pattern is effectively treated like the vacuous condition in a[.=.], but a "Static error in pattern" would be preferable.

Please register to edit this issue

Also available in: Atom PDF Tracking page