[This local archive copy mirrored from the canonical site: http://www.jclark.com/sp/sx.htm 980310; links may not have complete integrity, so use the canonical document at this URL if possible.]
SX converts SGML to XML.
SX parses and validates the SGML document contained in
and writes an equivalent XML document to the standard output.
SX will warn about SGML constructs which have no XML equivalent.
The following options are available:
encodingfor output. By default SX uses UTF-8.
directoryfor files specified in system identifiers. This has the same effect as in nsgmls.
file. This is useful mainly with shells that do not support redirection of stderr.
type. This has the same effect as in nsgmls.
&<>in the contents of processing instructions using the
gtentities. This allows processing instructions to contain the string
>?, but requires that applications handle the escapes.
<e/>syntax for element types
edeclared as EMPTY.
options are allowed.