%general-entities; ]> $LastChangedBy$ $Date$ OpenSP-&opensp-version; OpenSP Introduction to OpenSP The OpenSP package contains a C++ library for using SGML/XML files. This is useful for validating, parsing and manipulating SGML and XML documents. &lfs76_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &opensp-md5sum; Download size: &opensp-size; Estimated disk space required: &opensp-buildsize; Estimated build time: &opensp-time; OpenSP Dependencies Required Optional User Notes: Installation of OpenSP Install OpenSP by running the following commands: sed -i 's/32,/253,/' lib/Syntax.cxx && sed -i 's/LITLEN 240 /LITLEN 8092/' \ unicode/{gensyntax.pl,unicode.syn} && ./configure --prefix=/usr \ --disable-static \ --disable-doc-build \ --enable-default-catalog=/etc/sgml/catalog \ --enable-http \ --enable-default-search-path=/usr/share/sgml && make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; To test the results, issue: make check. As many as nine of the 23 tests may fail. Do not be alarmed. Now, as the root user: make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; install && ln -v -sf onsgmls /usr/bin/nsgmls && ln -v -sf osgmlnorm /usr/bin/sgmlnorm && ln -v -sf ospam /usr/bin/spam && ln -v -sf ospcat /usr/bin/spcat && ln -v -sf ospent /usr/bin/spent && ln -v -sf osx /usr/bin/sx && ln -v -sf osx /usr/bin/sgml2xml && ln -v -sf libosp.so /usr/lib/libsp.so Command Explanations sed -i 's/32,/253,/...unicode.syn}: These seds prevent some annoying messages that may otherwise appear while running openjade. --disable-static: This switch prevents the building of the static library. --enable-http: This switch adds support for HTTP. --enable-default-catalog=/etc/sgml/catalog: This switch sets the path to the centralized catalog. --enable-default-search-path: This switch sets the default value of SGML_SEARCH_PATH. : This switch adds support for XML Formatted Messages. : This switch prevents the configure script checking if you have xmlto installed. If you have xmlto, you can remove this option. make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;: This sets the pkgdatadir variable in the Makefile from /usr/share/OpenSP to /usr/share/sgml/OpenSP-&opensp-version;. ln -v -sf ...: These commands create the SP equivalents of OpenSP executables and libraries. Contents Installed Programs Installed Library Installed Directories onsgmls, osgmlnorm, ospam, ospcat, ospent, osx, and the SP equivalent symlinks: nsgmls, sgml2xml, sgmlnorm, spam, spcat, spent, and sx libosp.so and the SP equivalent symlink: libsp.so /usr/include/OpenSP, /usr/share/doc/OpenSP, and /usr/share/sgml/OpenSP-&opensp-version; Short Descriptions onsgmls is used to process SGML files. onsgmls osgmlnorm prints on the standard output a normalized document instance for the SGML document contained in the concatenation of the entities with system identifiers .nf and .fi. osgmlnorm ospam is a markup stream editor. ospam ospcat prints effective system identifiers found in the catalogs. ospcat ospent provides access to OpenSP's entity manager. ospent osx is an SGML normalizer or used to convert SGML files to XML files. osx nsgmls is a symlink to onsgmls. nsgmls sgml2xml is a symlink to osx. sgml2xml sgmlnorm is a symlink to osgmlnorm. sgmlnorm spam is a symlink to ospam. spam spcat is a symlink to ospcat. spcat spent is a symlink to ospent. spent sx is a symlink to osx. sx libosp.so contains functions required by the OpenSP programs to parse, validate and manipulate SGML and XML files. libosp.so libsp.so is a symlink to libosp.so. libsp.so