- Project tools
-
-
-
- How do I...
-
| Category |
Featured projects |
| scm |
Subversion,
Subclipse,
TortoiseSVN,
RapidSVN
|
| issuetrack |
Scarab |
| requirements |
xmlbasedsrs |
| design |
ArgoUML |
| techcomm |
SubEtha,
eyebrowse,
midgard,
cowiki |
| construction |
antelope,
scons,
frameworx,
build-interceptor,
propel,
phing
|
| testing |
maxq,
aut
|
| deployment |
current |
| process |
ReadySET |
| libraries |
GEF,
Axion,
Style,
SSTree
|
| Over 500 more tools... |
|
![[Important]](./important.png) | What is Slacker's Docbook? |
|---|
hi there |
You are reading textbook text.
![[Warning]](./warning.png) | Warning |
|---|
|
![[Warning]](./warning.png) | Caution |
|---|
|
![[Note]](./note.png) | This is a note |
|---|
|
![[Note]](./note.png) | Important |
|---|
|
![[Tip]](./tip.png) | Tip |
|---|
|
![[Important]](./important.png) | Question |
|---|
The Docbook meaning of <question> remains the same if it appears inside a <qandaset>. However, if it appears where a other admonitions are allowed, <question> is mapped to the docbook important admonition. |
![[Caution]](./caution.png) | Prerequisites |
|---|
This is inside a <prereq>. It's mapped to the
<caution> admonition since we are not using it.
|
This content is inside <pb>, which is short for parabullet.
When a <pb> is encountered, and condition['slides'] is not true, we translate <pb> into <para>, stripping all <li>s.
Otherwise, the preprocessor translates each <li> into a <listitem> <para>
and the <pb> maps to an <unorderedlist>. They appear as bullets in the slides version and paragraphs in the textbook.
This means that unordered lists inside <pb>should be properly punctuated.
<li> is much easier to type than <listitem> <para>.
About including files Example 4. impl.xml <section id="example"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation =
'http://slackerdoc.tigris.org/xsd/slackerdoc.xsd'>
<title> Slackers Docbook - example </title>
<p> Including sourcecode is straightforward with the <tt>
<include src="filename.xml" /> </tt> element. </p>
<include src="impl.xml" />
<p> Including images looks very similar to HTML except we typically
enclose them in a <tag>figure</tag>, like so: </p>
<figure id="somefig"> <title> This is the title of the figure
</title>
<img src="./uml/xml2html.png" />
</figure>
<section id="dtdtoc">
<title> DTD catalog </title>
<p> Xml2docbook generates a DTD to define entities for each included
file, as well as each generated XML file: </p>
<include src="html/00-generatedEntities.dtd" />
<p> This makes it a lot easier to include sub-documents. If they are
located in subdirectories, their entity names are based paths derived
from relative (to your xml document) pathnames.
</p>
</section>
</section>

Example 5. dialogs.cpp [ . . . . ]
/* Insert a menu into the menubar. */
QMenu *menu = new QMenu("&Questions", this);
QMainWindow::menuBar()->addMenu(menu);
/* Add some choices to the menu. */
menu->addAction("&Ask question",
this, SLOT(askQuestion()), tr("Alt+A"));
menu->addAction("Ask a &dumb question",
this, SLOT(askDumbQuestion()), tr("Alt+D"));
}

|