[Bug 24142] New: [xslt 3.0] xs:copy with on-empty and validation

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24142

            Bug ID: 24142
           Summary: [xslt 3.0] xs:copy with on-empty and validation
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 19 December 2013 17:06:15 UTC