This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26029 - [XQ30] Namespace node creation example is invalid
Summary: [XQ30] Namespace node creation example is invalid
Status: RESOLVED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Recommendation
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-10 16:26 UTC by Adam Retter
Modified: 2015-07-15 14:55 UTC (History)
2 users (show)

See Also:


Attachments

Description Adam Retter 2014-06-10 16:26:46 UTC
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)}
Comment 1 Jonathan Robie 2014-10-01 01:05:24 UTC
(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.
Comment 2 Andrew Coleman 2015-07-15 14:53:11 UTC
This is editorial because it is an example
Comment 3 Andrew Coleman 2015-07-15 14:55:20 UTC
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