2 ----------------------------------------------
3 Docbook Reference Manual (1999):
4 - http://www.oreilly.com/catalog/docbook/
5 DocBook XSL: The Complete Guide (2002)
6 - http://www.sagehill.net/docbookxsl/index.html
8 DocBook elements (what tags are allowed where)
9 - http://www.oreilly.com/catalog/docbook/chapter/book/refelem.html
12 - http://www.sagehill.net/docbookxsl/WriteCatalog.html
15 ----------------------------------------------
16 xml to html markup transformations:
18 <programlisting> --> <pre class="programlisting">
19 <screen> --> <pre class="screen">
20 <option> --> <code class="option">
21 <filename> --> <code class="filename">
22 <function> --> <code class="function">
23 <literal> --> <code class="literal">
24 <varname> --> <code class="varname">
25 <computeroutput> --> <code class="computeroutput">
27 <command> --> <b class="command">
28 <blockquote> --> <div class="blockquote">
29 <blockquote class="blockquote">
31 Important: inside <screen> and <programlisting> blocks, do NOT
32 use 'html entities' in your markup, eg. '<' If you *do* use
33 them, they will be output verbatim, which is not what you want.
34 Instead, wrap the content with CDATA tags (see below).
36 ----------------------------------------------
38 <ulink url="http://..">http://kcachegrind.sourceforge.net</ulink>
41 ----------------------------------------------
42 <variablelist> --> <dl>
44 <term>TTF</term> --> <dt>
45 <listitem>TrueType fonts.</listitem> --> <dd>
47 </variablelist> --> <dl>
50 ----------------------------------------------
51 <itemizedlist> --> <ul>
56 </itemizedlist> --> </ul>
59 ----------------------------------------------
60 <orderedlist> --> <ol>
65 </orderedlist> --> </ol>
68 ----------------------------------------------
71 This is a paragraph of text before a list:
77 and this is some more text after the list.
80 <para>This is a paragraph of text before a list:</para>
83 <para>some text</para>
86 <para>some more text</para>
90 <para>and this is some more text after the list.</para>
93 ----------------------------------------------
95 For further details, see <a href="clientreq">The Mechanism</a>
100 <sect1 id="clientreq" xreflabel="The Mechanism">
101 <title>The Mechanism</title>
106 For further details, see <xref linkend="clientreq"/>.
109 ----------------------------------------------
111 <p><b>Warning:</b> Only do this if ...</p>
115 <title>Warning:</title>
116 <para>Only do this if ...</para>
120 <para><command>Warning:</command> Only do this if ... </para>
123 ----------------------------------------------
125 <p>It uses the Eraser algorithm described in:<br/>
127 Eraser: A Dynamic Data Race Detector for Multithreaded Programs<br/>
128 Stefan Savage, Michael Burrows, Patrick Sobalvarro and Thomas Anderson<br/>
129 ACM Transactions on Computer Systems, 15(4):391-411<br/>
135 It uses the Eraser algorithm described in:
137 Eraser: A Dynamic Data Race Detector for Multithreaded Programs
138 Stefan Savage, Michael Burrows, Patrick Sobalvarro and Thomas Anderson
139 ACM Transactions on Computer Systems, 15(4):391-411
144 ----------------------------------------------
147 /* Hook to delay things long enough so we can get the pid
148 and attach GDB in another shell. */
151 for ( p = 0; p < 50000; p++ )
152 for ( q = 0; q < 50000; q++ ) ;
156 <programlisting><![CDATA[
157 /* Hook to delay things long enough so we can get the pid
158 and attach GDB in another shell. */
161 for ( p = 0; p < 50000; p++ )
162 for ( q = 0; q < 50000; q++ ) ;
163 }]]></programlisting>
166 (do the same thing for <screen> tag)
169 ----------------------------------------------
171 where <i><code>TAG</code></i> has the ...
174 where <emphasis><computeroutput>TAG</computeroutput></emphasis> has the ...
176 Note: you cannot put <emphasis> inside <computeroutput>, unfortunately.
178 ----------------------------------------------
180 Any other helpful hints? Please add to this.