Re: [xml] SAX2 / empty namespace issue
- From: Kasimier Buchcik <kbuchcik 4commerce de>
- To: Michael Day <mikeday yeslogic com>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] SAX2 / empty namespace issue
- Date: Wed, 15 Jun 2005 12:22:39 +0200
Hi,
On Wed, 2005-06-15 at 20:15 +1000, Michael Day wrote:
Hi Daniel,
A new issue: when I switch to using xmlReadFile the empty namespace is
handled correctly, however I get an error on the following document:
<tests xmlns="http://css.example.net/" xmlns:test="http://css.example.net/">
<testA attribute="pass" test:attribute="fail">This should be green.</testA>
<testB attribute="fail" test:attribute="pass">This should be green.</testB>
</tests>
Namespaced Attribute attribute in 'http://css.example.net/' redefined
Is this correct? The first "attribute" is not in any namespace, as
unqualified attributes should not inherit the namespace of the element
that they are on. The second "attribute" is in the namespace, but should
not conflict with the previous attribute. How is this a redefinition?
This was a bug fixed in parser.c revision 1.424. The bugfix is not
in Libxml2 2.6.19 so you hit it. Note that the error was just in the
error report, i.e. the attributes are not qualified with the default
namespace actually.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]