Blame docsrc/osx.xml

Packit 8a864e
 
Packit 8a864e
Packit 8a864e
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd">
Packit 8a864e
<article>
Packit 8a864e
  <articleinfo>
Packit 8a864e
    <title>osx</title>
Packit 8a864e
    <author>
Packit 8a864e
       <firstname>James</firstname>
Packit 8a864e
       <surname>Clark</surname>
Packit 8a864e
    </author>
Packit 8a864e
    <author>
Packit 8a864e
       <firstname>Ian</firstname>
Packit 8a864e
       <surname>Castle</surname>
Packit 8a864e
       <affiliation><address><email>ian.castle@openjade.org</email></address></affiliation>
Packit 8a864e
    </author>
Packit 8a864e
Packit 8a864e
    <copyright>
Packit 8a864e
       <year>2002</year>
Packit 8a864e
       <holder>OpenJade Project</holder>
Packit 8a864e
    </copyright>
Packit 8a864e
  </articleinfo>
Packit 8a864e
Packit 8a864e
  <section>
Packit 8a864e
    <title>Reference</title>
Packit 8a864e
    
Packit 8a864e
    <refentry>
Packit 8a864e
      <refentryinfo>
Packit 8a864e
        <title>osx</title>
Packit 8a864e
        <date>November 2002</date>
Packit 8a864e
        <productname>OpenJade</productname>
Packit 8a864e
      </refentryinfo>
Packit 8a864e
    
Packit 8a864e
      <refmeta>
Packit 8a864e
        <refentrytitle>osx</refentrytitle>
Packit 8a864e
        <manvolnum>1</manvolnum>
Packit 8a864e
      </refmeta>
Packit 8a864e
Packit 8a864e
      <refnamediv>
Packit 8a864e
        <refname>osx</refname>
Packit 8a864e
	<refpurpose>An SGML to XML converter</refpurpose>
Packit 8a864e
      </refnamediv>
Packit 8a864e
Packit 8a864e
      <refsynopsisdiv>
Packit 8a864e
Packit 8a864e
 [sx [ -Cehilprvx ] [ -bencoding ] [ -ccatalog_file ] [ -Ddirectory ] [
Packit 8a864e
   -ffile ] [ -wwarning_type ] [ -xxml_output_option ] sysid... ]
Packit 8a864e
-->
Packit 8a864e
        <cmdsynopsis>
Packit 8a864e
          <command>osx</command>
Packit 8a864e
          <arg choice="opt"><option>-CeghnRvx</option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-a<replaceable>name</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-A<replaceable>architecture</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-b<replaceable>encoding</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-c<replaceable>catalog_file</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-d<replaceable>directory</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-D<replaceable>directory</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-i<replaceable>name</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-f<replaceable>file</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-l<replaceable>dtd_file</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt"><option>-w<replaceable>warning_type</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt" rep="repeat"><option>-x<replaceable>xml_output_option</replaceable></option></arg>
Packit 8a864e
	  <arg choice="opt" rep="repeat"><option><replaceable>sysid</replaceable></option></arg>
Packit 8a864e
       </cmdsynopsis>
Packit 8a864e
Packit 8a864e
     </refsynopsisdiv>
Packit 8a864e
Packit 8a864e
     <refsect1>
Packit 8a864e
       <title>Description</title>
Packit 8a864e
<para>
Packit 8a864e
   <command>osx</command> converts SGML to XML. <command>osx</command> parses and validates the SGML document
Packit 8a864e
   contained in <cmdsynopsis><arg rep="repeat"><option><replaceable>sysid</replaceable></option></arg></cmdsynopsis> and writes an equivalent XML document to the
Packit 8a864e
   standard output. <command>osx</command> will warn about SGML constructs which have no XML
Packit 8a864e
   equivalent.
Packit 8a864e
</para>
Packit 8a864e
Packit 8a864e
        <para>Part of 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.</para>
Packit 8a864e
     </refsect1>
Packit 8a864e
   
Packit 8a864e
   <refsect1>
Packit 8a864e
     <title>Options</title>   
Packit 8a864e
<para>
Packit 8a864e
   The following options are available:
Packit 8a864e
</para>
Packit 8a864e
<variablelist>
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-a<replaceable>name</replaceable></option></term>
Packit 8a864e
  <term><option>--activate=<replaceable>name</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
        Make doctype or linkname <replaceable>name</replaceable> active.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-A<replaceable>name</replaceable></option></term>
Packit 8a864e
  <term><option>--architecture=<replaceable>name</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
        Parse with respect to architecture <replaceable>name</replaceable>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-b<replaceable>encoding</replaceable></option></term>
