下载地址 (HTTP): http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip 下载地址 (FTP): 目前版本: 4.2 包大小: 84 KB 编译所需磁盘空间: 468 KB |
xml-dtd-4.2 定义了基于DocBook规则的xml文件. 提供了非常有用的结构说明和程序文档来支持您使用已经转换成该格式的文件.
DocBook 依赖于: libxml2-2.5.6和unzip-5.50 |
使用下面的命令安装DocBook:
install -d /usr/share/xml/docbook/xml-dtd-4.2 && cp -af docbook.cat *.dtd ent/ *.mod /usr/share/xml/docbook/xml-dtd-4.2 && if [ ! -e /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog --noout \ --create /etc/xml/catalog; fi && if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \ /etc/xml/docbook; fi && xmlcatalog --noout --add "public" \ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.2//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbpoolx.mod" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML V4.2//EN" \ "http://oasis-open.org/docbook/xml/4.2/docbookx.dtd" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//ENTITIES DocBook XML Character Entities V4.2//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbcentx.mod" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//ENTITIES DocBook XML Notations V4.2//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbnotnx.mod" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.2//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbgenent.mod" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.2//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/dbhierx.mod" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/soextblx.dtd" \ /etc/xml/docbook && xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML CALS Table Model V4.2//EN" \ "file:///usr/share/xml/docbook/xml-dtd-4.2/calstblx.dtd" \ /etc/xml/docbook && xmlcatalog --noout --add "rewriteSystem" \ "http://www.oasis-open.org/docbook/xml/4.2" \ "file:///usr/share/xml/docbook/xml-dtd-4.2" \ /etc/xml/docbook && xmlcatalog --noout --add "rewriteURI" \ "http://www.oasis-open.org/docbook/xml/4.2" \ "file:///usr/share/xml/docbook/xml-dtd-4.2" \ /etc/xml/docbook && xmlcatalog --noout --add "delegatePublic" \ "-//OASIS//ENTITIES DocBook XML" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegatePublic" \ "-//OASIS//DTD DocBook XML" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateSystem" \ "http://www.oasis-open.org/docbook/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateURI" \ "http://www.oasis-open.org/docbook/" \ "file:///etc/xml/docbook" /etc/xml/catalog |
上面的安装脚本已经创建了文件并且更新了配置目录. 我们需要把本书也加到他的控制中(译者注:blfs book就是用dtd的xml生成的)
xmlcatalog --noout --add "delegateSystem" \ "/usr/share/docbook/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateURI" \ "/usr/share/docbook/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "rewriteSystem" \ "/usr/share/docbook" \ "file:///usr/share/xml/docbook/xml-dtd-4.2" \ /etc/xml/docbook && xmlcatalog --noout --add "rewriteURI" \ "/usr/share/docbook" \ "file:///usr/share/xml/docbook/xml-dtd-4.2" \ /etc/xml/docbook |
为了安装scrollkeeper 需要:
xmlcatalog --noout --add "public" \ "-//OASIS//DTD DocBook XML V4.1.2//EN" \ "http://oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \ /etc/xml/docbook && xmlcatalog --noout --add "delegateSystem" \ "http://oasis-open.org/docbook/xml/4.1.2/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateURI" \ "http://oasis-open.org/docbook/xml/4.1.2/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "rewriteSystem" \ "http://oasis-open.org/docbook" \ "file:///usr/share/xml/docbook/xml-dtd-4.2" \ /etc/xml/docbook && xmlcatalog --noout --add "rewriteURI" \ "http://oasis-open.org/docbook" \ "file:///usr/share/xml/docbook/xml-dtd-4.2" \ /etc/xml/docbook |