Working with XML and DocBook

Like its ancestor SGML and cousin HTML, XML is a markup language. It is designed for use in a plain-text document. Tags surround specific sections of the text to denote how that section is to be displayed. Listing 5.1 contains a short example.

LISTING 5.1 Sample XML Excerpt

<?xml version="1.0"?><xml-stylesheet type="text/css" href="book.css"?><book><title>Ubuntu Unleashed 2013</title><edition>8</edition><chapter>       <number>1</number>       <title>Installing Ubuntu</title>       <text>               <paragraph><dropcap>N</dropcap>ot that long ago,the mere mention...               </paragraph>       ...       </text></chapter>...</book>

This could easily be written using a simple ...

Get Ubuntu Unleashed 2015 Edition: Covering 14.10 and 15.04, Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.