<?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>10175</bug_id>
          
          <creation_ts>2010-07-15 15:37:48 +0000</creation_ts>
          <short_desc>Using multiple default namespaces</short_desc>
          <delta_ts>2014-05-15 14:00:32 +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>XSLT 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Snelson">john.snelson</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>jirka</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>36921</commentid>
    <comment_count>0</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2010-07-15 15:37:48 +0000</bug_when>
    <thetext>There are often a number of function namespaces that a stylesheet will use with frequency. All but one of these namespaces currently need qualifying when used, since there is only one default function namespace.

In other languages like Java, importing a namespace will bring the names from that namespace into the current scope. This allows them to be used without qualifying them with the namespace.

I propose that we add a new attribute (maybe &quot;using&quot;, or &quot;using-function-namespaces&quot;), which lists a set of namespaces, NS. When referencing a function with a QName L that doesn&apos;t have a prefix, the namespaces in NS are tried in turn looking for a function with a localname of L. If two or more such functions exist, an error is raised. To avoid the error the user should qualify the function reference with a prefix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36924</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 16:00:27 +0000</bug_when>
    <thetext>Noted: as an extension of this idea:

(a) similarly, any prefix could be bound to a set or list of namespaces

(b) the same mechanism could be used for names other than function names. For example if two variants/versions of an XML vocabulary have been defined in different namespaces, a QName could effectively refer to the union of the two namespaces, allowing the same query/stylesheet to work with both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46957</commentid>
    <comment_count>2</comment_count>
    <who name="Jirka Kosek">jirka</who>
    <bug_when>2011-03-24 15:22:34 +0000</bug_when>
    <thetext>I like Mike&apos;s extension. It should be also possible to include names which are not in any namespace into &quot;search path&quot;. For example to handle DocBook 4.5 (not in namespace) and 5 (has namespace) at the same time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49349</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-06-08 21:30:43 +0000</bug_when>
    <thetext>The minutes of the Prague F2F (March 2011) record:

DECIDED at 7 Oct. 2010 telcon: to close bug 10175 (for now) with status LATER.

Which I am now belatedly doing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>