Difference between revisions of "DocBook SGML DTD-4.x"

From CBLFS
Jump to navigationJump to search
(I added the package description from BLFS.)
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://www.docbook.org/sgml/4.4/docbook-4.4.zip
+
| http://www.docbook.org/sgml/{{Docbook_SGML-Version}}/docbook-{{Docbook_SGML-Version}}.zip
 
|}
 
|}
  
 
----
 
----
  
== Introduction to SGML DTD-4.4 ==
+
{{Package-Introduction|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.}}
 
 
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.
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 28: Line 26:
 
Install the package
 
Install the package
  
  install -v -d /usr/share/sgml/docbook/sgml-dtd-4.4 &&
+
  install -v -d /usr/share/sgml/docbook/sgml-dtd-{{Docbook_SGML-Version}} &&
 
  chown -R root:root . &&
 
  chown -R root:root . &&
  install -v docbook.cat /usr/share/sgml/docbook/sgml-dtd-4.4/catalog &&
+
  install -v docbook.cat /usr/share/sgml/docbook/sgml-dtd-{{Docbook_SGML-Version}}/catalog &&
  cp -v -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-4.4 &&
+
  cp -v -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-{{Docbook_SGML-Version}} &&
  install-catalog --add /etc/sgml/sgml-docbook-dtd-4.4.cat \
+
  install-catalog --add /etc/sgml/sgml-docbook-dtd-{{Docbook_SGML-Version}}.cat \
     /usr/share/sgml/docbook/sgml-dtd-4.4/catalog &&
+
     /usr/share/sgml/docbook/sgml-dtd-{{Docbook_SGML-Version}}/catalog &&
  install-catalog --add /etc/sgml/sgml-docbook-dtd-4.4.cat \
+
  install-catalog --add /etc/sgml/sgml-docbook-dtd-{{Docbook_SGML-Version}}.cat \
 
     /etc/sgml/sgml-docbook.cat
 
     /etc/sgml/sgml-docbook.cat
  
 
Using only the most current 4.x version of DocBook SGML DTD requires the following (perform as the root user):
 
Using only the most current 4.x version of DocBook SGML DTD requires the following (perform as the root user):
  
  cat >> /usr/share/sgml/docbook/sgml-dtd-4.4/catalog << "EOF"
+
  cat >> /usr/share/sgml/docbook/sgml-dtd-{{Docbook_SGML-Version}}/catalog << "EOF"
 
   -- Begin Single Major Version catalog changes --
 
   -- Begin Single Major Version catalog changes --
 
   
 
   
 +
PUBLIC "-//OASIS//DTD DocBook V4.5//EN" "docbook.dtd"
 +
PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
 
  PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
 
  PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
 
  PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
 
  PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
Line 49: Line 49:
 
   -- End Single Major Version catalog changes --
 
   -- End Single Major Version catalog changes --
 
  EOF
 
  EOF
 +
 +
[[Category:DocBook SGML]]

Latest revision as of 16:00, 19 March 2009

Download Source: http://www.docbook.org/sgml/4.5/docbook-4.5.zip

Introduction to DocBook SGML DTD-4.x

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.

sed -i -e '/ISO 8879/d' \
    -e '/gml/d' docbook.cat

Install the package

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

Using only the most current 4.x version of DocBook SGML DTD requires the following (perform as the root user):

cat >> /usr/share/sgml/docbook/sgml-dtd-4.5/catalog << "EOF"
  -- Begin Single Major Version catalog changes --

PUBLIC "-//OASIS//DTD DocBook V4.5//EN" "docbook.dtd" 
PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"

  -- End Single Major Version catalog changes --
EOF