This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19716 - [QT3TS] numberformat41
Summary: [QT3TS] numberformat41
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-26 11:08 UTC by Tim Mills
Modified: 2013-04-24 13:10 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2012-10-26 11:08:24 UTC
I don't think there is any requirement that 'http://foo.ns' and 'http://foo.ns/' be treated as equal, so suggest changing:

         <namespace prefix="foo" uri="http://foo.ns/"/>
         <namespace prefix="baz" uri="http://foo.ns/"/>

to

         <namespace prefix="foo" uri="http://foo.ns"/>
         <namespace prefix="baz" uri="http://foo.ns"/>

in the catalog entry.

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

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

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

Should this test not raise err:XQST0111?
Comment 4 Ghislain Fourny 2013-04-24 12:54:35 UTC
The same seems to apply to numberformat42.
Comment 5 Michael Kay 2013-04-24 13:10:12 UTC
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.