下载地址 (HTTP): http://telia.dl.sourceforge.net/sourceforge/docbook/docbook-dsssl-1.78.tar.gz 下载地址 (FTP): 目前版本: 1.78 包大小: 384 KB 编译所需磁盘空间: 4 MB |
docbook-dsssl 包含了 dsssl stylesheets. openjade或其他工具用他来转换SGML和XML的DocBook文件.
使用下面的命令来安装docbook-dsssl:
mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/dtds/decls && mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/lib && mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/common && mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/html && mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/print && mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/test && mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-1.78/images && install bin/collateindex.pl /usr/bin && cp catalog VERSION /usr/share/sgml/docbook/dsssl-stylesheets-1.78 && cp dtds/decls/*.dcl \ /usr/share/sgml/docbook/dsssl-stylesheets-1.78/dtds/decls && cp lib/dblib.dsl /usr/share/sgml/docbook/dsssl-stylesheets-1.78/lib && cp common/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-1.78/common && cp common/*.ent /usr/share/sgml/docbook/dsssl-stylesheets-1.78/common && cp html/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-1.78/html && cp lib/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-1.78/lib && cp print/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-1.78/print && cp images/*.gif /usr/share/sgml/docbook/dsssl-stylesheets-1.78/images && install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \ /usr/share/sgml/docbook/dsssl-stylesheets-1.78/catalog && install-catalog --add /etc/sgml/sgml-docbook.cat \ /etc/sgml/dsssl-docbook-stylesheets.cat |
在配置的过程中会让openjade将BLFS Book从XML转化成HTML:
ln -sf {your home directory}/BLFS/BOOK/blfs.dsl \ /usr/share/sgml/docbook/dsssl-stylesheets-1.78/html/ |
如果你想要用BLFS book测试一下 xml-dtd, dsssl-stylesheets 和 openjade , 使用下面的命令. 用来把一个cvs版本从你的home directory checkout出来 然后输出到一个工作目录中, 所以请针对自己做一些修改。
mkdir introduction postlfs general connect basicnet server \ content x kde gnome xsoft multimedia pst preface appendices other && openjade -t sgml \ -d /usr/share/sgml/docbook/dsssl-stylesheets-1.78/html/blfs.dsl \ /usr/share/sgml/docbook/dsssl-stylesheets-1.78/dtds/decls/xml.dcl \ ~/BLFS/BOOK/index.xml |