Creating documentation with DebianDoc

Here, we will see how to write and process documentation, using the DebianDoc DTD.

Writing DebianDoc documents

Here is a sample DebianDoc document:


<!doctype debiandoc public "-//DebianDoc//DTD DebianDoc//EN">

<debiandoc>
  <book>
    <titlepag>
      <title>FooBar</title>
      <author>
	<name>Bortzmeyer</name>
	<email>[email protected]</email>
      </author>
    </titlepag>
    <chapt>
      <heading>Title</heading>
      <p>Content</p>
    </chapt>
  </book>
</debiandoc>

      

To know the list of legal tags, see Debian documentation (the link will work only if you installed the package "debiandoc-sgml-doc") .

Processing DebianDoc documents

To translate to PostScript:


	 debiandoc2ps -1 myfile.dd
      

And to HTML:


	 debiandoc2html myfile.dd