Web hosting services - sections can later be treated separately in the

sections can later be treated separately in the table of contents and appear on separate pages (as seen later). 4. Save the file and exit from the text editor. 5. Next, you can try translating the document you just created into several different formats. For example, to create HTML output you could type the following: $ db2html cardoc.sgml The result is a new directory called cardoc. When I ran that command, the result was the following in the cardoc directory: a stylesheet-images directory, a t2.html file, and an x12.html file. 6. To view the HTML file just created, I typed the following: $ netscape $HOME/doctest/cardoc/t2.html Figure 6-9 shows an example of the output created from the db2html command. The screen on the left shows the first page. The second page is shown on the right. During the conversion to HTML, the db2html command adds Next and Previous buttons to each page. It also gathers the title of each section into a Table of Contents on the first page. The title also appears in the title bar of the browser window. Figure 6-9: The DocBook file is output in HTML with the db2html command. 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. Because DocBook tags are based on content rather than a specific markup, a DocBook document can be output to different formats. The following is a list of utilities that come with Red Hat Linux for converting DocBook files: docbook2dvi Converts a DocBook file to Device Independent file format. docbook2html Converts a DocBook file to Hypertext Markup Language (HTML) format.
From our experience, we can recommend PHP5 Web Hosting services, if you need affordable webhost to host and run your web application.

Leave a Reply