O'Reilly logo

DocBook 5: The Definitive Guide by Richard L. Hamilton, Norman Walsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

qandaset — A question-and-answer set

Synopsis

qandaset ::= ((((title? & titleabbrev?), infodb.titleforbidden.info) | info db.titleonly.info), (annotation | bridgehead | remark | revhistory | Indexing inlines | Admonition elements | Formal elements | Graphic elements | Informal elements | List elements | Paragraph elements | Publishing elements | Synopsis elements | Technical elements | Verbatim elements)*, (qandadiv+ | qandaentry+))

Attribute synopsis

Common attributes and common linking attributes.

Additional attributes:

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

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.

defaultlabel

Specifies the default labeling

Enumerated values:
“none”

No labels

“number”

Numeric labels

“qanda”

“Q:” and “A:” labels

See Also

answer, qandadiv, qandaentry, question

Examples

<article xmlns='http://docbook.org/ns/docbook'> <title>Example qandaset</title> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required