Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/smlnj-lib/HTML/README
ViewVC logotype

View of /sml/trunk/src/smlnj-lib/HTML/README

Parent Directory Parent Directory | Revision Log Revision Log

Revision 651 - (download) (annotate)
Thu Jun 1 18:34:03 2000 UTC (21 years, 2 months ago) by monnier
File size: 1274 byte(s)
bring revisions from the vendor branch to the trunk
This library provides support for parsing and pretty-printing HTML.
The file html-sig.sml and html.sml define a parse-tree representation
of HTML 3.2 (as defined in the January 14th 1997 specification).

The HTML structure implements a collection of datatypes
that describe the syntax of HTML trees according to the 3.2 spec.
The library provides support for parsing and printing these
datatypes.  The functor HTMLParserFn implements the parser and
the PrHTML structure provides printing of HTML trees.  Also, there
is a structure called MakeHTML, which provides helper functions for
constructing HTML trees (mostly defaults of attribute values).

Note that this is a fairly strict interpretation of the standard;
non-standard tags and attributes will cause errors.  To allow some
flexibility, the parser is functorized over a collection of error
reporting functions (see html-error-sig.sml).

The file test-parser.sml gives an example of how the parser part of the
library can be used.


The parser has trouble with white-space in the <HEAD>.

The pretty-printer needs to be rewritten to deal with line breaks better.

Some library support for entities (e.g., "&lt;" should be provided).

	John Reppy
	Bell Labs, Lucent Technologies

ViewVC Help
Powered by ViewVC 1.0.0