Xsltproc DocBook to HTML

Source: Internet
Author: User
Tags dbx xsl

/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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.