Packit 8a864e
  <term><option>--encoding=<replaceable>encoding</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Use the BCTF <replaceable>encoding</replaceable> for output. By default <command>osx</command> uses UTF-8.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-c<replaceable>sysid</replaceable></option></term>
Packit 8a864e
  <term><option>--catalog=<replaceable>sysid</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
        Map public identifiers and entity names to system identifiers using
Packit 8a864e
        the catalog entry file whose system identifier is
Packit 8a864e
        <replaceable>sysid</replaceable>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-C</option></term>
Packit 8a864e
  <term><option>--catalogs</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          This has the same effect as in <command>onsgmls(1)</command>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-d<replaceable>directory</replaceable></option></term>
Packit 8a864e
  <term><option>--entity_output_location=<replaceable>directory</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Place output files in <replaceable>directory</replaceable>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-D<replaceable>directory</replaceable></option></term>
Packit 8a864e
  <term><option>--directory=<replaceable>directory</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Search <replaceable>directory</replaceable> for files specified in system identifiers.
Packit 8a864e
          This has the same effect as in <command>onsgmls(1)</command>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-e</option></term>
Packit 8a864e
  <term><option>--open-entities</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Describe open entities in error messages.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-E<replaceable>max_errors</replaceable></option></term>
Packit 8a864e
  <term><option>--max-errors=<replaceable>max_errors</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Give up after <replaceable>max_errors</replaceable> errors.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-f<replaceable>file</replaceable></option></term>
Packit 8a864e
  <term><option>--error-file=<replaceable>file</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Redirect errors to <replaceable>file</replaceable>.
Packit 8a864e
          This is useful mainly with shells that do not support redirection
Packit 8a864e
          of stderr.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-g</option></term>
Packit 8a864e
  <term><option>--open-elements</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Describe open elements in error messages.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-h</option></term>
Packit 8a864e
  <term><option>--help</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Display a help text and exit.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-i<replaceable>name</replaceable></option></term>
Packit 8a864e
  <term><option>--include=<replaceable>name</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          This has the same effect as in <command>onsgmls(1)</command>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-l<replaceable>dtd-file</replaceable></option></term>
Packit 8a864e
  <term><option>--dtd_location=<replaceable>dtd-file</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Specify that the resulting XML file should conform to the DTD in
Packit 8a864e
	  <replaceable>dtd-file</replaceable>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-n</option></term>
Packit 8a864e
  <term><option>--error-numbers</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Show error numbers in error messages.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>--references</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Show references in error messages.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-R</option></term>
Packit 8a864e
  <term><option>--restricted</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          This has the same effect as in <command>onsgmls(1)</command>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-v</option></term>
Packit 8a864e
  <term><option>--version</option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Print the version number and exit.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-w<replaceable>type</replaceable></option></term>
Packit 8a864e
  <term><option>--warning=<replaceable>type</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Control warnings and errors according to type. This has the
Packit 8a864e
          same effect as in <command>onsgmls(1)</command>.
Packit 8a864e
   </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>
Packit 8a864e
 <varlistentry>
Packit 8a864e
  <term><option>-x<replaceable>xml_output_option</replaceable></option></term>
Packit 8a864e
  <term><option>--xml-output-option=<replaceable>xml_output_option</replaceable></option></term>
Packit 8a864e
  <listitem>
Packit 8a864e
   <para>
Packit 8a864e
          Control the XML output according to the value of
Packit 8a864e
          <replaceable>xml_output_option</replaceable> as follows:
Packit 8a864e
   </para>
Packit 8a864e
     <para><option>no-nl-in-tag</option>
Packit 8a864e
                Don't use newlines inside start-tags.
Packit 8a864e
                Usually <command>osx</command> uses
Packit 8a864e
                newlines inside start-tags so as to reduce the
Packit 8a864e
                probability of excessively long lines.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>id</option>
Packit 8a864e
                Output attribute declarations for ID attributes.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>notation</option>
Packit 8a864e
                Output declarations for notations.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>ndata</option>
Packit 8a864e
                Output declarations for external data entities.
Packit 8a864e
                XML requires these to be NDATA.
Packit 8a864e
                <command>osx</command> will warn about CDATA and
Packit 8a864e
                SDATA external data entities and output them as NDATA
Packit 8a864e
                entities.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>cdata</option>
Packit 8a864e
                Use XML CDATA sections for CDATA marked sections and for
Packit 8a864e
                elements with a declared content of CDATA.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>comment</option>
Packit 8a864e
                Output comment declarations. Comment declarations in the
Packit 8a864e
                DTD will not be output. </para>
Packit 8a864e
     <para><option>lower</option>
Packit 8a864e
                Prefer lower case. Names that were subjected to
Packit 8a864e
                upper-case substitution by SGML will be folded to lower
Packit 8a864e
                case. This does not include reserved names; XML requires
