DocBook XSL-NS Stylesheets: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
Kb0iic (talk | contribs)
Update download link
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
|-
|-
!Download Source:
!Download Source:
| http://sourceforge.net/projects/docbook/files/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/docbook-xsl-ns-{{DocBook XSL-NS Stylesheets-Version}}.tar.bz2/download
| http://sourceforge.net/projects/docbook/files/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/docbook-xsl-ns-{{DocBook XSL-NS Stylesheets-Version}}.tar.bz2
|}
|}


Line 15: Line 15:


== Non-Multilib or Multilib ==
== Non-Multilib or Multilib ==
=== Package Installation ===


Install DocBook XSL-NS Stylesheets by running the following commands:
Install DocBook XSL-NS Stylesheets by running the following commands:


  install -v -m755 -d /usr/share/xml/docbook/xsl-ns-stylesheets-{{DocBook XSL-NS Stylesheets-Version}} &&
  install -v -m755 -d /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}} &&
  cp -v -R VERSION common eclipse extensions fo highlighting html \
  cp -v -R VERSION common eclipse extensions fo highlighting html \
           htmlhelp images javahelp lib manpages params \
           htmlhelp images javahelp lib manpages params \
           profiling slides template website xhtml \
           profiling slides template website xhtml \
     /usr/share/xml/docbook/xsl-ns-stylesheets-{{DocBook XSL-NS Stylesheets-Version}}
     /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}


Create (or append) and populate the XML catalog file using the following commands:
=== Local Catalog ===


  if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
Create a local catalog for this package:
  if [ ! -f /etc/xml/catalog ]; then
 
    xmlcatalog --noout --create /etc/xml/catalog
  xmlcatalog --noout --create /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml &&
fi &&
  xmlcatalog --noout --add "rewriteURI" \
            "http://docbook.sourceforge.net/release/xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}" \
            "." \
            /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml &&
  xmlcatalog --noout --add "rewriteSystem" \
  xmlcatalog --noout --add "rewriteSystem" \
             "http://docbook.sourceforge.net/release/xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}" \
             "http://docbook.sourceforge.net/release/xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}" \
             "/usr/share/xml/docbook/xsl-ns-stylesheets-{{DocBook XSL-NS Stylesheets-Version}}" \
             "." \
    /etc/xml/catalog &&
            /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml &&
  xmlcatalog --noout --add "rewriteURI" \
  xmlcatalog --noout --add "rewriteURI" \
            "http://docbook.sourceforge.net/release/xsl-ns/current" \
            "." \
            /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml &&
xmlcatalog --noout --add "rewriteSystem" \
            "http://docbook.sourceforge.net/release/xsl-ns/current" \
            "." \
            /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml
=== Global Catalog ===
Create the global catalog if it doesn't exist:
install -dv -m755 /etc/xml
[ ! -f /etc/xml/catalog ] &&
    xmlcatalog --noout --create /etc/xml/catalog
Add entries into the global catalog for this package:
xmlcatalog --noout --add "delegateURI" \
             "http://docbook.sourceforge.net/release/xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}" \
             "http://docbook.sourceforge.net/release/xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}" \
             "/usr/share/xml/docbook/xsl-ns-stylesheets-{{DocBook XSL-NS Stylesheets-Version}}" \
             "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml" \
    /etc/xml/catalog &&
            /etc/xml/catalog
  xmlcatalog --noout --add "rewriteSystem" \
xmlcatalog --noout --add "delegateSystem" \
            "http://docbook.sourceforge.net/release/xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}" \
            "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml" \
            /etc/xml/catalog
 
If this package is going to be the default xsl-ns stylesheet set (recommended), also add the following entries:
 
  xmlcatalog --noout --add "delegateURI" \
             "http://docbook.sourceforge.net/release/xsl-ns/current" \
             "http://docbook.sourceforge.net/release/xsl-ns/current" \
             "/usr/share/xml/docbook/xsl-ns-stylesheets-{{DocBook XSL-NS Stylesheets-Version}}" \
             "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml" \
    /etc/xml/catalog &&
            /etc/xml/catalog &&
  xmlcatalog --noout --add "rewriteURI" \
  xmlcatalog --noout --add "delegateSystem" \
             "http://docbook.sourceforge.net/release/xsl-ns/current" \
             "http://docbook.sourceforge.net/release/xsl-ns/current" \
             "/usr/share/xml/docbook/xsl-ns-stylesheets-{{DocBook XSL-NS Stylesheets-Version}}" \
             "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/{{DocBook XSL-NS Stylesheets-Version}}/catalog.xml" \
    /etc/xml/catalog
            /etc/xml/catalog


[[Category:DocBook XML]]
[[Category:DocBook-XML]]

Latest revision as of 18:59, 9 September 2012

Download Source: http://sourceforge.net/projects/docbook/files/docbook-xsl-ns/1.75.2/docbook-xsl-ns-1.75.2.tar.bz2

Introduction to DocBook XSL-NS Stylesheets

The DocBook XSL-NS Stylesheets package contains XSL-NS (namespaced) stylesheets. These are useful for performing transformations on namespaced XML DocBook files.

Project Homepage: Unknown

Dependencies

Required

Non-Multilib or Multilib

Package Installation

Install DocBook XSL-NS Stylesheets by running the following commands:

install -v -m755 -d /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2 &&
cp -v -R VERSION common eclipse extensions fo highlighting html \
         htmlhelp images javahelp lib manpages params \
         profiling slides template website xhtml \
    /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2

Local Catalog

Create a local catalog for this package:

xmlcatalog --noout --create /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml &&
xmlcatalog --noout --add "rewriteURI" \
           "http://docbook.sourceforge.net/release/xsl-ns/1.75.2" \
           "." \
           /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml &&
xmlcatalog --noout --add "rewriteSystem" \
           "http://docbook.sourceforge.net/release/xsl-ns/1.75.2" \
           "." \
           /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml &&
xmlcatalog --noout --add "rewriteURI" \
           "http://docbook.sourceforge.net/release/xsl-ns/current" \
           "." \
           /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml &&
xmlcatalog --noout --add "rewriteSystem" \
           "http://docbook.sourceforge.net/release/xsl-ns/current" \
           "." \
           /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml

Global Catalog

Create the global catalog if it doesn't exist:

install -dv -m755 /etc/xml
[ ! -f /etc/xml/catalog ] &&
    xmlcatalog --noout --create /etc/xml/catalog

Add entries into the global catalog for this package:

xmlcatalog --noout --add "delegateURI" \
           "http://docbook.sourceforge.net/release/xsl-ns/1.75.2" \
           "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml" \
           /etc/xml/catalog
xmlcatalog --noout --add "delegateSystem" \
           "http://docbook.sourceforge.net/release/xsl-ns/1.75.2" \
           "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml" \
           /etc/xml/catalog

If this package is going to be the default xsl-ns stylesheet set (recommended), also add the following entries:

xmlcatalog --noout --add "delegateURI" \
           "http://docbook.sourceforge.net/release/xsl-ns/current" \
           "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml" \
           /etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
           "http://docbook.sourceforge.net/release/xsl-ns/current" \
           "file:///usr/share/xml/docbook/stylesheet/docbook-xsl-ns/1.75.2/catalog.xml" \
           /etc/xml/catalog