Re: wish list

Steven,

> Well, that can get pretty bulky after a while. What I'd like to
> be able to do is something like this:

> <!ENTITY "myf6" "<font face=Times size=6>">
> <BODY ...>
> ...
> %myf6; text </font>

> Am I right out to lunch here, or would this be hard to implement?

It is, but it is already done by James Clark :) Get sp-1.1.1 from 
http://www.jclark.com/sp/ and have a look at the "sgmlnorm" utility.
It reads in your document and consults a catalog. Itīs not too tricky
to build your own library of entities. The output will be ordinary HTML,
even better: valid HTML.

E.g.:

1) set up a catalog like this
PUBLIC  "ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML" ISOlat1.ent
PUBLIC "-//W3C//DTD HTML 3.2//EN" local.dtd

2) define your local DTD like this

        <!ENTITY % html.dialect   SYSTEM  "html.dtd">
        %html.dialect;
        <!ENTITY % local.entities SYSTEM "local.entities.dtd">
        %local.entities;

and set up entities and parameter entities. The latter are nice as "#ifdef"
construct. sgmlnorm can be called passing a command line option to set
a particular parameter entity. Tricky things can be constructed from this.

3) Mark up your enties unsing *any* SGML construct. Set up entity libraries
etc.
4) Make some control (e.g. script or .bat) to read marked up pages from 
directory A and write HTML to dircetory B by redirecting STDIN and STDOUT
trough sgmlnorm.

I made several medium-size projects that only use sgmlnorm. It's especially
nice to create parts of your local DTD from database entries etc. It's free,
it works *now* and can be reused if XML succeds.

	++im
-- 
Snail : Ingo Macherius // L'Aigler Platz 4 // D-38678 Clausthal-Zellerfeld
Mail  : Ingo.Macherius@tu-clausthal.de WWW: http://www.tu-clausthal.de/~inim/
Information!=Knowledge!=Wisdom!=Truth!=Beauty!=Love!=Music==BEST (Frank Zappa)

Received on Friday, 28 March 1997 22:19:03 UTC