[xml] Namespaced attributes bug ?



 Hello,

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" ?>
<root>
   <x xmlns:n1="http://www.w3.org";
      xmlns:n2="http://www.w3.org"; >

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

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

        Fabrice

[1] http://www.w3.org/TR/REC-xml-names/#uniqAttrs
--
Fabrice Desré
France Télécom R&D/DTL/TAL
Tél: +(33) (0)2 96 05 31 43
Fax: +(33) (0)2 96 05 39 45
http://www.francetelecom.com/rd




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