[Prev][Next][Index][Thread]
Re: SGML/HTML parser
-
To: Jiang Tao <jiangt@ceci.mit.edu>
-
Subject: Re: SGML/HTML parser
-
From: Henrik Frystyk Nielsen <frystyk@w3.org>
-
Date: Mon, 22 Jan 1996 11:34:56 -0500
-
Cc: W3C Lib <www-lib@w3.org>
-
From frystyk@w3.org Mon Jan 22 11: 35:06 1996
-
Message-Id: <9601221634.AA13626@www20>
-
Reply-To: Henrik Frystyk Nielsen <frystyk@w3.org>
-
X-Mailer: exmh version 1.6.2 7/18/95
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