<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26029</bug_id>
          
          <creation_ts>2014-06-10 16:26:46 +0000</creation_ts>
          <short_desc>[XQ30] Namespace node creation example is invalid</short_desc>
          <delta_ts>2015-07-15 14:55:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3.0</component>
          <version>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Retter">adam</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>jim.melton</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107592</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Retter">adam</who>
    <bug_when>2014-06-10 16:26:46 +0000</bug_when>
    <thetext>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)}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112510</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-10-01 01:05:24 +0000</bug_when>
    <thetext>(In reply to Adam Retter from comment #0)
&gt; I think the code should instead read:
&gt; 
&gt; in-scope-prefixes($e) ! namespace {.} {namespace-uri-for-prefix(., $e)}

Done in the XQuery 3.1 draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122077</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2015-07-15 14:53:11 +0000</bug_when>
    <thetext>This is editorial because it is an example</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122078</commentid>
    <comment_count>3</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2015-07-15 14:55:20 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>