<?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>7130</bug_id>
          
          <creation_ts>2009-07-22 07:44:39 +0000</creation_ts>
          <short_desc>[XSLT 2.0] Namespace-alias: two result prefixes bound to same URI</short_desc>
          <delta_ts>2010-07-15 09:07:39 +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 2.0</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</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="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>sca.w3c</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>26036</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-07-22 07:44:39 +0000</bug_when>
    <thetext>Email sent privately to MHK by A. Biao (abiao dot chen at gmail dot com):


I found there&apos;s words to report error when namespace alias declaration
conflicted in XSLT2.0 11.1.4.
[ERR XTSE0810] It is a static error if there is more than one such declaration with the same literal namespace URI and the same import
precedence and different values for the target namespace URI,

...

I don&apos;t know whether it&apos;s a error when there&apos;re two xsl:namespace-alias with
the same stylesheet-prefix and different result-prefix which targets to a
same namespace URI.

For example:
&lt;xsl:stylesheet version=&quot;2.0&quot; xmlns:a=&quot;ns&quot; xmlns:r1=&quot;out&quot; xmlns:r2=&quot;out&quot;&gt;
&lt;xsl:namespace-alias *stylesheet-prefix* = *&quot;a*&quot; *result-prefix = &quot;r1&quot;/&gt;*
**
&lt;xsl:namespace-alias *stylesheet-prefix* = *&quot;a*&quot; *result-prefix = &quot;r2&quot;/&gt;*

Should this be OK?
If yes, what will be the output prefix, r1 or r2?

Thanks,
**--
A Biao</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26037</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-07-22 07:47:38 +0000</bug_when>
    <thetext>My proposed resolution of this would be that:

(a) it&apos;s not an error

(b) the choice of prefix in the result is implementation-dependent</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35829</commentid>
    <comment_count>2</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2010-05-25 21:09:55 +0000</bug_when>
    <thetext>At the XSLT WG meeting on 20 May 2010 the WG agreed to the following:

(a) it&apos;s not an error - the &quot;last&quot; one is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36893</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-07-15 09:07:39 +0000</bug_when>
    <thetext>This will be erratum E45</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>