One way is to pass --sgml to db2x_xsltproc.
However, db2x_xsltproc does not actually
use a real SGML parser: it does not support some features of SGML.
So the safest way still to use SGML is to convert (using sx) the source to XML. Type: sx -xlower -xid sgml-document >xml-document. (On Debian
systems replace sx with sgml2xml.)
There is one problem with this kind of conversion; the SGML ISO
entities do not work. (sx will complain
“SDATA not supported”.) You can work around this, but
the procedure is somewhat cumbersome: run sx
without the -xid option, and add a DocBook
DTD declaration to the beginning of the output file. Such a
declaration might look like this:
(Replace “article”
with whatever element name that your document starts with. You may
also have to use a different DTD then the above — check with
the original SGML source, and use the DocBook XML DTD that
corresponds with the DocBook SGML DTD used there.)
|