Blame docsrc/ospam.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>ospam</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
                                       
Packit 8a864e
  <section>
Packit 8a864e
    <title>Reference</title>
Packit 8a864e
Packit 8a864e
    <refentry>
Packit 8a864e
      <refentryinfo>
Packit 8a864e
        <title>ospam</title>
Packit 8a864e
        <date>November 2002</date>
Packit 8a864e
        <productname>OpenJade</productname>
Packit 8a864e
      </refentryinfo>
Packit 8a864e
Packit 8a864e
      <refmeta>
Packit 8a864e
        <refentrytitle>ospam</refentrytitle>
Packit 8a864e
        <manvolnum>1</manvolnum>
Packit 8a864e
      </refmeta>
Packit 8a864e
Packit 8a864e
      <refnamediv>
Packit 8a864e
        <refname>ospam</refname>
Packit 8a864e
	<refpurpose>An SGML/XML markup stream editor</refpurpose>
Packit 8a864e
      </refnamediv>
Packit 8a864e
    
Packit 8a864e
      <refsynopsisdiv>
Packit 8a864e
        <cmdsynopsis>
Packit 8a864e
          <command>ospam</command>
Packit 8a864e
          <arg choice="opt"><option>-CeghilprRvx</option></arg>
Packit 8a864e
          <arg choice="opt"><option>-a<replaceable>linktype</replaceable></option></arg>
Packit 8a864e
          <arg choice="opt"><option>-A<replaceable>architecture</replaceable></option></arg>
Packit 8a864e
          <arg choice="opt"><option>-b<replaceable>bctf</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>-f<replaceable>file</replaceable></option></arg>
Packit 8a864e
          <arg choice="opt"><option>-m<replaceable>markup_option</replaceable></option></arg>
Packit 8a864e
          <arg choice="opt"><option>-o<replaceable>entity_name</replaceable></option></arg>
Packit 8a864e
          <arg choice="opt"><option>-w<replaceable>warning_type</replaceable></option></arg>
Packit 8a864e
          <arg rep="repeat"><replaceable>sysid</replaceable></arg>
Packit 8a864e
Packit 8a864e
   spam [ -Cehilprvx ] [ -ccatalog_file ] [ -Ddirectory ] [ -ffile ] [
Packit 8a864e
   -mmarkup_option ] [ -oentity_name ] [ -wwarning_type ] sysid...
Packit 8a864e
-->
Packit 8a864e
        </cmdsynopsis>
Packit 8a864e
      </refsynopsisdiv>
Packit 8a864e
Packit 8a864e
      <refsect1>
Packit 8a864e
        <title>Description</title>
Packit 8a864e
Packit 8a864e
   <para><command>ospam</command> (OpenSP Add Markup) is an SGML markup stream editor implemented using
Packit 8a864e
   the OpenSP parser. <command>ospam</command> parses the SGML document contained in <replaceable>sysid</replaceable> and
Packit 8a864e
   copies to the standard output the portion of the document entity
Packit 8a864e
   containing the document instance, adding or changing markup as
Packit 8a864e
   specified by the <option>-m</option> options. The <option>-p</option> option can be used to include the
Packit 8a864e
   SGML declaration and prolog in the output. The <option>-o</option> option can be used
Packit 8a864e
   to output other entities. The <option>-x</option> option can be used to expand entity
Packit 8a864e
   references.</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 Internation Standard ISO/IEC 10744 -- Hypermedia/Time-based Structuring Language.</para>
Packit 8a864e
Packit 8a864e
   <para>The following options are available:</para>
Packit 8a864e
   
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>Make doctype or linktype <replaceable>name</replaceable> active.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-A<replaceable>architecture</replaceable></option></term>
Packit 8a864e
       <term><option>--architecture=<replaceable>architecture</replaceable></option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Parse with respect to architecture <replaceable>architecture</replaceable>.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-b<replaceable>bctf</replaceable></option></term>
