<?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>29207</bug_id>
          
          <creation_ts>2015-10-16 11:48:03 +0000</creation_ts>
          <short_desc>[XQ31] reserved namespaces needs updating</short_desc>
          <delta_ts>2015-10-20 16:22:31 +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.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          
          
          <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>123738</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-10-16 11:48:03 +0000</bug_when>
    <thetext>The XQ31 spec defines a list of reserved namespaces. This list is repeated in several places:

* http://www.w3.org/XML/1998/namespace
* http://www.w3.org/2001/XMLSchema
* http://www.w3.org/2001/XMLSchema-instance
* http://www.w3.org/2005/xpath-functions
* http://www.w3.org/2005/xpath-functions/math
* http://www.w3.org/2012/xquery

Sometimes they are called &quot;reserved&quot; (in para 2.5.5.7 and 4.15), sometimes not (in 4.18 Function Declarations they are not called &quot;reserved&quot;, nor in the error description for XQST0045).

I think the following are candidates to be included in this list:

* http://www.w3.org/2005/xpath-functions/map
* http://www.w3.org/2005/xpath-functions/array
* http://www.w3.org/2005/xqt-errors
* http://www.w3.org/2000/xmlns/
* http://www.w3.org/2010/xslt-xquery-serialization

And possibly, with the introduction of fn:transform() in F&amp;O 3.1, we should consider adding the XSLT namespace as well:

* http://www.w3.org/1999/XSL/Transform

In addition, if it is not too late considering the current CR status, to group these together and use a TERMDEF, to prevent the repetition?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123747</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-10-16 21:00:05 +0000</bug_when>
    <thetext>This was fixed in passing when I addressed the same comment in Bug 29170.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123750</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-10-17 13:55:57 +0000</bug_when>
    <thetext>Can you elaborate a little bit? The referred to bug seems to be about the text of the error. Was a decision made on all these namespaces, or did you (or the WG) decide to include a part of them? Was the XSL namespace added for reasons of interaction with fn:transform, or was it left unreserved?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123751</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-10-17 14:46:45 +0000</bug_when>
    <thetext>(disregard my prev. comment, I think I have now seen the internal draft update, which reorganizes this a bit).

I see that the list has been upgraded to the following:

* http://www.w3.org/XML/1998/namespace
* http://www.w3.org/2001/XMLSchema
* http://www.w3.org/2001/XMLSchema-instance
* http://www.w3.org/2005/xpath-functions
* http://www.w3.org/2005/xpath-functions/math
* http://www.w3.org/2012/xquery
* http://www.w3.org/2005/xpath-functions/array
* http://www.w3.org/2005/xpath-functions/map

That leaves:

* http://www.w3.org/2005/xqt-errors
* http://www.w3.org/2000/xmlns/
* http://www.w3.org/2010/xslt-xquery-serialization
* http://www.w3.org/1999/XSL/Transform

Perhaps the xmlns namespace does not fit in this list because it is already covered by other errors, or it could be included for completion. I am not sure if all the others deserve a &quot;reserved&quot; status. If I compare it with XSLT, the Errors namespace is reserved there (and of course the XSLT namespace). The Serialization namespace is up for debate.

I see no harm in either including or excluding them, but we should make an informed decision. If the policy has been to reserve namespaces that have special meaning in (aspects of) the specs, then I think all of them should be included.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123809</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-10-20 16:22:31 +0000</bug_when>
    <thetext>(In reply to Abel Braaksma from comment #3)

&gt; That leaves:
&gt; 
&gt; * http://www.w3.org/2005/xqt-errors
&gt; * http://www.w3.org/2000/xmlns/
&gt; * http://www.w3.org/2010/xslt-xquery-serialization
&gt; * http://www.w3.org/1999/XSL/Transform

This would introduce an incompatibility with XQuery 3.0, and we don&apos;t want to do that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>