1 <refentry xmlns="http://docbook.org/ns/docbook"
\r
2 xmlns:xlink="http://www.w3.org/1999/xlink"
\r
3 xmlns:xi="http://www.w3.org/2001/XInclude"
\r
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
\r
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
\r
6 version="5.0" xml:id="qanda.defaultlabel">
\r
8 <refentrytitle>qanda.defaultlabel</refentrytitle>
\r
9 <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
\r
10 <refmiscinfo class="other" otherclass="value">number</refmiscinfo>
\r
11 <refmiscinfo class="other" otherclass="value">qanda</refmiscinfo>
\r
12 <refmiscinfo class="other" otherclass="value">none</refmiscinfo>
\r
15 <refname>qanda.defaultlabel</refname>
\r
16 <refpurpose>Sets the default for defaultlabel on QandASet.</refpurpose>
\r
20 <src:fragment xml:id="qanda.defaultlabel.frag">
\r
21 <xsl:param name="qanda.defaultlabel">number</xsl:param>
\r
25 <refsection><info><title>Description</title></info>
\r
27 <para>If no <literal>defaultlabel</literal> attribute is specified on
\r
28 a <tag>qandaset</tag>, this value is used. It is generally one of the legal
\r
29 values for the defaultlabel attribute (<literal>none</literal>,
\r
30 <literal>number</literal> or
\r
31 <literal>qanda</literal>), or one of the additional stylesheet-specific values
\r
32 (<literal>qnumber</literal> or <literal>qnumberanda</literal>).
\r
33 The default value is 'number'.
\r
35 <para>The values are rendered as follows:</para>
\r
37 <varlistentry><term><literal>qanda</literal></term>
\r
39 <para><tag>question</tag>s are labeled "Q:" and
\r
40 <tag>answer</tag>s are labeled "A:". </para>
\r
44 <varlistentry><term><literal>number</literal></term>
\r
46 <para>The questions are enumerated and the answers
\r
47 are not labeled. </para>
\r
51 <varlistentry><term><literal>qnumber</literal></term>
\r
53 <para>The questions are labeled "Q:" followed by a number, and answers are not
\r
55 When sections are numbered, adding a label
\r
56 to the number distinguishes the question numbers
\r
57 from the section numbers.
\r
58 This value is not allowed in the
\r
59 <tag class="attribute">defaultlabel</tag> attribute
\r
60 of a <tag>qandaset</tag> element.</para>
\r
64 <varlistentry><term><literal>qnumberanda</literal></term>
\r
66 <para>The questions are labeled "Q:" followed by a number, and
\r
67 the answers are labeled "A:".
\r
68 When sections are numbered, adding a label
\r
69 to the number distinguishes the question numbers
\r
70 from the section numbers.
\r
71 This value is not allowed in the
\r
72 <tag class="attribute">defaultlabel</tag> attribute
\r
73 of a <tag>qandaset</tag> element.</para>
\r
77 <varlistentry><term><literal>none</literal></term>
\r
79 <para>No distinguishing label precedes Questions or Answers.
\r