O'Reilly logo

Learning XML by Erik T. Ray

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.9. XML Application: DocBook

An XML application is a markup language derived from XML rules, not to be confused with XML software applications, called XML processors in this book. An XML application is often a standard in its own right, with a publicly available DTD. One such application is DocBook, a markup language for technical documentation.

DocBook is a large markup language consisting of several hundred elements. It was developed by a consortium of companies and organizations to handle a wide variety of technical documentation tasks. DocBook is flexible enough to encode everything from one-page manuals to multiple-volume sets of books. Today, DocBook enjoys a large base of users, including open source developers and publishers. Details about the DocBook standard can be found in Appendix B.

Example 2.4 is an instance of a DocBook document, in this case a product instruction manual. (Actually, it uses a DTD called "Barebones DocBook," a similar but much smaller version of DocBook described in Chapter 5.) Throughout this example are numbered markers corresponding to comments appearing at the end.

Example 2.4. A DocBook Document
<?xml version="1.0" encoding="utf-8"?>  
<!DOCTYPE book SYSTEM "/xmlstuff/dtds/barebonesdb.dtd"
[ <!ENTITY companyname "Cybertronix"> <!ENTITY productname ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required