<?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>9509</bug_id>
          
          <creation_ts>2010-04-13 20:23:51 +0000</creation_ts>
          <short_desc>[XQ31ReqUC] Default element namespace applies to both input and output.</short_desc>
          <delta_ts>2014-05-20 16:56:18 +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>Requirements for Future Versions</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="David Lee">dlee</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>jonathan.robie</cc>
    
    <cc>mike</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>34959</commentid>
    <comment_count>0</comment_count>
    <who name="David Lee">dlee</who>
    <bug_when>2010-04-13 20:23:51 +0000</bug_when>
    <thetext>Default element namespaces (4.14 &quot;Default Namespace Declaration&quot;) apply to both input (XPath) namespaces and output (generated elements).

A very common use case for XQuery is to generate XML documents to a different namespace then the input.  For example, converting an XML document to an XHTML document.  

The use of namespace prefixes in XPath expressions and element generation is a very difficult task for beginning and often even experienced users to correctly use. To aid in the common case of reading from one namespace and outputting to another, this difficulty should be addressed in order to encourage wider use of XQuery.

It is unnecessarily tedious to require namespace prefixes to perform this common operation.  Namespaces are difficult enough that XQuery 1.1 should assist in this common case.   XSLT 2.0 solves this problem with the introduction of the &quot;xsl:xpath-default-namespace&quot;.


XQuery 1.1 should provide a similar feature where the input (xpath) default namespace can differ from the output (generated element) namespaces.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47109</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2011-04-04 01:12:31 +0000</bug_when>
    <thetext>David, although there is interest in the XML Query WG to address this opportunity, we have concluded that we do not have the resources to add this feature in the XQuery 3.0 timeframe.  We will reconsider this opportunity during development of the mythical next generation of XQuery following 3.0.  Consequently, I am marking this bug as a possible requirement for a possible future version of the language.  Thanks for making the suggestion!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47111</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-04-04 08:18:38 +0000</bug_when>
    <thetext>While I&apos;m disappointed that the WG decided not to fix this well known usability problem, it might help to point out that there&apos;s a bit of a workaround available in XQuery 3.0 - you can use the expression &quot;&quot;:local to refer to elements in no namespace, regardless of the namespace context.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106465</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-05-20 16:47:56 +0000</bug_when>
    <thetext>Assigning to future requirements per Working Group decision (https://lists.w3.org/Archives/Member/w3c-xsl-query/2012Oct/0087.html).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106469</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-05-20 16:50:26 +0000</bug_when>
    <thetext>Assigning to future requirements per Working Group decision (https://lists.w3.org/Archives/Member/w3c-xsl-query/2012Oct/0087.html).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106478</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-05-20 16:56:18 +0000</bug_when>
    <thetext>Assigning to future requirements per Working Group decision (https://lists.w3.org/Archives/Member/w3c-xsl-query/2012Oct/0087.html).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>