This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Change made and committed to cvs.
Thanks
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?
The same seems to apply to numberformat42.
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.