Packit 8a864e
       <term><option>--bctf=<replaceable>bctf</replaceable></option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Use bctf <replaceable>bctf</replaceable> for output.</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>Use the catalog entry file <replaceable>sysid</replaceable>.</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>This has the same effect as in <command>onsgmls(1)</command>.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
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>Search directory for files specified in system identifiers.
Packit 8a864e
          This has the same effect as in <command>onsgmls(1)</command>.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-e</option></term>
Packit 8a864e
       <term><option>--open-entities</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Describe open entities in error messages.</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>Exit after <replaceable>max_errors</replaceable> errors are encountered.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
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>Redirect errors to <replaceable>file</replaceable>.
Packit 8a864e
          This is useful mainly with shells that do not support redirection
Packit 8a864e
          of stderr.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-h</option></term>
Packit 8a864e
       <term><option>--hoist-omitted-tags</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Hoist omitted tags out from the start of internal entities. If
Packit 8a864e
          the text at the beginning of an internal entity causes a tag to
Packit 8a864e
          be implied, the tag will usually be treated as being in that
Packit 8a864e
          internal entity; this option will instead cause it to be
Packit 8a864e
          treated as being in the entity that referenced the internal
Packit 8a864e
          entity. This option makes a difference in conjunction with
Packit 8a864e
          <option>-momittag</option> or <option>-x</option> <option>-x</option>.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>--help</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Display a help text and exit.</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>This has the same effect as in <command>onsgmls(1)</command>.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
          
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-l</option></term>
Packit 8a864e
       <term><option>--lowercase</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
         <para>Prefer lower-case. Added names that were subject to upper-case
Packit 8a864e
          substitution will be converted to lower-case.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-m<replaceable>markup_option</replaceable></option></term>
Packit 8a864e
       <term><option>--markup-option=<replaceable>markup_option</replaceable></option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Change the markup in the output according to the value of
Packit 8a864e
          <replaceable>markup_option</replaceable> as follows:</para>
Packit 8a864e
          
Packit 8a864e
        <para><option>omittag</option>
Packit 8a864e
                Add tags that were omitted using omitted tag
Packit 8a864e
                minimization. End tags that were omitted because the
Packit 8a864e
                element has a declared content of EMPTY or an explicit
Packit 8a864e
                content reference will not be added.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>shortref</option>
Packit 8a864e
                Replace short references by named entity references.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>net</option>
Packit 8a864e
                Change null end-tags into unminimized end-tags, and
Packit 8a864e
                change net-enabling start-tags into unminimized
Packit 8a864e
                start-tags.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>emptytag</option>
Packit 8a864e
                Change empty tags into unminimized tags.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>unclosed</option>
Packit 8a864e
                Change unclosed tags into unminimized tags.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>attname</option>
Packit 8a864e
                Add omitted attribute names and vis.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>attvalue</option>
Packit 8a864e
                Add literal delimiters omitted from attribute values.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>attspec</option>
Packit 8a864e
                Add omitted attribute specifications.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>current</option>
Packit 8a864e
                Add omitted attribute specifications for current
Packit 8a864e
                attributes. This option is implied by the attspec option.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>shorttag</option>
Packit 8a864e
                Equivalent to combination of net, emptytag, unclosed,
Packit 8a864e
                attname, attvalue and attspec options.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>rank</option>
Packit 8a864e
                Add omitted rank suffixes.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>reserved</option>
Packit 8a864e
                Put reserved names in upper-case.</para>
Packit 8a864e
                
Packit 8a864e
        <para><option>ms</option>
Packit 8a864e
                Remove marked section declarations whose effective status
Packit 8a864e
                is IGNORE, and replace each marked section declaration
Packit 8a864e
                whose effective status is INCLUDE by its marked section.
Packit 8a864e
                In the document instance, empty comments will be added
Packit 8a864e
                before or after the marked section declaration to ensure
