[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] release of libxml2-2.6.0beta3
- From: Daniel Veillard <veillard redhat com>
- To: Graham Bennett <graham-libxml simulcra org>
- Cc: Malcolm Tredinnick <malcolm commsecure com au>, xml gnome org
- Subject: Re: [xml] release of libxml2-2.6.0beta3
- Date: Mon, 29 Sep 2003 18:25:22 -0400
On Mon, Sep 29, 2003 at 11:14:18PM +0100, Graham Bennett wrote:
> On Mon, Sep 29, 2003 at 05:14:14PM -0400, Daniel Veillard wrote:
> > Hum, this might be a misunderstanding, libxml2 new SAX2 shows defaulted
> > attributes only if they are effectively defaulted, i.e. they are not
> > in the input element stream but are marked as #FIXED in the DTD.
> > The previous SAX1 simply didn't reported them, and currently SAX2
> > report those but allows to ignore them by specifying how many attributes
> > were defaulted (and they show up as last items in the array passed in
> > the callback).
> > If the attribute is in the input stream the value from the DTD is not
> > reported at that level.
>
> Ok so as I understand it the new API will work as Expat does (I think).
> You get attributes that were explicitly set in the input stream first,
> then you get the ones which were defaulted in because of the DTD, and
> there is a count which tells you where the changeover point in the list
> is.
Right, I don't know expat API (except the old one from 3 years ago)
but this is how the new SAX2 startElementNS() will work in the upcoming
releases (and in 2.6.0beta3).
> That is the kind of behaviour I would be looking for, I wasn't sure
> what the current 'SAX1' behavour was.
It didn't report anything about defaulted attributes, that was done
in the tree build.
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]