W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1996

Re: HtmlGenerator will improve in next version?

From: Lee Daniel Crocker <lcrocker@calweb.com>
Date: Thu, 15 Aug 1996 16:21:55 -0700 (PDT)
Message-Id: <199608152321.QAA10698@web1.calweb.com>
To: www-jigsaw@w3.org

> Currently, generation of HTML is very primitive, program has to supply all
> tags and content, so creating of structured page on the fly is a bit of a
> pain and even where there is some code for creating a page as a collection
> of elements (in w3c.jigsaw.forms), those elements are not reusable or
> reparsable.

Seems to me you could fix that problem, and a few others as well, by
creating a standard DocumentObject type that had Element and Entity
types corresponding to SGML elements and entities, and represented
in memory in their logical structure--i.e., Element type would be
a Vector of attributes and a Vector of sub-elements, Entity would be
just type and data.  You could write filters that dealt with the
actual structure that way, and have one at the client end that just
traversed the structure to output HTML (perhaps even letting you
choose what kind of HTML to output for different clients).

Since SGML already specifies the structure, it should be pretty
straightforward to implement that in Java, but you'd have to
standardize the interface for it to be really useful (e.g., in
editing tools, search engines, converters, etc.)

HTML itself, then, would serve two purposes--storage format on
the server, and communications format to the client.  Everything
else would be done in-memory with the tree-structured class.

--
Lee Daniel Crocker <lee@piclab.com>
Received on Thursday, 15 August 1996 19:28:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT