'\" te .\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "OSX" 1 "November 2002" "OpenJade" "osx" .SH NAME osx \- An SGML System Conforming to International Standard ISO 8879 -- Standard Generalized Markup Language. An SGML Extended Facilities system conforming to Annex A of International Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language. .SH "SYNOPSIS" .nf \fBosx\fR [\fB-CeghnRvx\fR] [\fB-aname\fR] [\fB-Aarchitecture\fR] [\fB-bencoding\fR] [\fB-ccatalog_file\fR] [\fB-ddirectory\fR] [\fB-Ddirectory\fR] [\fB-iname\fR] [\fB-ffile\fR] [\fB-ldirectory\fR] [\fB-wwarning_type\fR] [\fB-xxml_output_option\fR...] [\fBsysid\fR...] .fi .SH "DESCRIPTION" .PP \fBosx\fR converts SGML to XML. \fBosx\fR parses and validates the SGML document contained in .nf \fB\fR .fi and writes an equivalent XML document to the standard output. \fBosx\fR will warn about SGML constructs which have no XML equivalent. .SH "OPTIONS" .PP The following options are available: .TP \fB-aname\fR, \fB--activate=name\fR Make doctype or linkname \fIname\fR active. .TP \fB-Aname\fR, \fB--architecture=name\fR Parse with respect to architecture \fIname\fR. .TP \fB-bencoding\fR, \fB--encoding=encoding\fR Use the BCTF \fIencoding\fR for output. By default \fBosx\fR uses UTF-8. .TP \fB-csysid\fR, \fB--catalog=sysid\fR Map public identifiers and entity names to system identifiers using the catalog entry file whose system identifier is \fIsysid\fR. .TP \fB-C\fR, \fB--catalogs\fR This has the same effect as in \fBonsgmls(1)\fR. .TP \fB-ddirectory\fR, \fB--entity_output_location=directory\fR Place output files in \fIdirectory\fR. .TP \fB-Ddirectory\fR, \fB--directory=directory\fR Search \fIdirectory\fR for files specified in system identifiers. This has the same effect as in \fBonsgmls(1)\fR. .TP \fB-e\fR, \fB--open-entities\fR Describe open entities in error messages. .TP \fB-Emax_errors\fR, \fB--max-errors=max_errors\fR Give up after \fImax_errors\fR errors. .TP \fB-ffile\fR, \fB--error-file=file\fR Redirect errors to \fIfile\fR. This is useful mainly with shells that do not support redirection of stderr. .TP \fB-g\fR, \fB--open-elements\fR Describe open elements in error messages. .TP \fB-h\fR, \fB--help\fR Display a help text and exit. .TP \fB-iname\fR, \fB--include=name\fR This has the same effect as in \fBonsgmls(1)\fR. .TP \fB-ldtd-file\fR, \fB--dtd_location=dtd-file\fR Specify that the resulting XML file should conform to the DTD in \fIdtd-file\fR. .TP \fB-n\fR, \fB--error-numbers\fR Show error numbers in error messages. .TP \fB--references\fR Show references in error messages. .TP \fB-R\fR, \fB--restricted\fR This has the same effect as in \fBonsgmls(1)\fR. .TP \fB-v\fR, \fB--version\fR Print the version number and exit. .TP \fB-wtype\fR, \fB--warning=type\fR Control warnings and errors according to type. This has the same effect as in \fBonsgmls(1)\fR. .TP \fB-xxml_output_option\fR, \fB--xml-output-option=xml_output_option\fR Control the XML output according to the value of \fIxml_output_option\fR as follows: \fBno-nl-in-tag\fR Don't use newlines inside start-tags. Usually \fBosx\fR uses newlines inside start-tags so as to reduce the probability of excessively long lines. \fBid\fR Output attribute declarations for ID attributes. \fBnotation\fR Output declarations for notations. \fBndata\fR Output declarations for external data entities. XML requires these to be NDATA. \fBosx\fR will warn about CDATA and SDATA external data entities and output them as NDATA entities. \fBcdata\fR Use XML CDATA sections for CDATA marked sections and for elements with a declared content of CDATA. \fBcomment\fR Output comment declarations. Comment declarations in the DTD will not be output. \fBlower\fR Prefer lower case. Names that were subjected to upper-case substitution by SGML will be folded to lower case. This does not include reserved names; XML requires these to be in upper-case. \fBpi-escape\fR 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. \fBempty\fR Use the syntax for element types e declared as EMPTY. \fBattlist\fR Output an ATTLIST declaration for every element specifying the type of all attributes. The default will always be #IMPLIED. \fBreport-input-sources\fR Output a processing instruction to report when an input source other than the main file is opened or closed in the instance. Do not report any input source changes in the DTD. \fBreport-entities\fR Output a processing instruction to report when an external entity reference has been resolved in the instance. Do not report any entity resolutions in the DTD. \fBno-expand-external\fR Preserve external entities, write a declaration driver file named "extEntities.dtf", and include that file in the instance's internal subset. \fBno-expand-internal\fR Preserve internal entities, write a declaration driver file named "intEntities.dtf", and include that file in the instance's internal subset. \fBno-external-decl\fR Do not include the external entities declaration driver file in the instance's internal subset. \fBno-internal-decl\fR Do not include the internal entities declaration driver file in the instance's internal subset. \fBno-output-outside-outdir\fR 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. \fBno-overwrite\fR 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. \fBpreserve-case\fR Preserve casing as specified in the DTD for element names; attribute names; attribute values which are token lists. \fBsdata-as-pis\fR 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. Multiple \fB-x\fR options are allowed. .SH "ATTRIBUTES" .PP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS tab(^G) allbox; cw(2.750000i)| cw(2.750000i) lw(2.750000i)| lw(2.750000i). ATTRIBUTE TYPE^ATTRIBUTE VALUE Availability^SUNWopensp Interface stability^Volatile .TE .sp .SH LINKS .SH "SEE ALSO" .PP \fBonsgmls(1)\fR, \fBospam(1)\fR, \fBonsgmlnorm(1)\fR, \fBospent(1)\fR .SH AUTHORS James Clark, Ian Castle . ...\" LSARC 2005/734 GNOME For Nevada