W3C home > Mailing lists > Public > public-xml-testsuite@w3.org > July 2008

problem with XML W3C Conformance Test Suite 20080205

From: Daniel Veillard <veillard@redhat.com>
Date: Wed, 30 Jul 2008 12:54:51 -0400
To: public-xml-testsuite@w3.org
Cc: public-xml-core-wg@w3.org
Message-ID: <20080730165451.GA8563@redhat.com>

  Hi all,

  While working on my 5th edition implementation testing I hit a problem
with the latest version of the test suite:

test rmt-ns10-035 : xmlconf/eduni/namespaces/1.0//035.xml failed to parse the XML
xmlconf/eduni/namespaces/1.0//035.xml:6: parser error : Attribute a:attr redefined
<bar a:attr="1" a:attr="2"/>
                          ^

the test is described as 
<TEST RECOMMENDATION="NS1.0" SECTIONS="5.3" URI="035.xml" ID="rmt-ns10-035" TYPE="not-wf">
Attribute uniqueness: repeated identical attribute
</TEST>

and defined as

<?xml version="1.0"?>
<!-- Attribute uniqueness: repeated identical attribute -->
<foo xmlns:a="http://example.org/~wilbur"
     xmlns:b="http://example.org/~wilbur">

<bar a:attr="1" a:attr="2"/>

</foo>

 Seems to me there is a typo here. This is an XML-1.0 base well-formedness
error because it has the same attribute used twice on the element. I guess
the intent was to have
  <bar a:attr="1" b:attr="2"/>
(or the way around) which then is a namespace redeclaration issue.

Not seeing anything on the archives since Sept last year I assume this
wasn't raised yet and best discussed in the Core WG list :-)

  http://lists.w3.org/Archives/Public/public-xml-testsuite/

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
Received on Wednesday, 30 July 2008 16:55:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 July 2008 16:55:29 GMT