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 24142 - [xslt 3.0] xsl:copy with on-empty and validation
Summary: [xslt 3.0] xsl:copy with on-empty and validation
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-19 17:06 UTC by Michael Kay
Modified: 2014-07-27 19:03 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2013-12-19 17:06:13 UTC
At the end of 11.9.1.1 we say:

If the on-empty expression is evaluated and returns an empty sequence, then the validation and type attributes are ignored. However, if the result of the on-empty expression is a node, then it is subjected to validation as determined by these attributes, along with [xsl:]default-validation where relevant.

However, validation is defined only for document, element, and attribute nodes. We should change this to:

If the on-empty expression is evaluated and returns an empty sequence, or if it returns a text, comment, processing-instruction, or namespace node, then the validation and type attributes are ignored. However, if the result of the on-empty expression is a document, element, or attribute node, then it is subjected to validation as determined by these attributes, along with [xsl:]default-validation where relevant.
Comment 1 Michael Kay 2013-12-19 17:21:06 UTC
Note also, we do not say explicitly what the focus is for evaluation of xsl:copy/@on-empty. It should be the same focus as for evaluation of the xsl:copy/@select attribute.
Comment 2 Abel Braaksma 2014-01-23 17:38:30 UTC
Note that on-empty was meant to be present on more instructions...
Comment 3 Abel Braaksma 2014-01-23 22:58:00 UTC
Reported here (so as not to hijack this thread): Bug#24378 [1]

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=24378

(sorry, I don't know how to inline links to other bugs, I know it is possible, but I tried several syntaxes to no avail)
Comment 4 Michael Kay 2014-01-28 17:47:07 UTC
The WG accepted the changes in comments 0 and 1 and the changes have been applied to the editor's draft (R).
Comment 5 Michael Kay 2014-07-27 19:03:08 UTC
The decision on this bug was obsoleted by the decision on bug 24378, which made xsl:copy/@on-empty applicable only to element nodes.