*BSD News Article 69802


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!news
From: jfieber@indiana.edu (John Fieber)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: SGML Convertion to HTML
Date: 30 May 1996 23:30:46 GMT
Organization: Indiana University, Bloomington
Lines: 35
Sender: jfieber@fallout.campusview.indiana.edu (John Fieber)
Message-ID: <4olb36$f7f@usenet.ucs.indiana.edu>
References: <31ade70c.28259675@news.hq.af.mil>
NNTP-Posting-Host: fieber-john.campusview.indiana.edu
X-Newsreader: knews 0.9.3
In-Reply-To: <31ade70c.28259675@news.hq.af.mil>
To: sgregory@pubspo.hq.af.mil (Scott Gregory)

In article <31ade70c.28259675@news.hq.af.mil>,
	sgregory@pubspo.hq.af.mil (Scott Gregory) writes:
>Is it possible to have sgmlfmt use a different dtd??
>
>I would like to convert some of our publications from sgml to html,
>but we use our own dtd.

No, unfortunately its hardwired.  If your source DTD is relatively
simple, do take a look at sgmlsasp.  The roff and TeX conversions are
handled almost entirely by sgmls and sgmlsasp.  Look in
/usr/share/sgml/FreeBSD/rep/*.mapping for examples.  However,
sgmlsasp is rather limited as you will soon find out if you try to do
anything complex.  The linuxdoc to html conversion does use sgmlsasp,
but there is quite a lot of postprocessing involved to split a large
document into smaller html chunks, build menus and make sure all the
cross references work.  All this is compounded by the fact that the
linuxdoc dtd leaves quite a lot to be desired in terms of its
implementation.

I've been playing around with another tool called instant from OSF. 
It pretty much compiles out of the box on FreeBSD.  It has a lot of
rough edges, but is *far* more powerful than sgmlsasp.  A made a
decent start at a DocBook to HTML converter based on it.

Also you might want to check out COST which is a tcl based tools that
looks to be quite powerful as well.

Check out http://www.sil.org/sgml/sgml.html for locations of these. 


-john

== jfieber@indiana.edu ===========================================
== http://fallout.campusview.indiana.edu/~jfieber ================