Prev | Current Page 1079 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

html file, and an x8.html
file. (You will also see a lot of scary-looking error messages when you run the db2html
program. For now, you can ignore them. Ideally, the cardoc.xml document should have
a reference to the DocBook DTD.)
To view the HTML file just created, I typed the following:
$ epiphany $HOME/doctest/cardoc/t1.html
Figure 21-11 shows an example of the output created from the db2html command. The screen on
the left shows the first page. Click the Next link at the top of the page. The second page that you
see is shown on the right. During conversion to HTML, the db2html command adds Next/Previous
buttons to each page. It also puts the title of each section in a Table of Contents on the first page
and in the browser??™s title bar.
From this point, you can continue to add content and different types of tags. If you are writing
documents for a particular project (such as the Linux projects mentioned earlier), you should get
information on the particular tags and other style issues they require.
Converting DocBook Documents
The previous example shows how to create a simple DocBook document and convert it to HTML
output. The following utilities convert DocBook to other formats:
 docbook2dvi??”Device-independent file format
 docbook2html??”HTML format
577
Working with Words and Images 21
 docbook2man??”Man page format
 docbook2pdf??”Portable Document Format (PDF)
 docbook2ps??”PostScript format
 docbook2rtf??”Rich Text Format (RTF)
 docbook2??”TeX Text format
 docbook2texi??”GNU TeXinfo format
 docbook2txt??”Bare text format
FIGURE 21-11
The DocBook file is output in HTML with the db2html command.


Pages:
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091