Debian Codegraph @

en/refpages/elements/qandaset/refentry.xml

raw symbols SCIP
1 <refentry id="qandaset.element" revision='3.1'>
2 <?dbhtml filename="qandaset.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>qandaset</secondary></indexterm>
11 <refentrytitle>qandaset</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>qandaset</refname>
16 <refpurpose>&qandaset.purpose;</refpurpose>
17 </refnamediv>
18
19 &qandaset.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>A <sgmltag>QandASet</sgmltag> is a list consisting of
23 <sgmltag>Question</sgmltag>s and <sgmltag>Answer</sgmltag>s.
24 <sgmltag>QandASet</sgmltag>s can be divided into sections.
25 </para>
26
27 <para>Every entry in a <sgmltag>QandASet</sgmltag> must contain a
28 <sgmltag>Question</sgmltag>, but <sgmltag>Answer</sgmltag>s are
29 optional (some questions have no answers), and may be repeated (some
30 questions have more than one answer).
31 </para>
32
33 <para>Common uses for <sgmltag>QandASet</sgmltag>s include reader
34 questionnaires and lists of <quote>Frequently Asked Questions</quote>
35 (<acronym>FAQ</acronym>s). For the purpose of an
36 <acronym>FAQ</acronym>, DocBook <acronym>V3.1</acronym> added the
37 <literal>FAQ</literal> class to <sgmltag>Article</sgmltag>.
38 </para>
39
40 <refsect2><title>Processing expectations</title>
41 <para>&format.block; The <sgmltag class='attribute'>DefaultLabel</sgmltag>
42 attribute has a significant influence on the presentation of
43 <sgmltag>Question</sgmltag>s and <sgmltag>Answer</sgmltag>s.
44 </para>
45 </refsect2>
46
47 &qandaset.parents.gen;
48 &qandaset.children.gen;
49
50 </refsect1>
51 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
52 <variablelist>
53 <varlistentry><term>defaultlabel</term>
54 <listitem>
55 <para><sgmltag class="attribute">DefaultLabel</sgmltag> identifies the
56 default label that should be used for <sgmltag>Question</sgmltag>s and
57 <sgmltag>Answer</sgmltag>s:</para>
58
59 <variablelist>
60 <varlistentry><term><literal>qanda</literal></term>
61 <listitem>
62 <para><sgmltag>Question</sgmltag>s are labeled <quote>Q:</quote> and
63 <sgmltag>Answer</sgmltag>s are labeled <quote>A:</quote>. Other
64 similar labels may be substituted, for example, the words might be
65 spelled out, <quote>Question:</quote> and <quote>Answer:</quote>, and
66 the actual characters or words used are dependent on the language.
67 </para>
68 </listitem>
69 </varlistentry>
70 <varlistentry><term><literal>number</literal></term>
71 <listitem><para>
72 The entries are enumerated.
73 </para></listitem>
74 </varlistentry>
75 <varlistentry><term><literal>none</literal></term>
76 <listitem><para>
77 No distinguishing label precedes <sgmltag>Question</sgmltag>s or
78 <sgmltag>Answer</sgmltag>s.
79 </para></listitem>
80 </varlistentry>
81 </variablelist>
82
83 <para>If no value is specified, the implied presentation may be any one of these,
84 as defined by the stylesheet. Note that each question and answer can explicitly
85 define a label, regardless of the default label specified.
86 </para>
87 </listitem>
88 </varlistentry>
89 </variablelist>
90 </refsect1>
91
92 <refsect1><title>Examples</title>
93
94 <informalexample role="example-source">
95 <programlisting>&qandaset.example.1.txt;</programlisting>
96 </informalexample>
97
98 <anchor id="ex.os.qandaset.1" role="HACK-ex.out.start"/>
99 &qandaset.example.1.gen;
100 <anchor id="ex.oe.qandaset.1" role="HACK-ex.out.end"/>
101
102 <informalexample role="example-source">
103 <programlisting>&qandaset.example.2.txt;</programlisting>
104 </informalexample>
105
106 &qandaset.example.seealso.gen;
107 </refsect1>
108 </refentry>
109