<?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>19716</bug_id>
          
          <creation_ts>2012-10-26 11:08:24 +0000</creation_ts>
          <short_desc>[QT3TS] numberformat41</short_desc>
          <delta_ts>2013-04-24 13:10:12 +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 &amp; XPath 3 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Tim Mills">tim</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>g</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>77136</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-26 11:08:24 +0000</bug_when>
    <thetext>I don&apos;t think there is any requirement that &apos;http://foo.ns&apos; and &apos;http://foo.ns/&apos; be treated as equal, so suggest changing:

         &lt;namespace prefix=&quot;foo&quot; uri=&quot;http://foo.ns/&quot;/&gt;
         &lt;namespace prefix=&quot;baz&quot; uri=&quot;http://foo.ns/&quot;/&gt;

to

         &lt;namespace prefix=&quot;foo&quot; uri=&quot;http://foo.ns&quot;/&gt;
         &lt;namespace prefix=&quot;baz&quot; uri=&quot;http://foo.ns&quot;/&gt;

in the catalog entry.

   &lt;test-case name=&quot;numberformat41&quot;&gt;
      &lt;description&gt;
        Creator: David Bertoni 
        Purpose: Test of multiple decimal-format elements with identical qualified names.&lt;/description&gt;
      &lt;created by=&quot;Michael Kay, Saxonica&quot; on=&quot;2010-12-13&quot;/&gt;
      &lt;!--SOURCE: numberformat/numberformat41.xml--&gt;
      &lt;environment&gt;
         &lt;namespace prefix=&quot;foo&quot; uri=&quot;http://foo.ns/&quot;/&gt;
         &lt;namespace prefix=&quot;baz&quot; uri=&quot;http://foo.ns/&quot;/&gt;
         &lt;decimal-format xmlns:foo=&quot;http://foo.ns&quot; name=&quot;foo:decimal1&quot; minus-sign=&quot;-&quot; NaN=&quot;not a number&quot;/&gt;
         &lt;decimal-format xmlns:baz=&quot;http://foo.ns&quot; name=&quot;baz:decimal1&quot; NaN=&quot;not a number&quot; decimal-separator=&quot;.&quot;/&gt;
      &lt;/environment&gt;
      &lt;dependency type=&quot;feature&quot; value=&quot;xpath-1.0-compatibility&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XP30+&quot;/&gt;
      &lt;test&gt;string-join((
                format-number(&apos;NaN&apos;,&apos;###&apos;,&apos;foo:decimal1&apos;),
                format-number(-13.2,&apos;###.0&apos;,&apos;foo:decimal1&apos;),
                format-number(&apos;NaN&apos;,&apos;###&apos;,&apos;baz:decimal1&apos;),
                fo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77150</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-26 14:31:17 +0000</bug_when>
    <thetext>Change made and committed to cvs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77154</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-26 16:51:22 +0000</bug_when>
    <thetext>Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86669</commentid>
    <comment_count>3</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2013-04-24 12:52:06 +0000</bug_when>
    <thetext>The specification says in section 4.10:

&quot;It is a static error for a query prolog to contain two decimal format declarations with the same name&quot;

This test declares two decimal format declarations that have the same (qualified) name.

Should this test not raise err:XQST0111?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86670</commentid>
    <comment_count>4</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2013-04-24 12:54:35 +0000</bug_when>
    <thetext>The same seems to apply to numberformat42.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86671</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-04-24 13:10:12 +0000</bug_when>
    <thetext>These are both marked as XPath tests, so the XQuery rules on multiple decimal format declarations have no force. However, this also means that having multiple declarations with the same name is not doing anything useful, other than testing the test driver.

I propose to merge the two decimal format declarations into one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>