Re: [xml] Namespaced attributes bug ?
- From: Daniel Veillard <veillard redhat com>
- To: Fabrice Desré <fabrice desre francetelecom com>
- Cc: xml gnome org
- Subject: Re: [xml] Namespaced attributes bug ?
- Date: Wed, 5 Feb 2003 05:46:18 -0500
On Wed, Jan 22, 2003 at 06:39:20PM +0100, Fabrice Desré wrote:
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.
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 http://www.w3.org redefined
<bad n1:a="1" n2:a="2" />
^
paphio:~/XML ->
thanks,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]