Difference between revisions of "DocBook SGML DTD-3.1"

From CBLFS
Jump to navigationJump to search
 
(One intermediate revision by one other user not shown)
Line 22: Line 22:
 
'''''The package source is distributed in zip format and requires unzip. You should create a directory and change to that directory before unzipping the file to ease the removal of the source files after the package has been installed.'''''
 
'''''The package source is distributed in zip format and requires unzip. You should create a directory and change to that directory before unzipping the file to ease the removal of the source files after the package has been installed.'''''
  
Remove the ENT definitions from the catalog file and replace the DTDDECL catalog entry, which is not support by Linux SGML tools, with the SGMLDECL catalog entry.
+
Remove the ENT definitions from the catalog file and replace the DTDDECL catalog entry, which is not supported by Linux SGML tools, with the SGMLDECL catalog entry.
  
 
  sed -i -e '/ISO 8879/d' \
 
  sed -i -e '/ISO 8879/d' \
Line 38: Line 38:
 
  install-catalog --add /etc/sgml/sgml-docbook-dtd-3.1.cat \
 
  install-catalog --add /etc/sgml/sgml-docbook-dtd-3.1.cat \
 
     /etc/sgml/sgml-docbook.cat
 
     /etc/sgml/sgml-docbook.cat
 +
 +
[[Category:DocBook SGML]]

Latest revision as of 16:00, 19 March 2009

Download Source: http://www.docbook.org/sgml/3.1/docbk31.zip
Download Source: ftp://ftp.kde.org/pub/kde/devel/docbook/SOURCES/docbk31.zip

Introduction to DocBook SGML DTD-3.1

The DocBook SGML DTD package contains document type definitions for verification of SGML data files against the DocBook rule set. These are useful for structuring books and software documentation to a standard allowing you to utilize transformations already written for that standard.

Project Homepage: Unknown

Dependencies

Required

Non-Multilib or Multilib

The package source is distributed in zip format and requires unzip. You should create a directory and change to that directory before unzipping the file to ease the removal of the source files after the package has been installed.

Remove the ENT definitions from the catalog file and replace the DTDDECL catalog entry, which is not supported by Linux SGML tools, with the SGMLDECL catalog entry.

sed -i -e '/ISO 8879/d' \
    -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
    docbook.cat

Install the package

install -v -d -m755 /usr/share/sgml/docbook/sgml-dtd-3.1 &&
chown -R root:root . &&
install -v docbook.cat /usr/share/sgml/docbook/sgml-dtd-3.1/catalog &&
cp -v -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-3.1 &&
install-catalog --add /etc/sgml/sgml-docbook-dtd-3.1.cat \
    /usr/share/sgml/docbook/sgml-dtd-3.1/catalog &&
install-catalog --add /etc/sgml/sgml-docbook-dtd-3.1.cat \
    /etc/sgml/sgml-docbook.cat