[Bug 29149] New: [XSLT30] XTDE0420 on attributes/namespaces in document nodes

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

            Bug ID: 29149
           Summary: [XSLT30] XTDE0420 on attributes/namespaces in document
                    nodes
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

In section 5.8.1 Constructing Complex Content, we write in step 7

[ERR XTDE0420] It is a dynamic error if the result sequence used to construct
the content of a document node contains a namespace node or attribute node.

However, in step 4 we write:

4. Any document node within the result sequence is replaced by a sequence
containing each of its children, in document order.

So, after step 4 we have removed the document nodes. While I understand that
this rule is here to prevent a document node to have namespace or attribute
nodes, in an earlier step we have already removed any document nodes, resulting
in this error never being thrown.

I think the effect is depth-first, which means that we can only reach step 4
after in a previous cycle we reached step 7 for the children. Perhaps we can
swap these rules for clarity?

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

Received on Thursday, 24 September 2015 09:09:37 UTC