Packit 8a864e
                that ignored record ends remain ignored.</para>
Packit 8a864e
                
Packit 8a864e
          <para>Multiple -m options are allowed.</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>Show error numbers in error messages.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-o<replaceable>name</replaceable></option></term>
Packit 8a864e
       <term><option>--output-entity=<replaceable>name</replaceable></option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Output the general entity name instead of the document entity.
Packit 8a864e
          The output will correspond to the first time that the entity is
Packit 8a864e
          referenced in content.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-p</option></term>
Packit 8a864e
       <term><option>--output-prolog</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Output the part of the document entity containing the SGML
Packit 8a864e
          declaration (if it was explicitly present in the document
Packit 8a864e
          entity) and the prolog before anything else. If this option is
Packit 8a864e
          specified two or more times, then all entity references
Packit 8a864e
          occurring between declarations in the prolog will be expanded;
Packit 8a864e
          this includes the implicit reference to the entity containing
Packit 8a864e
          the external subset of the DTD, if there is one. Note that the
Packit 8a864e
          SGML declaration will not be included if it was specified by an
Packit 8a864e
          SGMLDECL entry in a catalog.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-r</option></term>
Packit 8a864e
       <term><option>--raw</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Don't perform any conversion on RSs and REs when outputting the
Packit 8a864e
          entity. The entity would typically have the storage manager
Packit 8a864e
          attribute records=asis.</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>This as the same effect as in <command>onsgmls(1)</command></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>Print the version number.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
          
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>Control warnings and errors according to type. This has the
Packit 8a864e
          same effect as in <command>onsgmls(1)</command>.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
          
Packit 8a864e
     <varlistentry>
Packit 8a864e
       <term><option>-x</option></term>
Packit 8a864e
       <term><option>--expand-references</option></term>
Packit 8a864e
       <listitem>
Packit 8a864e
          <para>Expand references to entities that are changed. If this option
Packit 8a864e
          is specified two or more times, then all references to entities
Packit 8a864e
          that contain tags will be expanded.</para>
Packit 8a864e
       </listitem>
Packit 8a864e
     </varlistentry>
Packit 8a864e
   </variablelist>
Packit 8a864e
 </refsect1>
Packit 8a864e
Packit 8a864e
 <refsect1>
Packit 8a864e
   <title>Bugs</title>
Packit 8a864e
Packit 8a864e
   <para>Omitted tags are added at the point where they are implied by the SGML
Packit 8a864e
   parser (except as modified by the <option>-h</option> option); this is often not quite
Packit 8a864e
   where they are wanted.</para>
Packit 8a864e
   
Packit 8a864e
   <para>The case of general delimiters is not preserved.</para>
Packit 8a864e
   
Packit 8a864e
   <para>Incorrect results may be produced if a variant concrete syntax is used
Packit 8a864e
   which is such that there are delimiters in markup to be added that
Packit 8a864e
   have a prefix that is a proper suffix of some other delimiter.</para>
Packit 8a864e
   
Packit 8a864e
   <para>If an entity reference in a default value uses the default entity and
Packit 8a864e
   an entity with that name is subsequently defined and that default
Packit 8a864e
   value is added to the document instance, then the resulting document
Packit 8a864e
   may not be equivalent to the original document. <command>ospam</command> will give a
Packit 8a864e
   warning when the first two conditions are met.</para>
Packit 8a864e
Packit 8a864e
   </refsect1>
Packit 8a864e
   <refsect1>
Packit 8a864e
     <title>See Also</title>
Packit 8a864e
     <para><command>onsgmls(1)</command>, <command>ospent(1)</command>,
Packit 8a864e
     <command>onsgmlnorm(1)</command>, <command>osx(1)</command></para>
Packit 8a864e
   </refsect1>
Packit 8a864e
 </refentry>
Packit 8a864e
 </section>
Packit 8a864e
</article>