Re: [xml] Namespaced attributes bug ?

On Wed, Jan 22, 2003 at 06:39:20PM +0100, Fabrice Desré wrote:

  I think ther may be a bug in libxml when to attributes share the same 
local name, but have a different prefix bound to the same namespace URI.

For instance :

<?xml version="1.0" ?>
    <x xmlns:n1="";
       xmlns:n2=""; >

   <bad n1:a="1"  n2:a="2" />

  This example comes from the XML Namespaces Rec [1], but xmllint 
doesn't complain with it.

  Right, I forgot to add that check, it's fixed in CVS now:

paphio:~/XML -> xmllint tst.xml
tst.xml:6: error: Attribute a in redefined
   <bad n1:a="1"  n2:a="2" />
paphio:~/XML ->



Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]