| Free tutorials for Java, Eclipse and Web programming |
The following is an overview of useful Docbook tags.
Table 1. Important Docbook tags
| Tag | Explanation |
|---|---|
| <![CDATA[ SPECIAL_SIGN_HERE,e.g. & ]]> | Allows to enter special signs into the text which would be otherwise intepreted by DocBook |
| <programlisting> </programlisting> | Highlights the text as coding. |
| <emphasis> </emphasis> | Highlights the text |
| <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="example1.txt" /> | Includes example1.xml as text, so the file can contain tag, etc. |
| <ulink url="http://www.heise.de/newsticker">German IT News</ulink>. | Paste a hypertext link into the the document. |
| & | & Creates the & sign. Can for example be used in links. |
You can create an table like this:
<table frame='all'> <title>Sample Table</title> <tgroup cols='2' align='left' colsep='1' rowsep='1'> <colspec colname='c1' /> <colspec colname='c2' /> <thead> <row> <entry>a4</entry> <entry>a5</entry> </row> </thead> <tfoot> <row> <entry>f4</entry> <entry>f5</entry> </row> </tfoot> <tbody> <row> <entry>b1</entry> <entry>b2</entry> </row> <row> <entry>d1</entry> <entry>d5</entry> </row> </tbody> </tgroup> </table>
The output look then like this:
You can create non-numbered lists like this:
<itemizedlist> <listitem> <para>Item1</para> </listitem> <listitem> <para>Item2</para> </listitem> <listitem> <para>Item3</para> </listitem> <listitem> <para>Item4</para> </listitem> </itemizedlist>
The output look then like this:
This is a list entry
This is another list entry
You can create non-numbered lists like this:
<orderedlist> <listitem> <para>This is a list entry</para> </listitem> <listitem> <para>This is another list entry</para> </listitem> </orderedlist>
The output look then like this:
Item1
Item2
Item3
Item4
You can create links like this
<para> We use the Ant integrated into Eclipse. See <ulink url="http://www.vogella.de/articles/ApacheAnt/article.html"> Apache Ant Tutorial</ulink> for an introduction into Apache Ant. </para>