Packit 8a864e
                these to be in upper-case.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>pi-escape</option>
Packit 8a864e
                Escape &<> in the contents of processing instructions
Packit 8a864e
                using the amp, lt and gt entities. This allows processing
Packit 8a864e
                instructions to contain the string >?, but requires that
Packit 8a864e
                applications handle the escapes.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>empty</option>
Packit 8a864e
      Use the <e/> syntax for element types e declared as EMPTY.
Packit 8a864e
      </para>
Packit 8a864e
     <para><option>attlist</option>
Packit 8a864e
      Output an ATTLIST declaration for every element specifying
Packit 8a864e
                the type of all attributes. The default will always be
Packit 8a864e
                #IMPLIED.
Packit 8a864e
      </para>
Packit 8a864e
Packit 8a864e
      <para><option>report-input-sources</option>
Packit 8a864e
                Output a processing instruction to report when an input
Packit 8a864e
                source other than the main file is opened or closed in the
Packit 8a864e
                instance. Do not report any input source changes in
Packit 8a864e
                the DTD.</para>
Packit 8a864e
Packit 8a864e
      <para><option>report-entities</option>
Packit 8a864e
                Output a processing instruction to report when an external
Packit 8a864e
                entity reference has been resolved in the instance.
Packit 8a864e
                Do not report any entity resolutions in the DTD.</para>
Packit 8a864e
Packit 8a864e
      <para><option>no-expand-external</option>
Packit 8a864e
                Preserve external entities, write a declaration driver
Packit 8a864e
                file named "extEntities.dtf", and include that file
Packit 8a864e
                in the instance's internal subset.</para>
Packit 8a864e
Packit 8a864e
      <para><option>no-expand-internal</option>
Packit 8a864e
                Preserve internal entities, write a declaration driver file
Packit 8a864e
                named "intEntities.dtf", and include that file in the 
Packit 8a864e
                instance's internal subset.</para>
Packit 8a864e
Packit 8a864e
      <para><option>no-external-decl</option>
Packit 8a864e
                Do not include the external entities declaration driver file
Packit 8a864e
                in the instance's internal subset.</para>
Packit 8a864e
Packit 8a864e
      <para><option>no-internal-decl</option>
Packit 8a864e
                Do not include the internal entities declaration driver file
Packit 8a864e
                in the instance's internal subset.</para>
Packit 8a864e
Packit 8a864e
      <para><option>no-output-outside-outdir</option>
Packit 8a864e
                When preserving external entities, do not write output files
Packit 8a864e
                outside the specified output directory ("." by default).
Packit 8a864e
                In other words, if an external entity's system identifier
Packit 8a864e
                includes enough instances of ".." to cause osx to write
Packit 8a864e
                a file outside (above) the output directory, exit (by default
Packit 8a864e
                osx will issue a warning but will write the file and
Packit 8a864e
                continue.</para>
Packit 8a864e
Packit 8a864e
      <para><option>no-overwrite</option>
Packit 8a864e
                When preserving internal or external entities, multiple 
Packit 8a864e
                output files will be written. If this option is specified,
Packit 8a864e
                do not overwrite existing files; instead, attempt to append
Packit 8a864e
                a number to the end of the original filename to create a
Packit 8a864e
                unique filename. Exit with an error if too many (100)
Packit 8a864e
                such files already exist.</para>
Packit 8a864e
Packit 8a864e
      <para><option>preserve-case</option>
Packit 8a864e
                Preserve casing as specified in the DTD for element names;
Packit 8a864e
                attribute names; attribute values which are token lists.</para>
Packit 8a864e
Packit 8a864e
      <para><option>sdata-as-pis</option>
Packit 8a864e
                When translating SDATA entities (whether expanding them or
Packit 8a864e
                providing a definition for them in the output's internal
Packit 8a864e
                subset), express them as processing instructions instead
Packit 8a864e
                of as general internal entities.</para>
Packit 8a864e
    
Packit 8a864e
   <para>Multiple <option>-x</option> options are allowed. </para>
Packit 8a864e
  </listitem>
Packit 8a864e
 </varlistentry>    
Packit 8a864e
</variablelist>
Packit 8a864e
Packit 8a864e
</refsect1>
Packit 8a864e
Packit 8a864e
   <refsect1>
Packit 8a864e
     <title>See Also</title>
Packit 8a864e
     <para><command>onsgmls(1)</command>, <command>ospam(1)</command>,
Packit 8a864e
     <command>onsgmlnorm(1)</command>, <command>ospent(1)</command></para>
Packit 8a864e
   </refsect1>
Packit 8a864e
   </refentry>
Packit 8a864e
  </section>
Packit 8a864e
</article>
Packit 8a864e