W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Re: Params of HTML element callbacks

From: Vaclav Barta <vbar@comp.cz>
Date: Tue, 08 Jun 1999 19:00:17 +0000
Message-ID: <375D6841.3CFC0EB8@comp.cz>
To: wwwlib <www-lib@w3.org>
Raffaele Sena wrote:
> > documentation of HTML element callbacks (functions of type
> > HText_beginElement and HText_endElement, registered by
> > HText_registerElementCallback) says that "the element
> > number and attribute number are integers that are defined by
> > the HTML DTD used by the HTMl [sic] parser". What does that
> > mean - how do I find out that 40 is <HEAD>, 12 <BODY> etc.?
> > I can't find it anywhere in wwwlib headers - is it part of
> > HTML definition?
> >
>     the HTML DTD (or better, its internal representation)
>     is contained in the 2 files: HTMLPDTD.c and HTMLPDTD.h.
Ah, thanks. Now, if I understand it correctly, parameters
"present" and "value" in HText_beginElement are arrays. Their
size varies with element number. If I want to iterate over
them (I'm trying to build an "HTML butcher", filtering out parts
of HTML I don't like), I should have a table with number of
attributes for every element and iterate over "present" array -
where present[i] is true, value[i] is valid. Right?

I have a web spider, too!
Received on Wednesday, 9 June 1999 01:13:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:49 UTC