Re: [xml] [PATCH] inverted SAX
- From: Daniel Veillard <veillard redhat com>
- To: fernand mamouni com
- Cc: xml gnome org
- Subject: Re: [xml] [PATCH] inverted SAX
- Date: Thu, 18 Apr 2002 03:48:15 -0400
On Fri, Apr 05, 2002 at 11:00:50AM -0500, Daniel Veillard wrote:
On Fri, Apr 05, 2002 at 05:37:45PM +0200, Fernand Albarracin wrote:
- namespace handling : well, I'm not sure what should be done here
[...]
You must provide them as attribute, and not forget to build the
name for elements and attributes accordingly.
If I understand correctly :
- if ns->prefix != NULL, then element and attributes names given to
startElement will be <prefix>:<name>
yes,
- if ns->href != NULL, then provide a [name,value] attribute pair to
startElement ([xmlns,<href>] or [xmlns:<prefix>,<href>])
no if ns == NULL or ns->prefix == NULL , the element names in the callback
are not prefixed.
Now for the genearation of the attributes associated to namespace declarations
if an element has an nsDef sublist then add the xmlns="href" or xmlns:prefix=
attribute definitions to the startElement callback.
I didn't implement that in the following patch since :
I will review it when I have time, sorry, not ATM.
Just remembered about this, did you looked at adding the namespace support
to your inverted SAX patch ?
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]