下载地址 (HTTP): http://telia.dl.sourceforge.net/sourceforge/docbook/docbook-xsl-1.60.1.tar.gz 下载地址 (FTP): 目前版本: 1.60.1 包大小: 1.2 MB 编译所需磁盘空间: 11.1 MB |
docbook-xsl 包含了 xsl stylesheets. openjade或其他工具用他来转换SGML和XML的DocBook文件.
docbook-xsl 依赖于: libxslt-1.0.29 |
使用下面的命令来安装docbook-xsl:
install -d /usr/share/xml/docbook/xsl-stylesheets-1.60.1 && cp -af VERSION common extensions fo html htmlhelp images javahelp lib \ manpages params profiling template tools xhtml \ /usr/share/xml/docbook/xsl-stylesheets-1.60.1 && install -d /usr/share/doc/xml && cp -af doc/* /usr/share/doc/xml && if [ ! -f /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 "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/1.45" \ "/usr/share/xml/docbook/xsl-stylesheets-1.60.1" /etc/xml/catalog && xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/1.45" \ "/usr/share/xml/docbook/xsl-stylesheets-1.60.1" /etc/xml/catalog && xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-1.60.1" /etc/xml/catalog && xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-1.60.1" /etc/xml/catalog && xmlcatalog --noout --add "delegateSystem" \ "http://docbook.sourceforge.net/release/xsl/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateURI" \ "http://docbook.sourceforge.net/release/xsl/" \ "file:///etc/xml/docbook" /etc/xml/catalog |
在安装的过程中已经生成了配置文件并更新了目录
如果你想要用BLFS book测试一下xml-dtd和docbook-xsl, 使用下面的命令. 用来把一个cvs版本从你的home directory checkout出来 然后输出到一个工作目录中, 所以请针对自己做一些修改.
xsltproc --nonet -o index.html \ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl \ ~/BLFS/BOOK/index.xml |