Project

Profile

Help

Bug #3892

closed

xsl:message fails if outputting a function item

Added by Michael Kay about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2018-09-02
Due date:
% Done:

100%

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

Description

The specification for xsl:message states that it constructs a document using the rules for constructing complex content, which would normally cause an error if the content being output includes a function item (other than an array).

However the specification also states "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." - the wording "at worst" here suggests that the actual output is implementation-defined, but the instruction must not fail.

There appears to be no provision to implement this rule in Saxon. This applies also to the example in the spec, where xsl:message outputs a free-standing attribute node.

Please register to edit this issue

Also available in: Atom PDF