The Crash Course to DocBook

6.6. qandaset

The qandaset is a specialized list designed specifically to deal with sets of questions and answers, like you would see in a FAQ. Each set of questions and answers are contained within a <qandaentry> tag. The <question> and <answer> tags contain the questions and answers respectively.

Example 6-6. A qandaset


<qandaset>
<qandaentry>
<question>
<para>What are little boys made of?</para>
</question>
<answer>
<para>Snips and snails and puppy dog tails.</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>What are little girls made of?</para>
</question>
<answer>
<para>Sugar and spice and everything nice.</para>
</answer>
</qandaentry>
</qandaset> 

The qandaset looks something like this when converted:

6.6.1. What are little boys made of?
6.6.2. What are little girls made of?

6.6.1. What are little boys made of?

Snips and snails and puppy dog tails.

6.6.2. What are little girls made of?

Sugar and spice and everything nice.