| 1 | <refentry id="textobject.element" revision='3.1'> |
| 2 | <?dbhtml filename="textobject.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>textobject</secondary></indexterm> |
| 11 | <refentrytitle>textobject</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>textobject</refname> |
| 16 | <refpurpose>&textobject.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &textobject.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <sgmltag>TextObject</sgmltag> is a wrapper containing a textual description |
| 24 | of a media object, and its associated meta-information. |
| 25 | <sgmltag>TextObject</sgmltag>s are only allowed in <sgmltag>MediaObject</sgmltag>s as |
| 26 | a fall-back option, they cannot be the primary content. |
| 27 | </para> |
| 28 | |
| 29 | <para> |
| 30 | There are two different forms of <sgmltag>TextObject</sgmltag>, and it is |
| 31 | not unreasonable for a media object to contain both of them. |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | In the first form, the content of a <sgmltag>TextObject</sgmltag> is |
| 36 | simply a <sgmltag>Phrase</sgmltag>. This form is a mechanism for |
| 37 | providing a simple <quote>alt text</quote> for a media object. The |
| 38 | phrase might be used, for example, as the value of the |
| 39 | <sgmltag class='attribute'>ALT</sgmltag> attribute on an &HTML; <sgmltag>IMG</sgmltag>, |
| 40 | with the primary content of the image coming from one of the other |
| 41 | objects in the media object. |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | In the second form, the content of <sgmltag>TextObject</sgmltag> is a longer, |
| 46 | prose description. This form could be used when rendering to devices |
| 47 | that are incapable of displaying any of the other alternatives. |
| 48 | </para> |
| 49 | |
| 50 | <refsect2 id="dbreproc.textobject"><title>Processing expectations</title> |
| 51 | <para> |
| 52 | &format.context; It might not be rendered at all, depending on its placement |
| 53 | within a <sgmltag>MediaObject</sgmltag> or <sgmltag>InlineMediaObject</sgmltag> and |
| 54 | the constraints on the publishing system. For a more detailed description |
| 55 | of the semantics involved, see <sgmltag>MediaObject</sgmltag>. |
| 56 | </para> |
| 57 | </refsect2> |
| 58 | |
| 59 | |
| 60 | &textobject.parents.gen; |
| 61 | &textobject.children.gen; |
| 62 | </refsect1> |
| 63 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 64 | &textobject.seealso.gen; |
| 65 | </refsect1> |
| 66 | <refsect1><title>Examples</title> |
| 67 | |
| 68 | &textobject.example.seealso.gen; |
| 69 | </refsect1> |
| 70 | </refentry> |
| 71 |