W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2014

[Bug 26029] New: Namespace node creation example is invalid

From: <bugzilla@jessica.w3.org>
Date: Tue, 10 Jun 2014 16:26:46 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-26029-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26029

            Bug ID: 26029
           Summary: Namespace node creation example is invalid
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.0
          Assignee: jonathan.robie@gmail.com
          Reporter: adam@exist-db.org
        QA Contact: public-qt-comments@w3.org

I think the code for the example of generating namespace nodes in `Section 2 -
Basics` of the XQuery 3.0 Recommendation may be incorrect. The current document
reads:

in-scope-prefixes($e) ! namespace {namespace-uri-for-prefix($e,.)} {.}

It appears that the arguments to namespace-uri-for-prefix may be back-to-front
and also the arguments to the computed namespace constructor are back-to-front.
I think the code should instead read:

in-scope-prefixes($e) ! namespace {.} {namespace-uri-for-prefix(., $e)}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 10 June 2014 16:26:47 UTC

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