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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@jessica.w3.org
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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

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.

Reply | Threaded
Open this post in threaded view
|

[Bug 26029] [XQ30] Namespace node creation example is invalid

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26029

--- Comment #1 from Jonathan Robie <[hidden email]> ---
(In reply to Adam Retter from comment #0)
> I think the code should instead read:
>
> in-scope-prefixes($e) ! namespace {.} {namespace-uri-for-prefix(., $e)}

Done in the XQuery 3.1 draft.

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