Essentially a wrapper for sx
, but since that doesn't
rewrite the DTD subset, this script does that, trying to find
XML-compatible ways of rewriting what it finds, and spitting out
warnings whenever it sees anything it thinks is dodgy.
Output is to stdout.
Notes:
NDATA XML
entities, and warns that it's done
this, but the referenced document might well be SGML rather than
XML.SGML file to be processed (required)
If the environment variable SX
is defined, then this is
used as the command to invoke sx
, otherwise a default value
is used.
sx
is available as part of James Clark's SP package.
References to `productions' are to the productions of the
SGML standard.
See <http://www.tiac.net/users/bingham/sgmlsyn/sgmlsyn.htm>
for a
well-linked version, or
<http://www.oreilly.com/people/staff/crism/sgmldefs.html>
, or
<ftp://ftp.ifi.uio.no/pub/SGML/productions>
.