[xml] Namespaced attributes bug ?


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

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

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


[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

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