This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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)}
(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.
This is editorial because it is an example
This has been fixed in XQuery 3.1 The WG has decided at the F2F on 2015-07-15 that this will not be fixed in XQuery 3.0