# # Populate /etc/xml/catalog: # if [ ! -e $XML_CATALOG ]; then xmlcatalog --noout --create $XML_CATALOG fi && xmlcatalog --noout --add "delegatePublic" \ "-//OASIS//ENTITIES DocBook XML" \ "file:///etc/xml/docbook" \ $XML_CATALOG && xmlcatalog --noout --add "delegatePublic" \ "-//OASIS//DTD DocBook XML" \ "file:///etc/xml/docbook" \ $XML_CATALOG && xmlcatalog --noout --add "delegateSystem" \ "http://www.oasis-open.org/docbook/" \ "file:///etc/xml/docbook" \ $XML_CATALOG && xmlcatalog --noout --add "delegateURI" \ "http://www.oasis-open.org/docbook/" \ "file:///etc/xml/docbook" \ $XML_CATALOG || exit 1 # Rewrites for older docbooks. This allows older docbooks to be referenced. # It means, however, that you __*shouldn't* have these older docbooks__ # installed on your system; # so if you just keep the Slackware linuxdoc-tools package you'll be fine: # for DTDVERSION in 4.1.2 4.2 4.3 4.4 do xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \ $XML_DOCBOOKCATALOG || exit 1 xmlcatalog --noout --add "rewriteSystem" \ "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ "file:///usr/share/xml/docbook/xml-dtd-$XMLDTDVER" \ $XML_DOCBOOKCATALOG || exit 1 xmlcatalog --noout --add "rewriteURI" \ "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ "file:///usr/share/xml/docbook/xml-dtd-$XMLDTDVER" \ $XML_DOCBOOKCATALOG || exit 1 xmlcatalog --noout --add "delegateSystem" \ "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ "file:///etc/xml/docbook" \ $XML_CATALOG || exit 1 xmlcatalog --noout --add "delegateURI" \ "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ "file:///etc/xml/docbook" \ $XML_CATALOG || exit 1 done ========================================= # Configure system: xmlcatalog --noout --add "rewriteSystem" \ "http://cdn.docbook.org/release/xsl-nons/$XSLSTYLESHEETSVER" \ "file://usr/share/xml/docbook/xsl-stylesheets-$XSLSTYLESHEETSVER" \ $XML_CATALOG || exit 1 xmlcatalog --noout --add "rewriteURI" \ "http://cdn.docbook.org/release/xsl-nons/$XSLSTYLESHEETSVER" \ "file://usr/share/xml/docbook/xsl-stylesheets-$XSLSTYLESHEETSVER" \ $XML_CATALOG || exit 1 xmlcatalog --noout --add "rewriteSystem" \ "http://cdn.docbook.org/release/xsl-nons/current" \ "file://usr/share/xml/docbook/xsl-stylesheets-$XSLSTYLESHEETSVER" \ $XML_CATALOG || exit 1 xmlcatalog --noout --add "rewriteURI" \ "http://cdn.docbook.org/release/xsl-nons/current/" \ "file://usr/share/xml/docbook/xsl-stylesheets-$XSLSTYLESHEETSVER" \ $XML_CATALOG || exit 1 ## Note: ## These are the sourceforge URIs, for the previous package before ## it was renamed to "-nons". We'll keep these around for a while, but ## check that they still exist when next updating this package. xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-$XSLSTYLESHEETSVER" \ $XML_CATALOG || exit 1 xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-$XSLSTYLESHEETSVER" \ $XML_CATALOG || exit 1