Introduction à DocBook XML Schemas 5.1
Le paquet DocBook XML Schemas-5.1
contient des schémas et les règles Schematron pour la vérification
de données de fichiers XML vis-à-vis de la réglementation DocBook.
Ils sont utiles pour structurer des livres et des documentations de
logiciels selon un standard vous permettant d'utiliser des
transformations déjà écrites pour ce standard.
Note
Development versions of BLFS may not build or run some packages
properly if dependencies have been updated since the most recent
stable versions of the book.
Informations sur le paquet
-
Téléchargement (HTTP) : https://docbook.org/xml/5.1/docbook-v5.1-os.zip
-
Téléchargement (FTP) :
-
Somme de contrôle MD5 : d8bea8ddfc5743578a31cb18f9ae1f5a
-
Taille du téléchargement : 752 Ko
-
Estimation de l'espace disque requis : 8.5 Mo
-
Estimation du temps de construction : moins de
0.1 SBU
Dépendances de DocBook XML Schemas 5.1
Requises
libxml2-2.9.14, sgml-common-0.6.3
et UnZip-6.0
Notes utilisateur : https://wiki.linuxfromscratch.org/blfs/wiki/docbook51-xml
Installation de DocBook XML Schemas 5.1
Note
Les sources du paquet sont distribuées au format zip
et exigent unzip. Vous devriez créer un
répertoire et vous y rendre avant de dézipper le fichier pour
faciliter la suppression des fichiers sources après
l'installation du paquet.
Installez DocBook XML Schemas en
lançant les commandes suivantes en tant qu'utilisateur root
:
install -vdm755 /usr/share/xml/docbook/schema/{rng,sch}/5.1 &&
install -m644 schemas/rng/* /usr/share/xml/docbook/schema/rng/5.1 &&
install -m644 schemas/sch/* /usr/share/xml/docbook/schema/sch/5.1 &&
install -m755 tools/db4-entities.pl /usr/bin &&
install -vdm755 /usr/share/xml/docbook/stylesheet/docbook5 &&
install -m644 tools/db4-upgrade.xsl \
/usr/share/xml/docbook/stylesheet/docbook5
Créez (ou mettez à jour) et remplissez le fichier catalogue
/etc/xml/docbook-5.1
en exécutant les
commandes suivantes en tant qu'utilisateur root
:
if [ ! -e /etc/xml/docbook-5.1 ]; then
xmlcatalog --noout --create /etc/xml/docbook-5.1
fi &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rng" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/rng/docbook.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rng" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rng" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/rng/docbookxi.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rng" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/rnc/docbook.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rnc" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/rng/docbook.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rnc" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/rnc/docbookxi.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/rng/docbookxi.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/sch/docbook.sch" \
"file:///usr/share/xml/docbook/schema/sch/5.1/docbook.sch" \
/etc/xml/docbook-5.1 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/sch/docbook.sch" \
"file:///usr/share/xml/docbook/schema/sch/5.1/docbook.sch" \
/etc/xml/docbook-5.1
Toujours en tant qu'utilisateur root
, créez les catalogues individuels :
xmlcatalog --noout --create /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/schemas/rng/docbook.schemas/rng" \
"docbook.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbook.schemas/rng" \
"docbook.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/schemas/rng/docbookxi.schemas/rng" \
"docbookxi.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbookxi.schemas/rng" \
"docbookxi.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/schemas/rng/docbook.rnc" \
"docbook.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbook.rnc" \
"docbook.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/schemas/rng/docbookxi.rnc" \
"docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbookxi.rnc" \
"docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml
xmlcatalog --noout --create /usr/share/xml/docbook/schema/sch/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.1/schemas/sch/docbook.schemas/sch" \
"docbook.schemas/sch" /usr/share/xml/docbook/schema/sch/5.1/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.1/schemas/sch/docbook.schemas/sch" \
"docbook.schemas/sch" /usr/share/xml/docbook/schema/sch/5.1/catalog.xml
Créez (ou mettez à jour) et remplissez le catalogue XML du système
(/etc/xml/catalog
) en exécutant les
commandes suivantes en tant qu'utilisateur root
:
if [ ! -e /etc/xml/catalog ]; then
xmlcatalog --noout --create /etc/xml/catalog
fi &&
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML 5.1//EN" \
"file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/5.1/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/rng/" \
"file:///usr/share/xml/docbook/schema/rng/5.1/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/sch/" \
"file:///usr/share/xml/docbook/schema/sch/5.1/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.1/xsd/" \
"file:///usr/share/xml/docbook/schema/xsd/5.1/catalog.xml" \
/etc/xml/catalog