qandaset

qandaset — A question-and-answer set.

Synopsis

qandaset ::=

Attributes

Common attributes and common linking attributes.

Additional attributes:

  • defaultlabel (enumeration)
    • “none”
    • “number”
    • “qanda”

Additional Constraints

  • If this element is the root element, it must have a version attribute.

Description

A qandaset is a list consisting of questions and answers. A qandaset can be divided into sections.

Every entry in a qandaset must contain a question, but answers are optional (some questions have no answers), and may be repeated (some questions have more than one answer).

Common uses for qandasets include reader questionnaires and lists of Frequently Asked Questions (FAQs). For the purpose of a FAQ, DocBook V3.1 added the FAQ class to article.

Processing expectations

Formatted as a displayed block. The defaultlabel attribute has a significant influence on the presentation of questions and answers.

Attributes

Common attributes and common linking attributes.

any attribute

Any attribute in any other explicit namespace

defaultlabel

Specifies the default labelling

Enumerated values:
“none”

No labels

“number”

Numeric labels

“qanda”

"Q:" and "A:" labels

Parents

These elements contain qandaset: abstract, acknowledgements, annotation, answer, appendix, article, bibliodiv, bibliography, bibliolist, blockquote, callout, calloutlist, caption (db.caption), caution, chapter, colophon, constraintdef, cover, danger, dedication, entry, example, figure, footnote, glossary, glossdef, glossdiv, glosslist, important, index, indexdiv, informalexample, informalfigure, itemizedlist, legalnotice, listitem, meta (db.meta.content), msgexplan, msgtext, note, orderedlist, para, partintro, preface, procedure, qandadiv, qandaset, question, refsect1, refsect2, refsect3, refsection, refsynopsisdiv, result, revdescription, sect1, sect2, sect3, sect4, sect5, section, setindex, sidebar, simplesect, step, taskprerequisites, taskrelated, tasksummary, td, textobject, th, tip, toc, tocdiv, topic, variablelist, warning.

Children

The following elements occur in qandaset: address, anchor, annotation, bibliolist, blockquote, bridgehead, calloutlist, caution, classsynopsis, cmdsynopsis, constraintdef, constructorsynopsis, danger, destructorsynopsis, enumsynopsis, epigraph, equation, example, fieldsynopsis, figure, formalgroup, formalpara, funcsynopsis, glosslist, important, indexterm (db.indexterm.endofrange), indexterm (db.indexterm.singular), indexterm (db.indexterm.startofrange), info (db.titleforbidden.info), info (db.titleonly.info), informalequation, informalexample, informalfigure, informaltable (db.cals.informaltable), informaltable (db.html.informaltable), itemizedlist, literallayout, macrosynopsis, mediaobject, methodsynopsis, msgset, note, orderedlist, packagesynopsis, para, procedure, productionset, programlisting, programlistingco, qandadiv, qandaentry, qandaset, remark, revhistory, screen, screenco, screenshot, segmentedlist, sidebar, simpara, simplelist, synopsis, table (db.cals.table), table (db.html.table), task, tip, title, titleabbrev, typedefsynopsis, unionsynopsis, variablelist, warning.

Examples

 1 |<article xmlns='http://docbook.org/ns/docbook'>
   |<title>Example qandaset</title>
   | 
   |<qandaset defaultlabel='qanda'>
 5 |  <qandaentry>
   |    <question>
   |      <para>To be, or not to be?</para>
   |    </question>
   |    <answer>
10 |      <para>That is the question.</para>
   |    </answer>
   |  </qandaentry>
   |</qandaset>
   | 
15 |</article>
Q:

To be, or not to be?

A:

That is the question.

 1 |<article xmlns='http://docbook.org/ns/docbook'
   |	 class="faq">
   |<title>Frequently Asked Questions About Fonts</title>
   | 
 5 |<qandaset>
   |  <qandadiv><title>General Information</title>
   | 
   |  <para>...</para>
   | 
10 |  <qandadiv><title>Font Houses</title>
   | 
   |  <qandaentry><question><para>Who sells lots of fonts?</para></question>
   |  <answer><label>Seller</label><para>Adobe Systems, Inc.</para></answer>
   |  </qandaentry>
15 | 
   |  <qandaentry><question><para>Who sells fonts and photos?</para></question>
   |  <answer><label>Seller</label><para>Veer</para></answer>
   |  </qandaentry>
   | 
20 |  </qandadiv>
   |  </qandadiv>
   |</qandaset>
   |</article>
General Information

...

Font Houses
1.1.1. 

Who sells lots of fonts?

Seller

Adobe Systems, Inc.

1.1.2. 

Who sells fonts and photos?

Seller

Veer