| 1 | <refentry id="informalexample.element"> |
| 2 | <?dbhtml filename="informalexample.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>informalexample</secondary></indexterm> |
| 11 | <refentrytitle>informalexample</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>informalexample</refname> |
| 16 | <refpurpose>&informalexample.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &informalexample.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | <sgmltag>InformalExample</sgmltag> is a wrapper for an example without a title. |
| 24 | Examples often |
| 25 | contain <sgmltag>ProgramListing</sgmltag>s or other large block elements. |
| 26 | </para> |
| 27 | |
| 28 | <refsect2><title>Processing expectations</title> |
| 29 | <para>&format.block;</para> |
| 30 | <note> |
| 31 | <para>It is an error to supply a <sgmltag>title</sgmltag> in the |
| 32 | <sgmltag>blockinfo</sgmltag> for an informal example.</para> |
| 33 | </note> |
| 34 | </refsect2> |
| 35 | |
| 36 | |
| 37 | &informalexample.parents.gen; |
| 38 | &informalexample.children.gen; |
| 39 | </refsect1> |
| 40 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 41 | <variablelist> |
| 42 | <varlistentry><term>width</term> |
| 43 | <listitem> |
| 44 | <para> |
| 45 | <sgmltag class="attribute">Width</sgmltag> specifies the width (in characters) |
| 46 | of the longest line in this <sgmltag>InformalExample</sgmltag> (formatters may use |
| 47 | this value to determine scaling or rotation). |
| 48 | </para> |
| 49 | </listitem> |
| 50 | </varlistentry> |
| 51 | </variablelist> |
| 52 | </refsect1> |
| 53 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 54 | &informalexample.seealso.gen; |
| 55 | </refsect1> |
| 56 | <refsect1><title>Examples</title> |
| 57 | |
| 58 | <informalexample role="example-source"> |
| 59 | <programlisting>&informalexample.example.1.txt;</programlisting> |
| 60 | </informalexample> |
| 61 | |
| 62 | <anchor id="ex.os.informalexample.1" role="HACK-ex.out.start"/> |
| 63 | &informalexample.example.1.gen; |
| 64 | <anchor id="ex.oe.informalexample.1" role="HACK-ex.out.end"/> |
| 65 | |
| 66 | &informalexample.example.seealso.gen; |
| 67 | </refsect1> |
| 68 | </refentry> |
| 69 |