[50d3491a] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[f6f7820] | 5 |
|
---|
[50d3491a] | 6 | <!ENTITY opensp-download-http "http://download.sourceforge.net/openjade/OpenSP-&opensp-version;.tar.gz">
|
---|
[cb6de2e] | 7 | <!ENTITY opensp-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/OpenSP-&opensp-version;.tar.gz">
|
---|
[c2a37a6] | 8 | <!ENTITY opensp-md5sum "f46fe0a04b76a4454ec27b7fcc84ec54">
|
---|
[50d3491a] | 9 | <!ENTITY opensp-size "1.4 MB">
|
---|
[b650556] | 10 | <!ENTITY opensp-buildsize "43 MB">
|
---|
| 11 | <!ENTITY opensp-time "1.03 SBU">
|
---|
[50d3491a] | 12 | ]>
|
---|
| 13 |
|
---|
[8223b66] | 14 | <sect1 id="opensp" xreflabel="OpenSP-&opensp-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[dd3f20f0] | 19 | <?dbhtml filename="opensp.html"?>
|
---|
[7ff89fa4] | 20 | <title>OpenSP-&opensp-version;</title>
|
---|
| 21 |
|
---|
[50d3491a] | 22 | <sect2>
|
---|
| 23 | <title>Introduction to <application>OpenSP</application></title>
|
---|
| 24 |
|
---|
| 25 | <para>The <application>OpenSP</application> package contains a
|
---|
| 26 | <application>C++</application> library for using
|
---|
| 27 | <acronym>SGML</acronym>/<acronym>XML</acronym> files.
|
---|
| 28 | This is useful for validating, parsing and manipulating
|
---|
| 29 | <acronym>SGML</acronym> and <acronym>XML</acronym>
|
---|
| 30 | documents.</para>
|
---|
| 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&opensp-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&opensp-download-ftp;"/></para></listitem>
|
---|
[c2a37a6] | 38 | <listitem><para>Download MD5 sum: &opensp-md5sum;</para></listitem>
|
---|
[50d3491a] | 39 | <listitem><para>Download size: &opensp-size;</para></listitem>
|
---|
[518538f] | 40 | <listitem><para>Estimated disk space required:
|
---|
[50d3491a] | 41 | &opensp-buildsize;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated build time:
|
---|
| 43 | &opensp-time;</para></listitem></itemizedlist>
|
---|
| 44 | </sect3>
|
---|
[f6f7820] | 45 |
|
---|
[50d3491a] | 46 | <sect3><title>Additional downloads</title>
|
---|
| 47 | <itemizedlist spacing='compact'>
|
---|
[cb6de2e] | 48 | <listitem><para>Required Patch (removes some annoying messages that can appear
|
---|
| 49 | while running <command>openjade</command>): <ulink
|
---|
[f3ed6a7] | 50 | url="&patch-root;/OpenSP-&opensp-version;-LITLEN-1.patch"/></para></listitem>
|
---|
[c2a37a6] | 51 | <listitem><para>Required Patch: <ulink
|
---|
[f3ed6a7] | 52 | url="&patch-root;/OpenSP-&opensp-version;-gcc34-1.patch"/></para></listitem>
|
---|
[50d3491a] | 53 | </itemizedlist></sect3>
|
---|
| 54 |
|
---|
| 55 | <sect3><title><application>OpenSP</application> dependencies</title>
|
---|
| 56 | <sect4><title>Required</title>
|
---|
[c2a37a6] | 57 | <para><xref linkend="sgml-common"/></para>
|
---|
| 58 | </sect4>
|
---|
[50d3491a] | 59 | </sect3>
|
---|
| 60 |
|
---|
| 61 | </sect2>
|
---|
| 62 |
|
---|
| 63 | <sect2>
|
---|
| 64 | <title>Installation of <application>OpenSP</application></title>
|
---|
| 65 |
|
---|
[b1623c2] | 66 | <para>Install <application>OpenSP</application> by running the following
|
---|
| 67 | commands:</para>
|
---|
[50d3491a] | 68 |
|
---|
[f3ed6a7] | 69 | <screen><userinput><command>patch -Np1 -i ../OpenSP-&opensp-version;-LITLEN-1.patch &&
|
---|
| 70 | patch -Np1 -i ../OpenSP-&opensp-version;-gcc34-1.patch &&
|
---|
| 71 | ./configure --prefix=/usr --disable-static --enable-http \
|
---|
[50d3491a] | 72 | --enable-default-catalog=/etc/sgml/catalog \
|
---|
| 73 | --enable-default-search-path=/usr/share/sgml &&
|
---|
| 74 | make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; &&
|
---|
| 75 | make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; install &&
|
---|
| 76 | ln -sf onsgmls /usr/bin/nsgmls &&
|
---|
| 77 | ln -sf osgmlnorm /usr/bin/sgmlnorm &&
|
---|
| 78 | ln -sf ospam /usr/bin/spam &&
|
---|
| 79 | ln -sf ospcat /usr/bin/spcat &&
|
---|
| 80 | ln -sf ospent /usr/bin/spent &&
|
---|
| 81 | ln -sf osx /usr/bin/sx &&
|
---|
| 82 | ln -sf osx /usr/bin/sgml2xml &&
|
---|
[402131a2] | 83 | ln -sf libosp.so /usr/lib/libsp.so</command></userinput></screen>
|
---|
| 84 |
|
---|
| 85 | <!-- install-catalog -add /etc/sgml/OpenSP-&opensp-version;.cat \
|
---|
[50d3491a] | 86 | /usr/share/sgml/OpenSP-&opensp-version;/catalog &&
|
---|
[402131a2] | 87 | install-catalog -add /etc/sgml/sgml-docbook.cat \
|
---|
[50d3491a] | 88 | /etc/sgml/OpenSP-&opensp-version;.cat</command></userinput></screen>
|
---|
| 89 |
|
---|
| 90 | <tip><title>Update hint</title>
|
---|
| 91 | <para>Remove the above catalog items prior to upgrading with:
|
---|
[402131a2] | 92 | <screen><command>install-catalog -remove /etc/sgml/OpenSP-<replaceable>[version]</replaceable>.cat \
|
---|
[50d3491a] | 93 | /usr/share/sgml/OpenSP-<replaceable>[version]</replaceable>/catalog &&
|
---|
[402131a2] | 94 | install-catalog -remove /etc/sgml/sgml-docbook.cat \
|
---|
| 95 | /etc/sgml/OpenSP-<replaceable>[version]</replaceable>.cat</command></screen></para></tip> -->
|
---|
[50d3491a] | 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2>
|
---|
| 100 | <title>Command explanations</title>
|
---|
| 101 |
|
---|
| 102 | <para><option>--disable-static</option>: This switch prevents
|
---|
| 103 | the building of the static library.</para>
|
---|
| 104 |
|
---|
| 105 | <para><option>--enable-http</option>: This switch adds support
|
---|
| 106 | for <acronym>HTTP</acronym>.</para>
|
---|
| 107 |
|
---|
| 108 | <para><parameter>--enable-default-catalog=/etc/sgml/catalog</parameter>: This
|
---|
| 109 | switch sets the path to the centralized catalog.</para>
|
---|
| 110 |
|
---|
[f3ed6a7] | 111 | <para><parameter>--enable-default-search-path</parameter>: This switch
|
---|
[50d3491a] | 112 | sets the default value of <envar>SGML_SEARCH_PATH</envar>.</para>
|
---|
| 113 |
|
---|
| 114 | <para><option>--enable-xml-messages</option>: This switch adds
|
---|
| 115 | support for <acronym>XML</acronym> Formatted Messages.</para>
|
---|
| 116 |
|
---|
[c2a37a6] | 117 | <para><command>make
|
---|
| 118 | pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</command>: This sets the
|
---|
| 119 | pkgdatadir variable in the <filename>Makefile</filename> from
|
---|
[50d3491a] | 120 | <filename class="directory">/usr/share/OpenSP</filename> to
|
---|
[c2a37a6] | 121 | <filename class="directory">/usr/share/sgml/OpenSP-&opensp-version;</filename>.
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <para><command>ln -sf ...</command>: These commands create the
|
---|
| 125 | <application>SP</application> equivalents of
|
---|
[b1623c2] | 126 | <application>OpenSP</application> executables and libraries.</para>
|
---|
[50d3491a] | 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2>
|
---|
| 131 | <title>Contents</title>
|
---|
| 132 |
|
---|
[b1623c2] | 133 | <para>The <application>OpenSP</application> package contains
|
---|
| 134 | <command>onsgmls</command>,
|
---|
[402131a2] | 135 | <command>ospam</command>,
|
---|
| 136 | <command>osx</command>,
|
---|
[50d3491a] | 137 | <command>ospcat</command> and
|
---|
| 138 | <command>ospent</command>.</para>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2><title>Description</title>
|
---|
| 143 |
|
---|
| 144 | <sect3><title>onsgmls</title>
|
---|
[b1623c2] | 145 | <para><command>onsgmls</command> processes <acronym>SGML</acronym>
|
---|
| 146 | files.</para></sect3>
|
---|
[50d3491a] | 147 |
|
---|
| 148 | <sect3><title>ospam</title>
|
---|
| 149 | <para><command>ospam</command> is a markup stream editor.</para></sect3>
|
---|
| 150 |
|
---|
| 151 | <sect3><title>osx</title>
|
---|
| 152 | <para><command>osx</command> is a <acronym>SGML</acronym> normalizer or a
|
---|
| 153 | converter of <acronym>SGML</acronym> to <acronym>XML</acronym>.</para></sect3>
|
---|
| 154 |
|
---|
| 155 | <sect3><title>ospcat</title>
|
---|
[f6f7820] | 156 | <para><command>ospcat</command> prints effective system identifiers found in
|
---|
| 157 | the catalogs.</para></sect3>
|
---|
[50d3491a] | 158 |
|
---|
| 159 | <sect3><title>ospent</title>
|
---|
| 160 | <para><command>ospent</command> provides access to
|
---|
| 161 | <application>OpenSP</application>'s entity manager.</para></sect3>
|
---|
| 162 |
|
---|
| 163 | </sect2>
|
---|
[7ff89fa4] | 164 |
|
---|
| 165 | </sect1>
|
---|
| 166 |
|
---|