osx
[ option...
] sysid...
Osx converts SGML to XML.
Osx parses and validates the SGML document contained in
sysid...
and writes an equivalent XML document to the standard output.
Osx will warn about SGML constructs which have no XML equivalent.
The following options are available:
-bname
,
--encoding=name
-csysid
,
--catalog=sysid
-C
,
--catalogs
-ddirectory
directory
.
-Ddirectory
,
--directory=directory
directory
for files specified in system identifiers.
This has the same effect as in onsgmls.
-e
,
--open-entities
-ffile
,
--error-file=file
file
.
This is useful mainly with shells that do not support redirection
of stderr.
-iname
,
--include=name
-ldtd_file
dtd_file
.
-R
,
--restricted
-v
,
--version
-wtype
,
--warning=type
type
.
This has the same effect as in onsgmls.
-xoption
,
--xml-output-option=option
option
as follows:
no-nl-in-tag
id
notation
ndata
cdata
comment
lower
pi-escape
&<>
in the contents of processing
instructions using the amp
, lt
and
gt
entities. This allows processing instructions to
contain the string >?
, but requires that applications
handle the escapes.
empty
<e/>
syntax for element types
e
declared as EMPTY.
attlist
#IMPLIED
.
report-input-sources
report-entities
no-expand-external
no-expand-internal
preserve-case
no-external-decl
-
Do not include the external entities declaration driver file in the instance's internal subset.
-
no-internal-decl
-
Do not include the internal entities declaration driver file in the instance's internal subset.
-
sdata-as-pis
-
When translating SDATA entities (whether expanding them or providing a
definition for them in the output's internal subset), express them as
processing instructions instead of as general internal entities.
-
no-output-outside-outdir
-
When preserving external entities, do not write output files outside the specified output directory ("." by default). In other words, if an external entity's system identifier includes enough instances of ".." to cause osx to write a file outside (above) the output directory, exit. (By default, osx will issue a warning but will write the file and continue.)
-
no-overwrite
-
When preserving internal or external entities, multiple output files will be written.
If this option is specified, do not overwrite existing files; instead, attempt to append a number to the end of the original filename to create a unique filename.
Exit with an error if too many (100) such files already exist.
Multiple
-x
options are allowed.