1.1. Overview
DocBook is a standard for creating well-formated plain text documents. It allows the creation of documentation that is portable between different operating systems and text processing tools. DocBook documents can easily be transformed into other output formats via XSLT . XSLT stands for Extensible Stylesheet Language Transformation. DocBook is plain text and can therefore be writen in a text editor which supports plain text as output format and put under version control.
Stylesheets for converting DocBook to common output are available, e.g. to convert into HTML, pdf, java help or Unix man pages.
DocBook has two main document class, book and article.
-
Article: Used for writing technical articles. The main tag is article. Article is used in the following example.
-
Book: Used for longer description. The main tags is book. In addition to sections which are used in an article another structuring element exists, the chapter.
Tip
The above defines that the DTD is stored in a directory one levels above the document directory.To create DocBook files and to convert them into other formats you have to use :
-
The DocBook DTD which defines how a DocBook must be written.
-
XSLT stylesheets to convert your DocBook into another format.
-
A XSLT parser
We will use Eclipse as an XML editor, Xalan as the XSLT parser and Apache Ant for the XSLT transformation.
0 comments:
Post a Comment