Re: [xml] Namespaced attributes bug ?
- From: Philipp Dunkel <philipp dunkel org>
- To: xml gnome org
- Subject: Re: [xml] Namespaced attributes bug ?
- Date: 22 Jan 2003 18:36:07 +0100
Hi Fabrice,
I haven't tested if it's only the following or if it's more:
The document below does have 2 identical attributes since the namespace
is defined both times as http://www.w3.org according to specs the
determining part wether namespaces are identical is the href part and
not the declared name. They would only be different if you declared
these urls differently.
If I am wrong on this, please DO flame me, since I have then violated
the basic rule of checking docu first. I didn't this time, since I'm
pretty sure.
TTY Philipp
On Wed, 2003-01-22 at 18:39, 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.
Fabrice
[1] http://www.w3.org/TR/REC-xml-names/#uniqAttrs
--
Philipp Dunkel <philipp dunkel org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]