/etc/xml/catalog
<?xml version="1.0"encoding="UTF-8"? ><catalog xmlns="Urn:oasis:names:tc:entity:xmlns:xml:catalog"Prefer=" Public"Xml:base="file:///etc/xml/docbook-xsl-1.78.1"><!--............................................................--><!--XML Catalog forDocBook ....--><!--File Catalog.xml-----------------..... ....--><!--Please direct all questions, bug reports, or suggestions, ....... ...../-----* * * * * * * * * * * * forchanges to the [email protected]-open.org Mailing list. for MoreInformation, see http://www.oasis-open.org/.--><!--This is a catalog datafile forDocBook. It is provided as AconvenienceinchBuilding your own catalog files. You need notuse the filenames listed here, and need isn't use the filenamemethod of identifying storage objects at all. See Thedocumentation fordetailed information on the files associatedwith the DocBook DTD. See XML catalogs Athttp://Www.oasis-open.org/committees/entity/for Detailedinformation on supplying and using catalog data.--><public publicid="-//oasis//dtd DocBook XML 5.0//en"Uri="DTD/DOCBOOK.DTD"/><system systemid="HTTP://WWW.OASIS-OPEN.ORG/DOCBOOK/XML/5.0/DTD/DOCBOOK.DTD"Uri="DTD/DOCBOOK.DTD"/><system systemid="HTTP://DOCBOOK.ORG/XML/5.0/DTD/DOCBOOK.DTD"Uri="DTD/DOCBOOK.DTD"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng"Uri="rng/docbook.rng"/><uri name="http://docbook.org/xml/5.0/rng/docbook.rng"Uri="rng/docbook.rng"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng"Uri="rng/docbookxi.rng"/><uri name="http://docbook.org/xml/5.0/rng/docbookxi.rng"Uri="rng/docbookxi.rng"/><uri name="HTTP://WWW.OASIS-OPEN.ORG/DOCBOOK/XML/5.0/RNG/DOCBOOK.RNC"Uri="RNG/DOCBOOK.RNC"/><uri name="HTTP://DOCBOOK.ORG/XML/5.0/RNG/DOCBOOK.RNC"Uri="RNG/DOCBOOK.RNC"/><uri name="HTTP://WWW.OASIS-OPEN.ORG/DOCBOOK/XML/5.0/RNG/DOCBOOKXI.RNC"Uri="RNG/DOCBOOKXI.RNC"/><uri name="HTTP://DOCBOOK.ORG/XML/5.0/RNG/DOCBOOKXI.RNC"Uri="RNG/DOCBOOKXI.RNC"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd"Uri="xsd/docbook.xsd"/><uri name="http://docbook.org/xml/5.0/xsd/docbook.xsd"Uri="xsd/docbook.xsd"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd"Uri="xsd/docbookxi.xsd"/><uri name="http://docbook.org/xml/5.0/xsd/docbookxi.xsd"Uri="xsd/docbookxi.xsd"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/xi.xsd"Uri="xsd/xi.xsd"/><uri name="http://docbook.org/xml/5.0/xsd/xi.xsd"Uri="xsd/xi.xsd"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd"Uri="xsd/xlink.xsd"/><uri name="http://docbook.org/xml/5.0/xsd/xlink.xsd"Uri="xsd/xlink.xsd"/><uri name="http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd"Uri="xsd/xml.xsd"/><uri name="http://docbook.org/xml/5.0/xsd/xml.xsd"Uri="xsd/xml.xsd"/><uri name="Http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch"Uri="Sch/docbook.sch"/><uri name="Http://docbook.org/xml/5.0/sch/docbook.sch"Uri="Sch/docbook.sch"/><uri name="HTTP://WWW.OASIS-OPEN.ORG/DOCBOOK/XML/5.0/DOCBOOK.NVDL"Uri="DOCBOOK.NVDL"/><uri name="HTTP://DOCBOOK.ORG/XML/5.0/DOCBOOK.NVDL"Uri="DOCBOOK.NVDL"/><uri name="docbook.xsl"Uri="docbook-xsl-1.78.1/html/docbook.xsl"/><!--End of XML Catalog forDocBook: ...--><!--............................................................-......------------ -></catalog>
Download docbook-xsl-1.78.1.tar.bz2 extract to/etc/xml
parsebook.sh
#!/bin/bashexport sgml_catalog_files= "/etc/xml/catalog"export xml_catalog_files= "/etc/xml/catalog " Xsltproc--xinclude--catalogs/etc/xml/docbook-xsl-1.78.1/html/docbook.xsl index.dbx > Cobarclient.html
Go to the directory where DBX is located, execute
[Email protected]:~/work/projects/cobarclient/src/docs/docbook/zh$./parsebook. SH
Generate HTML Book complete
Xsltproc DocBook to HTML