Re: [xml] Refactoring of the SAX interface for namespace support.
- From: Daniel Veillard <veillard redhat com>
- To: Dave Beckett <dave beckett bristol ac uk>
- Cc: xml gnome org
- Subject: Re: [xml] Refactoring of the SAX interface for namespace support.
- Date: Wed, 13 Aug 2003 06:12:31 -0400
On Wed, Aug 13, 2003 at 10:39:45AM +0100, Dave Beckett wrote:
On Tue, 12 Aug 2003 11:05:50 -0400
there is one thing to note, that a namespace() callback may actually
provide the namepace binding for the element after startElementNs()
was called like in <foo:bar xmlns:foo="bar"/>
Please no. If you go with the second style, you really must generate
namespace() first before any names with that namespace.
Hum, there isn't really a way around this. I don't think making namespace
callbacks before the element start is any better.
if you get an events flow of
startElement(foo...)
namespace(ns...)
startElement(bar, ns,...)
attribute(href...)
endElement(bar, ns,...)
endElement(foo...)
you really expect
<foo xmlns:ns=...><ns:bar href=.../></foo>
and not
<foo><ns:bar xmlns:ns=... href=.../></foo>
I think this would make scope detection more complex too.
This "use before declaration" is a property of the XML serialisation
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]