Re: [xml] SAX2 / empty namespace issue
- From: Daniel Veillard <veillard redhat com>
- 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 06:20:22 -0400
On Wed, Jun 15, 2005 at 08:15:25PM +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?
Does not match the behaviour of a pristine 2.6.19 setup here:
paphio:~/XML -> /usr/bin/xmllint tst.xml
<?xml version="1.0"?>
<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>
paphio:~/XML -> /usr/bin/xmllint --version
/usr/bin/xmllint: using libxml version 20619
compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata
Schemas Modules
paphio:~/XML ->
I can't reproduce your problem and I'm 100% sure xmllint uses xmlReadFile
i.e. the exact same API in that case.
paphio:~/XML -> gdb xmllint
GNU gdb Red Hat Linux (6.3.0.0-0.31rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
(gdb) b xmlReadFile
Breakpoint 1 at 0x8067eaa: file parser.c, line 12800.
(gdb) r tst.xml
Starting program: /u/veillard/XML/xmllint tst.xml
Breakpoint 1, xmlReadFile (filename=0xbff0d671 "tst.xml", encoding=0x0,
options=0) at parser.c:12800
12800 ctxt = xmlCreateURLParserCtxt(filename, options);
(gdb)
Please follow the guidelines for reporting bugs as much as possible,
http://xmlsoft.org/bugs.html
if we can't reproduce or understand what's happening we can't help and
this just raises frustration.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://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]