W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2015

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 24 Sep 2015 09:09:27 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29149-523@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Thursday, 24 September 2015 09:09:37 UTC