W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2009

[Bug 8537] New: computed attribute constructor issue raise by XQTS Bug #8480

From: <bugzilla@wiggum.w3.org>
Date: Tue, 22 Dec 2009 21:47:17 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-8537-523@http.www.w3.org/Bugs/Public/>

           Summary: computed attribute constructor issue raise by XQTS Bug
           Product: XPath / XQuery / XSLT
           Version: Proposed Edited Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: jonathan.robie@redhat.com
        ReportedBy: andrew.eisenberg@us.ibm.com
         QAContact: public-qt-comments@w3.org

Bug #8480 is concerned with a new test case written to cover erratum XQ.E19 and
an older test case that is almost identical that returns a different error.

The new query is:

<result>{attribute {"xmlns:error"} {}}</result>

In Computed Attribute Constructors we say:

If the keyword attribute is followed by a name expression, the name
expression is processed as follows:

   3) ... If conversion of the atomized name expression to an
      expanded QName is not successful, a dynamic error is raised

A static error is raised [err:XQST0044] if the node-name of the constructed
attribute node has any of the following properties:

    * Its namespace prefix is xmlns.
    * ...

The text introduced by XQ.E19 seems to have two problems:

- it is raising a static error after the attribute node is constructed
- the construction of the attribute fails, because xmlns is not defined in our
statically known namespaces, and so the new text will never be considered

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 22 December 2009 21:47:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:41 UTC