1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<refentry id="answer.element" revision='3.1'>
<?dbhtml filename="answer.html"?>
<refentryinfo>
<pubdate>$Date$</pubdate>
<releaseinfo>$Revision$</releaseinfo>
</refentryinfo>
<refmeta>
<indexterm><primary>elements</primary>
<secondary>answer</secondary></indexterm>
<refentrytitle>answer</refentrytitle>
<refmiscinfo>Element</refmiscinfo>
</refmeta>
<refnamediv>
<refname>answer</refname>
<refpurpose>&answer.purpose;</refpurpose>
</refnamediv>
&answer.synopsis.gen;
<refsect1 condition='ref.description'><title>Description</title>
<para>
Within a <sgmltag>QandAEntry</sgmltag>, a <sgmltag>Question</sgmltag> may have an
<sgmltag>Answer</sgmltag>. An <sgmltag>Answer</sgmltag> is optional (some questions
have no answers) and may be repeated (some questions have more than
one answer).
</para>
<refsect2><title>Processing expectations</title>
<para>
<sgmltag>Answer</sgmltag>s are frequently introduced with a label,
such as <quote>A:</quote>. If an <sgmltag>Answer</sgmltag> has a
<literal>Label</literal> child element, the content of that
<sgmltag>Label</sgmltag> is used as the label for the
<sgmltag>Answer</sgmltag>. The <sgmltag
class='attribute'>DefaultLabel</sgmltag> attribute on the nearest
ancestor <sgmltag>QandASet</sgmltag> of an <sgmltag>Answer</sgmltag>
can be used to indicate that a processing application should
automatically generate a label for the <sgmltag>Answer</sgmltag>.
</para>
</refsect2>
&answer.parents.gen;
&answer.children.gen;
</refsect1>
<refsect1><title>Examples</title>
&answer.example.seealso.gen;
</refsect1>
</refentry>
|