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 30283 - Incorrect tests for dynamic error occurring in xsl:message
Summary: Incorrect tests for dynamic error occurring in xsl:message
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-02 21:50 UTC by Michael Kay
Modified: 2019-02-25 13:38 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2018-09-02 21:50:23 UTC
The tests message-0001 and message-0404 are concerned with what happens when a dynamic error occurs during the evaluation of the select attribute or sequence constructor of xsl:message.

The specification explicitly says: Any dynamic error that occurs while evaluating the select expression or the contained sequence constructor, and any serialization error that occurs while processing the result, does not cause the transformation to fail; at worst, it means that no message is output, or that the only message that is output is one that relates to the error that occurred.

So I believe these tests need updating for XSLT 3.0.
Comment 1 Michael Kay 2018-09-02 21:53:53 UTC
Note also that test message-0001 does not do what it says in the description. It claims to be testing what happens when xsl:message selects an attribute node; but there is no attribute node to be selected.
Comment 2 Michael Kay 2018-09-04 16:18:15 UTC
I have changed Saxon to recover from dynamic errors occurring while evaluating xsl:mesage, and this causes test case result-document-1138 to fail. This test is testing that xsl:result-document fails in temporary output state, specifically while executing xsl:message. However, according to XSLT 3.0, xsl:message no longer sets temporary output state, so this test is incorrect. I shall mark it as expecting successful output under 3.0.
Comment 3 Abel Braaksma 2019-02-25 13:38:37 UTC
Thanks, I agree. Since this was fixed and committed, I'll close it off.