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

Re: SGML/HTML parser

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Mon, 22 Jan 1996 11:34:56 -0500
Message-Id: <9601221634.AA13626@www20>
To: Jiang Tao <jiangt@ceci.mit.edu>
Cc: W3C Lib <www-lib@w3.org>
Jiang Tao writes:

> It seems to me that we only need one SGML parser or
> HTML parser in our web application, so why are there
> both SGML parser and HTML parser in W3C lib?

As has been mentioned, the SGML parser in the Library is not a SGML parser - 
it's more a tokenizer that identifies SGML tags and then sends them off to the 
HTML parser that has a DTD connected to it. However, before the tags are sent 
to the HTML parser they are enumerated by the SGML tokenizer so it in fact 
also uses the DTD. This means that the SGML module can be used with other DTDs 
than the HTML one.


-- 

Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA
Received on Monday, 22 January 1996 11:35:06 GMT

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