LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 761|回复: 14

docbookx412

[复制链接]
发表于 2003-2-28 16:17:56 | 显示全部楼层 |阅读模式
how to install docbookx412????
Thereisnt a file named Makefile!!!
Who can send me a copy ot it ???
My email:::    daft@sohu.com
发表于 2003-2-28 17:02:46 | 显示全部楼层
为什么要装docbookx412?4.2不行吗?
发表于 2003-2-28 18:24:08 | 显示全部楼层
你是用源代码安装吗?
 楼主| 发表于 2003-2-28 19:09:10 | 显示全部楼层
不是啊,一个ZIP文件。
哪有原码呢??
从国外下载:0。7K!!郁闷!!!
我也没找到。大哥可否给我发一个??
daft@sohu.com
发表于 2003-3-1 00:08:37 | 显示全部楼层
ftp://218.5.64.133//Upload/docbookx412/docbkx412.zip
另外,你说的makefile我没找到啊,是按照哪一个安装方法来装的?
 楼主| 发表于 2003-3-1 00:23:04 | 显示全部楼层
how to install it???
发表于 2003-3-1 00:34:09 | 显示全部楼层
有好几种装法,你是装到哪里了?
发表于 2003-3-1 00:42:26 | 显示全部楼层
这里是一种老一点的装法:

  1. docbook-xml-dtd (4.1.2, 4.2)

  2. * [url]http://freshmeat.net/projects/docbook/[/url]

  3. * [url]http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip[/url]
  4. * [url]http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip[/url]

  5.         V=${VERSION/.}
  6.         XML_DTD_DIR=/usr/share/xml/docbook/xml-dtd-${VERSION}
  7.         ROOTCATALOG=/etc/xml/catalog
  8.         CATALOG=/etc/xml/docbook
  9.         install -d ${XML_DTD_DIR}
  10.         cp -af docbook.cat *.dtd ent/ *.mod ${XML_DTD_DIR}
  11.         if [ ! -e ${ROOTCATALOG} ]; then xmlcatalog --noout --create ${ROOTCATALOG}; fi
  12.         if [ ! -e ${CATALOG} ]; then xmlcatalog --noout --create ${CATALOG}; fi
  13.         xmlcatalog --noout --add "public" "-//OASIS//ELEMENTS DocBook XML Information Pool V${VERSION}//EN" "file://${XML_DTD_DIR}/dbpoolx.mod" $CATALOG
  14.         xmlcatalog --noout --add "public" "-//OASIS//DTD DocBook XML V${VERSION}//EN" "file://${XML_DTD_DIR}/docbookx.dtd" $CATALOG
  15.         xmlcatalog --noout --add "public" "-//OASIS//ENTITIES DocBook XML Character Entities V${VERSION}//EN" "file://${XML_DTD_DIR}/dbcentx.mod" $CATALOG
  16.         xmlcatalog --noout --add "public" "-//OASIS//ENTITIES DocBook XML Notations V${VERSION}//EN" "file://${XML_DTD_DIR}/dbnotnx.mod" $CATALOG
  17.         xmlcatalog --noout --add "public" "-//OASIS//ENTITIES DocBook XML Additional General Entities V${VERSION}//EN" "file://${XML_DTD_DIR}/dbgenent.mod" $CATALOG
  18.         xmlcatalog --noout --add "public" "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V${VERSION}//EN" "file://${XML_DTD_DIR}/dbhierx.mod" $CATALOG
  19.         xmlcatalog --noout --add "public" "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "file://${XML_DTD_DIR}/soextblx.dtd" $CATALOG
  20.         xmlcatalog --noout --add "public" "-//OASIS//DTD DocBook XML CALS Table Model V${VERSION}//EN" "file://${XML_DTD_DIR}/calstblx.dtd" $CATALOG
  21.         xmlcatalog --noout --add "rewriteSystem" "http://www.oasis-open.org/docbook/xml/${VERSION}" "file://${XML_DTD_DIR}" $CATALOG
  22.         xmlcatalog --noout --add "rewriteURI" "http://www.oasis-open.org/docbook/xml/${VERSION}" "file://${XML_DTD_DIR}" $CATALOG
  23.         xmlcatalog --noout --add "delegatePublic" "-//OASIS//ENTITIES DocBook XML" "file://$CATALOG" $ROOTCATALOG
  24.         xmlcatalog --noout --add "delegatePublic" "-//OASIS//DTD DocBook XML" "file://$CATALOG" $ROOTCATALOG
  25.         xmlcatalog --noout --add "delegateSystem" "http://www.oasis-open.org/docbook/" "file://$CATALOG" $ROOTCATALOG
  26.         xmlcatalog --noout --add "delegateURI" "http://www.oasis-open.org/docbook/" "file://$CATALOG" $ROOTCATALOG
  27.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Publishing//EN" "file://${XML_DTD_DIR}/ent/iso-pub.ent" $CATALOG
  28.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Greek Letters//EN" "file://${XML_DTD_DIR}/ent/iso-grk1.ent" $CATALOG
  29.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "file://${XML_DTD_DIR}/ent/iso-box.ent" $CATALOG
  30.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Greek Symbols//EN" "file://${XML_DTD_DIR}/ent/iso-grk3.ent" $CATALOG
  31.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "file://${XML_DTD_DIR}/ent/iso-amsn.ent" $CATALOG
  32.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "file://${XML_DTD_DIR}/ent/iso-num.ent" $CATALOG
  33.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "file://${XML_DTD_DIR}/ent/iso-grk4.ent" $CATALOG
  34.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "file://${XML_DTD_DIR}/ent/iso-dia.ent" $CATALOG
  35.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "file://${XML_DTD_DIR}/ent/iso-grk2.ent" $CATALOG
  36.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "file://${XML_DTD_DIR}/ent/iso-amsa.ent" $CATALOG
  37.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "file://${XML_DTD_DIR}/ent/iso-amso.ent" $CATALOG
  38.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "file://${XML_DTD_DIR}/ent/iso-cyr1.ent" $CATALOG
  39.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES General Technical//EN" "file://${XML_DTD_DIR}/ent/iso-tech.ent" $CATALOG
  40.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "file://${XML_DTD_DIR}/ent/iso-amsc.ent" $CATALOG
  41.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Latin 1//EN" "file://${XML_DTD_DIR}/ent/iso-lat1.ent" $CATALOG
  42.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "file://${XML_DTD_DIR}/ent/iso-amsb.ent" $CATALOG
  43.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Latin 2//EN" "file://${XML_DTD_DIR}/ent/iso-lat2.ent" $CATALOG
  44.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "file://${XML_DTD_DIR}/ent/iso-amsr.ent" $CATALOG
  45.         xmlcatalog --noout --add "public" "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "file://${XML_DTD_DIR}/ent/iso-cyr2.ent" $CATALOG
  46.         xmlcatalog --noout --add "delegatePublic" "ISO 8879:1986" "file://$CATALOG" $ROOTCATALOG



复制代码
发表于 2003-3-1 00:45:38 | 显示全部楼层
这里是翻译LFS和BLFS文档时,为了转换xml->html而装的docbkx412:

  1. Create the /usr/share/docbook directory, cd into it and unpack the
  2. docbook-xml dtd archive there. Move all the files and directories from
  3. the newly created subdirectory to the current directory
  4. (/usr/share/docbook). We don't really need a
  5. /usr/share/docbook/docbook-<version> subdir for our purposes.

复制代码
发表于 2003-3-1 00:48:03 | 显示全部楼层
上面的那种,比较麻烦,不过装起来比较保险,现在的BLFS cvs里,也是按照上面那样装的。下面的那种,是专门为了转换LFS 和 BLFS的xml文件而装的,针对性强。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表