W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1996

Re: Parser in Arena

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 17 Jan 1996 10:53:30 -0500
Message-Id: <9601171553.AA29316@www20>
To: Jiang Tao <jiangt@ceci.mit.edu>
Cc: W3C Lib <www-lib@w3.org>
Jiang Tao writes:

> Arena can display HTML3.0, and it seems that it doesn't have
> a new HTML parser with it (parsehtml.c is for display), how can
> Arena do that?

It does have a new parser! Arena does not use the SHML/HTML/HText interface at 
all in the Library. In libwww version 4.0, you can decide completely to ignore 
these three modules and instead add your own parser to the set of converters. 
When a document of type text/html is fetched then the stream stack will pick 
the new HTML parser and deliver all data to that one.

In the case of Arena, H&kon is using the external parser (HTXParse.c) in the 
Library which delivers all data in one big buffer. This buffer is then used to 
generate a paint stream.

You can see how to register converters at

	http://www.w3.org/devel/WWW/Library/User/Using/Prefs.html

and there is a default set of converters which can be called by the 
application. This is available in HTInit.c in the Library. You can get 
information about Arena at

	http://www.w3.org/pub/WWW/Arena/


-- 

Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA
Received on Wednesday, 17 January 1996 10:53:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:25 GMT