- From: Vaclav Barta <vbar@comp.cz>
- Date: Tue, 08 Jun 1999 19:00:17 +0000
- 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? Bye Vasek -- I have a web spider, too! http://www.locus.cz/locus/
Received on Wednesday, 9 June 1999 01:13:10 UTC