Introduksjon til DocBook XML DTD og skjemaer 5.0
DocBook XML DTD og skjemaer-5.0
pakken inneholder dokumenttypedefinisjoner og skjemaer for
verifisering av XML datafiler mot DocBook regelsettet. Disse er
nyttige for strukturering av bøker og programvaredokumentasjon til
en standard som lar deg bruke transformasjoner som allerede er
skrevet for den standarden. I tillegg til å tilby en DTD
introduserte versjon 5 RelaxNG skjemaet og Schematron regler, og er
inkompatibel med tidligere versjoner av DocBook XML.
Denne pakken er kjent for å bygge og fungere riktig ved å bruke en
LFS 12.2 plattform.
Pakkeinformasjon
DocBook XML DTD og skjemaer 5.0 Avhengigheter
Påkrevd
libxml2-2.13.3 og UnZip-6.0
Installasjon av DocBook XML DTD og skjemaer 5.0
Installer DocBook XML DTD og
skjemaer ved å kjøre følgende kommandoer som root
bruker:
install -vdm755 /usr/share/xml/docbook/schema/{dtd,rng,sch,xsd}/5.0 &&
install -vm644 dtd/* /usr/share/xml/docbook/schema/dtd/5.0 &&
install -vm644 rng/* /usr/share/xml/docbook/schema/rng/5.0 &&
install -vm644 sch/* /usr/share/xml/docbook/schema/sch/5.0 &&
install -vm644 xsd/* /usr/share/xml/docbook/schema/xsd/5.0
Opprett (eller oppdater) og fyll ut /etc/xml/docbook-5.0
katalogfilen ved å kjøre
følgende kommandoer som root
bruker:
if [ ! -e /etc/xml/docbook-5.0 ]; then
xmlcatalog --noout --create /etc/xml/docbook-5.0
fi &&
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML 5.0//EN" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "system" \
"http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "system" \
"http://docbook.org/xml/5.0/dtd/docbook.dtd" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/docbook.dtd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rng" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbook.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rng" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbookxi.rng" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rng" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rnc/docbook.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rnc" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbook.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbook.rnc" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rnc/docbookxi.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rnc" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbookxi.rnc" \
"file:///usr/share/xml/docbook/schema/rng/5.0/docbookxi.rnc" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/docbook.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/docbookxi.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/docbookxi.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/docbookxi.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/xi.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/xi.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/xi.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/xi.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/xlink.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/xlink.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/xlink.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/xml.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/xml.xsd" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/xml.xsd" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" \
"file:///usr/share/xml/docbook/schema/sch/5.0/docbook.sch" \
/etc/xml/docbook-5.0 &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/sch/docbook.sch" \
"file:///usr/share/xml/docbook/schema/sch/5.0/docbook.sch" \
/etc/xml/docbook-5.0
Mens igjen som root
bruker, lag de
individuelle katalogene:
xmlcatalog --noout --create /usr/share/xml/docbook/schema/dtd/5.0/catalog.xml &&
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML 5.0//EN" \
"docbook.dtd" /usr/share/xml/docbook/schema/dtd/5.0/catalog.xml &&
xmlcatalog --noout --add "system" \
"http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" \
"docbook.dtd" /usr/share/xml/docbook/schema/dtd/5.0/catalog.xml &&
xmlcatalog --noout --create /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbook.rng" \
"docbook.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" \
"docbook.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbookxi.rng" \
"docbookxi.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" \
"docbookxi.rng" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbook.rnc" \
"docbook.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rnc" \
"docbook.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/rng/docbookxi.rnc" \
"docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc" \
"docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.0/catalog.xml &&
xmlcatalog --noout --create /usr/share/xml/docbook/schema/sch/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/sch/docbook.sch" \
"docbook.sch" /usr/share/xml/docbook/schema/sch/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" \
"docbook.sch" /usr/share/xml/docbook/schema/sch/5.0/catalog.xml &&
xmlcatalog --noout --create /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/docbook.xsd" \
"docbook.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" \
"docbook.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/docbookxi.xsd" \
"docbookxi.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" \
"docbookxi.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/xlink.xsd" \
"xlink.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" \
"xlink.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://docbook.org/xml/5.0/xsd/xml.xsd" \
"xml.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
"http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" \
"xml.xsd" /usr/share/xml/docbook/schema/xsd/5.0/catalog.xml
Opprett (eller oppdater) og fyll ut systemets XML katalog
(/etc/xml/catalog
) ved å kjøre
følgende kommandoer som root
bruker:
if [ ! -e /etc/xml/catalog ]; then
xmlcatalog --noout --create /etc/xml/catalog
fi &&
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML 5.0//EN" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
"http://docbook.org/xml/5.0/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/dtd/" \
"file:///usr/share/xml/docbook/schema/dtd/5.0/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/rng/" \
"file:///usr/share/xml/docbook/schema/rng/5.0/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/sch/" \
"file:///usr/share/xml/docbook/schema/sch/5.0/catalog.xml" \
/etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://docbook.org/xml/5.0/xsd/" \
"file:///usr/share/xml/docbook/schema/xsd/5.0/catalog.xml" \
/etc/xml/catalog