On Sep 17, 1998 17:02, Bruce R Miller [[EMAIL PROTECTED]] wrote:
> On Sep 17, 9:19am, Dr. Marcus E. Hennecke wrote:
> > Take a look at l2h-ng. If called with -strict it does indeed read a
DTD
> > to output conforming HTML. It is based on an older version of l2h,
> > though and probably contains quite a few bugs.
> Is it using the DTD to validate the HTML, or using it to choose (or
tune) which
> HTML to generate?
The former. There are basically subroutines that are called to insert
HTML code. They in turn check if the code is valid according to the
DTD.
> An XML version will be more extreme because it is totally
> up to the DTD (or the mapping between latex commands & DTD elements)
what is
> being generated.
Yes indeed. The solution must be something that is concept based. E.g.,
the LaTeX parsing engine first determines what is wanted (e.g.,
chapter, bold face, verbatim, etc.) and then the rendering engine must
decide what code to generate. IMHO, it is important to separate the two
much more than they are now (at the moment there is almost no
distinction).
Marcus