This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28424 - [XT30] error-3520a raises a different error
Summary: [XT30] error-3520a raises a different error
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2015-04-07 06:38 UTC by Abel Braaksma
Modified: 2015-05-06 21:24 UTC (History)
0 users

See Also:


Description Abel Braaksma 2015-04-07 06:38:16 UTC
This test contains:

<xsl:template match="x[. = current-merge-key()]"/>

which is an error, but not XTSE3520. Furthermore, it does not reference the variable. While this is a static error which I think is supposed to be raised on the declaration of the variable, if it is never referenced, I think there should be no requirement to raise it.

Proposed fix: remove the matching template and reference the variable to force the error.
Comment 1 Abel Braaksma 2015-04-07 06:38:40 UTC
(Bug was initially reported by Vitaliy Yudenkov)
Comment 2 Abel Braaksma 2015-04-07 07:33:58 UTC
Fixed as suggested.
Comment 3 Abel Braaksma 2015-05-06 21:24:40 UTC
Was resolved > 30 days ago, closing.