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