Debian Codegraph @

ru/refpages/intro.elements.xml

raw symbols SCIP
1 <partintro>
2 <!-- this can't actually go here...
3 <pubdate>$Date$</pubdate>
4 <releaseinfo>$Revision$</releaseinfo>
5 </docinfo>
6 -->
7 <para>
8 <indexterm id="elementsref" class='startofrange'>
9 <primary>elements</primary>
10 <secondary>reference</secondary>
11 </indexterm>This reference describes every element in the DocBook
12 &DTD;.</para>
13
14 <para>In DocBook V3.1, introduced in February, 1999, the following
15 elements were added to DocBook:
16 <simplelist type='inline'>
17 <member><sgmltag>answer</sgmltag></member>
18 <member><sgmltag>audiodata</sgmltag></member>
19 <member><sgmltag>audioobject</sgmltag></member>
20 <member><sgmltag>caption</sgmltag></member>
21 <member><sgmltag>colophon</sgmltag></member>
22 <member><sgmltag>constant</sgmltag></member>
23 <member><sgmltag>imagedata</sgmltag></member>
24 <member><sgmltag>imageobject</sgmltag></member>
25 <member><sgmltag>imageobjectco</sgmltag></member>
26 <member><sgmltag>informalfigure</sgmltag></member>
27 <member><sgmltag>inlinemediaobject</sgmltag></member>
28 <member><sgmltag>mediaobject</sgmltag></member>
29 <member><sgmltag>mediaobjectco</sgmltag></member>
30 <member><sgmltag>objectinfo</sgmltag></member>
31 <member><sgmltag>qandadiv</sgmltag></member>
32 <member><sgmltag>qandaentry</sgmltag></member>
33 <member><sgmltag>qandaset</sgmltag></member>
34 <member><sgmltag>question</sgmltag></member>
35 <member><sgmltag>section</sgmltag></member>
36 <member><sgmltag>sectioninfo</sgmltag></member>
37 <member><sgmltag>textobject</sgmltag></member>
38 <member><sgmltag>varname</sgmltag></member>
39 <member><sgmltag>videodata</sgmltag></member>
40 <member><sgmltag>videoobject</sgmltag></member>
41 </simplelist>.</para>
42
43 <para>DocBook V4.0, introduced in January, 2001, the following elements
44 were added:
45 <simplelist type='inline'>
46 <member><sgmltag>appendixinfo</sgmltag></member>
47 <member><sgmltag>articleinfo</sgmltag></member>
48 <member><sgmltag>bibliographyinfo</sgmltag></member>
49 <member><sgmltag>chapterinfo</sgmltag></member>
50 <member><sgmltag>classsynopsis</sgmltag></member>
51 <member><sgmltag>classsynopsisinfo</sgmltag></member>
52 <member><sgmltag>constructorsynopsis</sgmltag></member>
53 <member><sgmltag>destructorsynopsis</sgmltag></member>
54 <member><sgmltag>exceptionname</sgmltag></member>
55 <member><sgmltag>fieldsynopsis</sgmltag></member>
56 <member><sgmltag>glossaryinfo</sgmltag></member>
57 <member><sgmltag>indexinfo</sgmltag></member>
58 <member><sgmltag>initializer</sgmltag></member>
59 <member><sgmltag>interfacename</sgmltag></member>
60 <member><sgmltag>methodname</sgmltag></member>
61 <member><sgmltag>methodparam</sgmltag></member>
62 <member><sgmltag>methodsynopsis</sgmltag></member>
63 <member><sgmltag>modifier</sgmltag></member>
64 <member><sgmltag>ooclass</sgmltag></member>
65 <member><sgmltag>ooexception</sgmltag></member>
66 <member><sgmltag>oointerface</sgmltag></member>
67 <member><sgmltag>partinfo</sgmltag></member>
68 <member><sgmltag>prefaceinfo</sgmltag></member>
69 <member><sgmltag>refentryinfo</sgmltag></member>
70 <member><sgmltag>referenceinfo</sgmltag></member>
71 <member><sgmltag>remark</sgmltag></member>
72 <member><sgmltag>revdescription</sgmltag></member>
73 <member><sgmltag>setindexinfo</sgmltag></member>
74 <member><sgmltag>sidebarinfo</sgmltag></member>
75 <member><sgmltag>simplemsgentry</sgmltag></member>
76 </simplelist>.</para>
77
78 <para>The following additional changes were made in DocBook V4.0:
79 <sgmltag>artheader</sgmltag> was renamed <sgmltag>articleinfo</sgmltag>;
80 <sgmltag>comment</sgmltag> was renamed <sgmltag>remark</sgmltag>;
81 <sgmltag>docinfo</sgmltag> was broken into a set of other info elements;
82 and <sgmltag>bookbiblio</sgmltag>, <sgmltag>interfacedefinition</sgmltag>,
83 and <sgmltag>seriesinfo</sgmltag> were removed.</para>
84
85 <para>DocBook V4.2, introduced in FIXME: April, 2002, the following elements
86 were added:
87 <simplelist type='inline'>
88 <member><sgmltag>bibliocoverage</sgmltag></member>
89 <member><sgmltag>biblioid</sgmltag></member>
90 <member><sgmltag>bibliorelation</sgmltag></member>
91 <member><sgmltag>bibliosource</sgmltag></member>
92 <member><sgmltag>blockinfo</sgmltag></member>
93 <member><sgmltag>citebiblioid</sgmltag></member>
94 <member><sgmltag>coref</sgmltag></member>
95 <member><sgmltag>errortext</sgmltag></member>
96 <member><sgmltag>personblurb</sgmltag></member>
97 <member><sgmltag>personname</sgmltag></member>
98 <member><sgmltag>refsection</sgmltag></member>
99 <member><sgmltag>refsectioninfo</sgmltag></member>
100 <member><sgmltag>textdata</sgmltag></member>
101 </simplelist>.</para>
102
103 <para>Additional changes made to DocBook V4.2 are summarized in the
104 <ulink url="http://www.oasis-open.org/docbook/specs/docbook-4.2.html">DocBook V4.2
105 Specification</ulink>.</para>
106
107 <sect1>
108 <title>Organization of Reference Pages</title>
109 <para>The description of each element in this reference is divided into the
110 following sections:</para>
111 <variablelist>
112
113 <varlistentry><term>Synopsis</term>
114 <listitem>
115 <para>
116 <indexterm><primary>elements</primary>
117 <secondary>reference</secondary>
118 <tertiary>synopses</tertiary></indexterm>
119 <indexterm><primary>synopses</primary>
120 <secondary>elements (reference pages)</secondary></indexterm>
121 <indexterm><primary>content models</primary>
122 <secondary>elements, reference</secondary></indexterm>
123
124 Provides a quick synopsis of the element. The content of the synopsis
125 table varies according to the nature of the element described, but may include
126 any or all of the following sections:</para>
127 <variablelist>
128 <varlistentry><term>Content Model or Declared Content</term>
129 <listitem>
130 <para>Describes the content model of the element in &SGML;/&XML; &DTD; terms. See <xref linkend="s2-cmintro"/>.&rdquo;</para>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry><term>Inclusions</term>
135 <listitem>
136 <para>
137 <indexterm><primary>inclusions</primary>
138 <secondary>elements</secondary></indexterm>
139
140 Lists <quote>inclusions.</quote> Inclusions are an &SGML; feature.
141 Included elements can appear anywhere inside the element
142 that includes them, even in places that aren't ordinarily
143 valid. For example, <sgmltag>Chapter</sgmltag> includes <sgmltag>IndexTerm</sgmltag>.
144 This means that within a <sgmltag>Chapter</sgmltag>, <sgmltag>IndexTerm</sgmltag> can
145 appear inside <sgmltag>Emphasis</sgmltag>, for instance, even though the
146 content model of <sgmltag>Emphasis</sgmltag> does not explicitly allow
147 <sgmltag>IndexTerm</sgmltag>s.
148 </para>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry><term>Exclusions</term>
153 <listitem>
154 <para>
155 <indexterm><primary>exclusions</primary>
156 <secondary>elements</secondary></indexterm>
157 <indexterm><primary>nesting</primary>
158 <secondary>elements</secondary></indexterm>
159 <indexterm><primary>elements</primary>
160 <secondary>nesting</secondary></indexterm>
161 Lists <quote>exclusions.</quote> Exclusions are an &SGML; feature.
162 Excluded elements cannot appear anywhere inside the element that
163 excludes them, even in places that are ordinarily valid. For
164 example, <sgmltag>Footnote</sgmltag> excludes <sgmltag>Footnote</sgmltag>. This
165 means that a <sgmltag>Footnote</sgmltag> cannot appear inside a
166 <sgmltag>Para</sgmltag> inside a <sgmltag>Footnote</sgmltag>, even though
167 <sgmltag>Footnote</sgmltag> appears in the content model of <sgmltag>Para</sgmltag>.
168 </para>
169 <indexterm><primary>lists</primary>
170 <secondary>elements</secondary>
171 <tertiary>exclusions</tertiary></indexterm>
172
173 <para>Lists elements that are excluded from appearing at any level below
174 the element described.</para>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry><term>Attributes</term>
179 <listitem>
180 <para>
181 <indexterm><primary>attributes</primary>
182 <secondary>elements, referencing</secondary></indexterm>
183
184 Provides a synopsis of the attributes on the element. For brevity, common
185 attributes are described only once, <link linkend="common.attributes">in this
186 introduction</link>.</para>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry><term>Tag Minimization</term>
191 <listitem>
192 <para>
193 <indexterm><primary>tags</primary>
194 <secondary>minimization</secondary></indexterm>
195 <indexterm><primary>start tags</primary>
196 <secondary>omitting</secondary></indexterm>
197 <indexterm><primary>end tags</primary>
198 <secondary>omitting</secondary></indexterm>
199 <indexterm><primary>markup</primary>
200 <secondary>minimization</secondary></indexterm>
201 <indexterm><primary>minimization</primary>
202 <secondary>markup</secondary>
203 <tertiary>start and end tags</tertiary></indexterm>
204
205 Indicates if start- or end-tags may be omitted. Tag omission is
206 dependent on both the &DTD; and your &SGML; declaration. If a tag is described
207 as ommissable here, it is ommissible if your declaration allows tag
208 omission. The standard DocBook declaration does not.
209 </para>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry><term>Parameter Entities</term>
214 <listitem>
215 <para>
216 <indexterm><primary>parameter entities</primary>
217 <secondary>elements</secondary></indexterm>
218
219 Lists the parameter entities in which the element described appears.
220 Parameter entities are important when you are <link linkend="app-customizing">
221 customizing the &DTD;</link>.</para>
222 </listitem>
223 </varlistentry>
224 </variablelist>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry><term>Description</term>
229 <listitem>
230 <para>
231 <indexterm><primary>elements</primary>
232 <secondary>description, semantics</secondary></indexterm>
233 <indexterm><primary>semantics (elements), describing</primary></indexterm>
234
235 Describes the semantics of the element in detail.</para>
236 <variablelist>
237 <varlistentry><term>Processing expectations</term>
238 <listitem>
239 <para>
240 <indexterm><primary>formatting</primary>
241 <secondary>elements</secondary></indexterm>
242 <indexterm><primary>elements</primary>
243 <secondary>attributes</secondary>
244 <tertiary>processing expectations, affecting</tertiary></indexterm>
245 Summarizes specific formatting expectations of the element. Many
246 processing expectations are influenced by attribute values. Be sure to
247 consult the
248 description of element attributes as well.
249 </para>
250 </listitem>
251 </varlistentry>
252 <varlistentry><term>Future changes</term>
253 <listitem>
254 <para>
255 <indexterm><primary>DocBook DTD</primary>
256 <secondary>changes, future versions</secondary></indexterm>
257 <indexterm><primary>compatibility, DocBook versions</primary></indexterm>
258 <indexterm><primary>versions</primary>
259 <secondary>DocBook DTD</secondary>
260 <tertiary>future changes</tertiary></indexterm>
261
262 Identifies changes that are scheduled for future versions of the
263 &DTD;. These changes are highlighted because they involve some
264 backward-incompatability that may make currently valid DocBook documents
265 no longer valid under the new version.
266 </para>
267 </listitem>
268 </varlistentry>
269 </variablelist>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry><term>Attributes</term>
274 <listitem>
275 <para>
276 <indexterm><primary>attributes</primary>
277 <secondary>semantics</secondary></indexterm>
278
279 Describes the semantics of each attribute in detail.</para>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry><term>See Also</term>
284 <listitem>
285 <para>Lists similar or related elements.
286 <indexterm><primary>cross references</primary>
287 <secondary>elements</secondary></indexterm>
288 </para>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry><term>Examples</term>
293 <listitem>
294
295 <para>
296 <indexterm><primary>elements</primary>
297 <secondary>proper usage, examples</secondary></indexterm>
298 Provides examples of proper usage for the
299 element. Generally, the smallest example required to reasonably
300 demonstrate the element is used. In many cases, a formatted
301 version of the example is also shown.
302 </para>
303 <para>
304 All of the examples printed in the book use the &SGML; version of
305 DocBook. The <link linkend="app-cdrom"><acronym>CD-ROM</acronym></link> includes the full
306 text of all of the examples.
307 </para>
308 <para>Formatted examples are indicated using a vertical bar.</para>
309 </listitem>
310 </varlistentry>
311 </variablelist>
312 <sect2 id="s2-cmintro">
313 <title>Understanding Content Models</title>
314 <para>
315 <indexterm><primary>content models</primary>
316 <secondary>overview</secondary></indexterm>
317
318 Each element synopsis begins with a concise description of the
319 elements it can contain. This description is in &DTD;
320 &ldquo;content model&rdquo; syntax, with all parameter entities
321 expanded.
322 </para>
323 <para>
324 Content models are the way that &DTD;s describe the name, number,
325 and order of other elements that may be used inside an element.
326 The primary feature of content model syntax is that it is concise,
327 but this conciseness comes at the cost of legibility until you
328 are familiar with the syntax.
329 </para>
330 <para>
331 <indexterm><primary>syntax</primary>
332 <secondary>content models</secondary></indexterm>
333 <indexterm><primary>keywords</primary>
334 <secondary>content model syntax</secondary></indexterm>
335 <indexterm><primary>sequences</primary>
336 <secondary>content model syntax</secondary></indexterm>
337 <indexterm><primary>alternatives (content model syntax)</primary></indexterm>
338 <indexterm><primary>groups</primary>
339 <secondary>content model syntax</secondary></indexterm>
340
341 There are six components to content model syntax: <firstterm>element
342 names</firstterm>, <firstterm>keywords</firstterm>,
343 <firstterm>repetitions</firstterm>, <firstterm>sequences</firstterm>,
344 <firstterm>alternatives</firstterm>, and
345 <firstterm>groups</firstterm>.
346 </para>
347
348 <variablelist>
349 <varlistentry><term>Element names</term>
350 <listitem><para>
351 <indexterm><primary>elements</primary>
352 <secondary >names in content models</secondary></indexterm>
353
354 An element name in a content model indicates that an element of that
355 type may (or must) occur at that position.
356 </para>
357 <para>
358 <indexterm><primary>Para element</primary></indexterm>
359 A content model of <literal>Para</literal> indicates
360 that the element must contain a single paragraph.
361 </para></listitem>
362 </varlistentry>
363 <varlistentry><term>Keywords</term>
364 <listitem><para>
365 <indexterm><primary>empty elements</primary></indexterm>
366 <indexterm><primary>elements</primary>
367 <secondary>empty</secondary><see>empty elements</see></indexterm>
368 There are two keywords that occur in the content models of DocBook
369 elements: <literal>EMPTY</literal>, and <literal>#PCDATA</literal>.
370 </para>
371 <para>A content model that consists of the single keyword <literal>EMPTY</literal>
372 identifes an element as an empty element. Empty elements are not allowed
373 to have any content. In order for the word &ldquo;EMPTY&rdquo; to have
374 this special meaning, it must be the first and only word in the content
375 model. The word &ldquo;EMPTY&rdquo; at any other place is treated as
376 an element name.
377 </para>
378 <para>
379 <indexterm><primary>#PCDATA keyword</primary></indexterm>
380 <indexterm><primary>text</primary>
381 <secondary>#PCDATA keyword</secondary></indexterm>
382 <indexterm><primary>characters</primary>
383 <secondary>character sets</secondary>
384 <tertiary>SGML and XML documents</tertiary></indexterm>
385 The <literal>#PCDATA</literal> keyword indicates that text may
386 occur at that position. The text may consist of entity references and
387 any characters that are legal in the document character set. For &XML;
388 documents, the document character set is always Unicode. In &SGML; the
389 declaration can identify character sets and ranges that are allowed.
390 DocBook &SGML; documents use the <acronym>ISO</acronym> Latin 1 character set.
391 </para>
392 </listitem>
393 </varlistentry>
394 <varlistentry><term>Repetitions</term>
395 <listitem><para>
396 <indexterm><primary>repetitions (content model syntax)</primary></indexterm>
397
398 An unadorned element name indicates that an element must occur exactly
399 once at that position. A content model can also specify that an element
400 may occur zero or more times, one or more times, or exactly zero or one
401 time. This is accomplished by following the element name with one of
402 the following characters: <literal>*</literal> for zero or more times,
403 <literal>+</literal> for one or more times, or <literal>?</literal> for exactly
404 zero or one times.
405 </para>
406 <para>
407 A content model of <literal>Para+</literal> indicates
408 that the element must contain at least one paragraph and may contain
409 many.
410 </para></listitem>
411 </varlistentry>
412 <varlistentry><term>Sequences</term>
413 <listitem><para>
414 <indexterm><primary>sequences</primary>
415 <secondary>content model syntax</secondary></indexterm>
416 If element names in a content model are separated by commas,
417 then they must occur in sequence.
418 </para>
419 <para>
420 A content model of <literal>Title, Para</literal> indicates
421 that the element must contain a single title followed by a single paragraph.
422 </para>
423 </listitem>
424 </varlistentry>
425 <varlistentry><term>Alternatives</term>
426 <listitem><para>
427 <indexterm><primary>alternatives (content model syntax)</primary></indexterm>
428 If element names in a content model are separated by vertical bars (|),
429 then they are alternatives. These are sometimes called &ldquo;or
430 groups&rdquo; because they require the selection of one or another element.
431 </para>
432 <para>
433 A content model of <literal>Phrase | Para</literal> indicates
434 that the element must contain either a single phrase or a single paragraph.
435 </para>
436 <para>
437
438 <indexterm><primary>connectors (SGML)</primary></indexterm>
439 <indexterm><primary>DocBook DTD</primary>
440 <secondary>ampersand (&amp;) connector</secondary></indexterm>
441
442 In &SGML;, there is another connector: the ampersand (&amp;). The
443 ampersand is a kind of combination of alternative and sequence,
444 which means that all of the elements must occur, but they can occur
445 in any order. DocBook does not have any content models that use
446 the ampersand connector. &XML; does not allow it.
447 </para>
448 </listitem>
449 </varlistentry>
450 <varlistentry><term>Groups</term>
451 <listitem><para>
452 <indexterm><primary>groups</primary>
453 <secondary>content model syntax</secondary></indexterm>
454
455 Finally, parentheses may be used around part of a content model. A group
456 formed this way can have repetition indicators and may occur as part of
457 a sequence.
458 </para>
459 <para>
460 A content model of <literal>(Literal | Replaceable)+</literal>
461 indicates that either <sgmltag>Literal</sgmltag> or <sgmltag>Replaceable</sgmltag>
462 must occur and they can be repeated (and mixed) any number of times.
463 </para></listitem>
464 </varlistentry>
465 </variablelist>
466 <sect3><title>Content models and validity</title>
467 <para>
468 <indexterm><primary>parsers</primary>
469 <secondary>content models, matching to elements</secondary></indexterm>
470 <indexterm><primary>elements</primary>
471 <secondary>parsing</secondary></indexterm>
472
473 A parser uses the content models to determine if a given document is valid.
474 In order for a document to be valid, the content of every element in the
475 document must <quote>match</quote> the content model for that element.
476 </para>
477 <para>
478 In practical terms, match means that it must be possible to expand the
479 content model until it exactly matches the sequence of elements in the
480 document.
481 </para>
482 <para>
483 For example, consider the content model of the <sgmltag>Epigraph</sgmltag> element:
484 <literal>Attribution?, (FormalPara | Para | SimPara)+</literal>.
485 This indicates that the following document fragment is valid:
486 <indexterm><primary>content models</primary>
487 <secondary>examples</secondary></indexterm>
488
489 <screen>
490 <![CDATA[
491 <epigraph>
492 <para>Some text</para>
493 </epigraph>
494 ]]>
495 </screen>
496 </para>
497 <para>
498 It is valid because the following expansion of the content model exactly
499 matches the actual content: choose zero occurances of
500 <sgmltag>Attribution</sgmltag>, choose the alternative <sgmltag>Para</sgmltag> from
501 the group, and choose to let the &ldquo;+&rdquo; match once.
502 </para>
503 <para>
504 By the same token, this example is not valid because there is no
505 expansion of the content model that can match it:
506 <screen>
507 <![CDATA[
508 <epigraph>
509 <para>Some text</para>
510 <attribution>John Doe</attribution>
511 </epigraph>
512 ]]>
513 </screen>
514 </para>
515 <para>
516 <indexterm><primary>ambiguity, content models</primary></indexterm>
517
518 There is one additional restriction on the matching ability of the
519 parser: it is not allowed to <quote>look ahead.</quote> This means that
520 there are many useful content models that are ambiguous.
521 </para>
522 </sect3>
523 <sect3><title>Ambiguity</title>
524 <para>
525 Ambiguity is not allowed. The parser must always be able to choose
526 exactly what to match based upon the next input token.
527 Consider the
528 following content model:
529 <literal>Meta*, Title?, Meta*</literal>.
530 </para>
531 <para>
532 The intent is clear: to allow some meta-information and a single,
533 optional <sgmltag>Title</sgmltag>. But this content model is ambiguous
534 for the following reason: if the document content begins with a
535 <sgmltag>Meta</sgmltag> element, it is impossible to tell if it matches
536 the <sgmltag>Meta</sgmltag> before the <sgmltag>Title</sgmltag> or after
537 without looking ahead.
538 </para>
539 <para>
540 Ambiguous content models are detected by the parser when it reads the
541 &DTD;. It is not sufficient that your document simply be unambiguous;
542 it must not be possible to construct any ambiguous document.
543 </para>
544 </sect3>
545 <sect3><title>#PCDATA and repetition</title>
546 <para>
547 <indexterm><primary>#PCDATA keyword</primary>
548 <secondary>repetition and</secondary></indexterm>
549 <indexterm><primary>empty elements</primary>
550 <secondary>PCDATA keyword and</secondary></indexterm>
551
552 The &PCDATA; keyword can always match the empty string. This
553 makes it impossible to force an element that may contain
554 characters not to be empty. In other words, the following content
555 model <emphasis>does not</emphasis> guarantee that the element is not
556 empty: <literal>(#PCDATA)+</literal>.
557 </para>
558 <para>
559 <indexterm><primary>groups</primary>
560 <secondary>PCDATA keyword</secondary></indexterm>
561
562 In &XML;, the &PCDATA; keyword is only allowed in optional, repeatable
563 <quote>or groups</quote>, and it must be the first member of the
564 group.
565 </para>
566 </sect3>
567 </sect2>
568 </sect1>
569 <sect1 id="common.attributes">
570 <title>Common Attributes</title>
571 <para>
572 <indexterm><primary>attributes</primary>
573 <secondary>common</secondary></indexterm>
574 <indexterm><primary>common attributes</primary></indexterm>
575
576 The following attributes occur on all elements. They are summarized
577 here once for brevity and to make the additional attributes that occur on
578 many elements stand out.</para>
579
580 <informaltable pgwide="1">
581 <tgroup cols="3" colsep="1" rowsep="1">
582 <colspec colnum="1" colname="C1"/>
583 <colspec colnum="2" colname="C2"/>
584 <colspec colnum="3" colname="C3"/>
585 <spanspec namest="C1" nameend="C3" spanname="C1C3"/>
586 <thead>
587 <row><entry><para>Name</para></entry><entry>Type</entry><entry>Default</entry>
588 </row>
589 </thead>
590 <tbody>
591 <row>
592 <entry><sgmltag class="attribute">Arch</sgmltag></entry>
593 <entry>&AT.CDATA;</entry>
594 <entry><emphasis>None</emphasis></entry>
595 </row>
596 <row>
597 <entry revision="4.0"><sgmltag class="attribute">Condition</sgmltag></entry>
598 <entry>&AT.CDATA;</entry>
599 <entry><emphasis>None</emphasis></entry>
600 </row>
601 <row>
602 <entry><sgmltag class="attribute">Conformance</sgmltag></entry>
603 <entry>&AT.NMTOKENS;</entry>
604 <entry><emphasis>None</emphasis></entry>
605 </row>
606 <row>
607 <entry><sgmltag class="attribute">ID</sgmltag></entry>
608 <entry>&AT.ID;</entry>
609 <entry><para><emphasis>None/Required</emphasis><footnote><para>On a
610 few elements, the <sgmltag class="attribute">ID</sgmltag> is required,
611 but on most it is not.</para></footnote></para></entry>
612 </row>
613 <row>
614 <entry><sgmltag class="attribute">Lang</sgmltag></entry>
615 <entry>&AT.CDATA;</entry>
616 <entry><emphasis>None</emphasis></entry>
617 </row>
618 <row>
619 <entry><sgmltag class="attribute">OS</sgmltag></entry>
620 <entry>&AT.CDATA;</entry>
621 <entry><emphasis>None</emphasis></entry>
622 </row>
623 <row>
624 <entry><sgmltag class="attribute">Remap</sgmltag></entry>
625 <entry>&AT.CDATA;</entry>
626 <entry><emphasis>None</emphasis></entry>
627 </row>
628 <row>
629 <entry><sgmltag class="attribute">Role</sgmltag></entry>
630 <entry>&AT.CDATA;</entry>
631 <entry><emphasis>None</emphasis></entry>
632 </row>
633 <row>
634 <entry><sgmltag class="attribute">Revision</sgmltag></entry>
635 <entry>&AT.CDATA;</entry>
636 <entry><emphasis>None</emphasis></entry>
637 </row>
638 <row>
639 <entry valign="top"><sgmltag class="attribute">RevisionFlag</sgmltag></entry>
640 <entry><simplelist>
641 <member><emphasis>Enumeration:</emphasis></member>
642 <member>Changed</member>
643 <member>Added</member>
644 <member>Deleted</member>
645 <member>Off</member>
646 </simplelist></entry>
647 <entry><emphasis>None</emphasis></entry>
648 </row>
649 <row>
650 <entry revision="4.0"><sgmltag class="attribute">Security</sgmltag></entry>
651 <entry>&AT.CDATA;</entry>
652 <entry><emphasis>None</emphasis></entry>
653 </row>
654 <row>
655 <entry><sgmltag class="attribute">UserLevel</sgmltag></entry>
656 <entry>&AT.CDATA;</entry>
657 <entry><emphasis>None</emphasis></entry>
658 </row>
659 <row>
660 <entry><sgmltag class="attribute">Vendor</sgmltag></entry>
661 <entry>&AT.CDATA;</entry>
662 <entry><emphasis>None</emphasis></entry>
663 </row>
664 <row>
665 <entry><sgmltag class="attribute">XrefLabel</sgmltag></entry>
666 <entry>&AT.CDATA;</entry>
667 <entry><emphasis>None</emphasis></entry>
668 </row>
669 </tbody>
670 </tgroup>
671 </informaltable>
672 <variablelist>
673 <varlistentry><term><sgmltag class="attribute">Arch</sgmltag></term>
674 <listitem>
675 <para>
676 <indexterm><primary>Arch attribute</primary></indexterm>
677 <indexterm><primary>architecture</primary>
678 <secondary>computer or chip</secondary></indexterm>
679 <indexterm><primary>computer architecture (elements)</primary></indexterm>
680 <indexterm><primary>chip architecture (elements)</primary></indexterm>
681
682 <sgmltag class="attribute">Arch</sgmltag> designates the
683 computer or chip architecture to which the element applies.</para>
684 </listitem>
685 </varlistentry>
686 <varlistentry><term><sgmltag class="attribute">Condition</sgmltag></term>
687 <listitem>
688 <para revision="4.0">
689 <indexterm><primary>Condition attribute</primary></indexterm>
690
691 <sgmltag class="attribute">Condition</sgmltag> is a general-purpose
692 effectivity attribute with no specified semantics. Many DocBook users
693 observed that in order to add an effectivity condition that was unique
694 to their environment required <quote>abusing</quote> the semantics of
695 one of the existing attributes, or adding their own, making their
696 customization <link linkend="s-notdocbook">an extension rather than a
697 subset</link>.</para>
698
699 <para>The <sgmltag class="attribute">Condition</sgmltag> attribute
700 provides a standard place for application-specific effectivity.</para>
701 </listitem>
702 </varlistentry>
703 <varlistentry><term><sgmltag class="attribute">Conformance</sgmltag></term>
704 <listitem>
705 <para>
706 <indexterm><primary>Conformance attribute</primary></indexterm>
707
708 <sgmltag class="attribute">Conformance</sgmltag> indicates
709 standards conformance characteristics of the item contained in the
710 element. These characteristics are application-specific. DocBook
711 provides no defaults.</para>
712 </listitem>
713 </varlistentry>
714 <varlistentry><term><sgmltag class="attribute">ID</sgmltag></term>
715 <listitem>
716 <para>
717 <indexterm><primary>ID attribute</primary></indexterm>
718
719 <sgmltag class="attribute">ID</sgmltag> is an identifying string
720 for the element. It must be unique at least within the document and
721 must begin with a letter.</para>
722 </listitem>
723 </varlistentry>
724 <varlistentry><term><sgmltag class="attribute">Lang</sgmltag></term>
725 <listitem>
726 <para>
727 <indexterm><primary>Lang attribute</primary></indexterm>
728 <indexterm><primary>country codes</primary></indexterm>
729 <indexterm><primary>languages</primary>
730 <secondary>codes</secondary></indexterm>
731 <indexterm><primary>ISO standards</primary>
732 <secondary>language codes</secondary></indexterm>
733 <indexterm><primary>ISO standards</primary>
734 <secondary>country codes</secondary></indexterm>
735
736 <sgmltag class="attribute">Lang</sgmltag> should be a language
737 code drawn from <acronym>ISO</acronym> 639 (perhaps extended with a
738 country code drawn from <acronym>ISO</acronym> 3166, as
739 <literal>en-US</literal>). Use it when you need to signal your
740 application to change hyphenation and other display
741 characteristics.</para>
742 </listitem>
743 </varlistentry>
744 <varlistentry><term><sgmltag class="attribute">OS</sgmltag></term>
745 <listitem>
746 <para>
747 <indexterm><primary>OS attribute</primary></indexterm>
748 <indexterm><primary>operating systems</primary>
749 <secondary>elements</secondary></indexterm>
750
751 <sgmltag class="attribute">OS</sgmltag> indicates the operating
752 system to which the element is applicable.
753 </para>
754 </listitem>
755 </varlistentry>
756 <varlistentry><term><sgmltag class="attribute">Remap</sgmltag></term>
757 <listitem>
758 <para>
759 <indexterm><primary>Remap attribute</primary></indexterm>
760 <indexterm><primary>markup</primary>
761 <secondary>previous schemes, identifying</secondary></indexterm>
762
763 <sgmltag class="attribute">Remap</sgmltag> contains an element
764 name or similar semantic identifier assigned to the content in a
765 previous markup scheme.</para>
766 </listitem>
767 </varlistentry>
768 <varlistentry><term><sgmltag class="attribute">Role</sgmltag></term>
769 <listitem>
770 <para>
771 <indexterm><primary>Role attribute</primary></indexterm>
772 <indexterm><primary>elements</primary>
773 <secondary>classifying or subclassifying</secondary></indexterm>
774 <indexterm><primary>parameter entities</primary>
775 <secondary>Role attribute</secondary></indexterm>
776
777 <sgmltag class="attribute">Role</sgmltag> contains a string used
778 to classify or subclassify an element.</para>
779 <para>While Role is a common attribute in the sense that it occurs on
780 almost all elements, it is not part of either of the common attributes
781 parameter entities (<sgmltag class="paramentity">common.attrib</sgmltag> or <sgmltag class="paramentity">idreq.common.attrib</sgmltag>). It is
782 parameterized differently because it is useful to be able to subclass
783 <sgmltag class="attribute">Role</sgmltag> independently on different
784 elements.</para>
785 </listitem>
786 </varlistentry>
787 <varlistentry><term><sgmltag class="attribute">Revision</sgmltag></term>
788 <listitem>
789 <para>
790 <indexterm><primary>Revision attribute</primary></indexterm>
791
792 <sgmltag class="attribute">Revision</sgmltag> indicates the
793 editorial revision to which the element belongs.
794 </para>
795 </listitem>
796 </varlistentry>
797 <varlistentry><term><sgmltag class="attribute">RevisionFlag</sgmltag></term>
798 <listitem>
799 <para>
800 <indexterm><primary>RevisionFlag attribute</primary></indexterm>
801 <indexterm><primary>versions</primary>
802 <secondary>revision control, documents</secondary></indexterm>
803
804 <sgmltag class="attribute">RevisionFlag</sgmltag> indicates the
805 revision status of element; the default is that the element hasn't
806 been revised. <sgmltag class="attribute">RevisionFlag</sgmltag> is
807 intended only for simple revision management: to track the entire
808 history of a document use a proper revision control system. Use
809 <sgmltag class="attribute">RevisionFlag</sgmltag> for indicating
810 changes from one version to the next, no more.</para>
811 </listitem>
812 </varlistentry>
813 <varlistentry><term><sgmltag class="attribute">Security</sgmltag></term>
814 <listitem>
815 <para revision="4.0">
816 <indexterm><primary>Security attribute</primary></indexterm>
817
818 <sgmltag class="attribute">Security</sgmltag> identifies something about
819 the security level associated with the element to which it applies.
820 </para>
821 </listitem>
822 </varlistentry>
823 <varlistentry><term><sgmltag class="attribute">UserLevel</sgmltag></term>
824 <listitem>
825 <para>
826 <indexterm><primary>UserLevel attribute</primary></indexterm>
827 <indexterm><primary>experience levels (users)</primary></indexterm>
828
829 <sgmltag class="attribute">UserLevel</sgmltag> indicates the
830 level of user experience to which element applies.
831 </para>
832 </listitem>
833 </varlistentry>
834 <varlistentry><term><sgmltag class="attribute">Vendor</sgmltag></term>
835 <listitem>
836 <para>
837 <indexterm><primary>Vendor attribute</primary></indexterm>
838 <indexterm><primary>computer vendors</primary></indexterm>
839
840 <sgmltag class="attribute">Vendor</sgmltag> indicates the
841 computer vendor to which the element applies.</para>
842 </listitem>
843 </varlistentry>
844 <varlistentry><term><sgmltag class="attribute">XrefLabel</sgmltag></term>
845 <listitem>
846 <para>
847 <indexterm><primary>XrefLabel attribute</primary></indexterm>
848 <indexterm><primary>cross references</primary>
849 <secondary>XrefLabel attribute</secondary></indexterm>
850 <sgmltag class="attribute">XrefLabel</sgmltag> holds text to be
851 used when a cross reference (<sgmltag>XRef</sgmltag>) is made to the
852 element.</para>
853 </listitem>
854 </varlistentry>
855 </variablelist>
856 </sect1>
857 <sect1>
858 <title>Attribute Types</title>
859 <para>
860 <indexterm><primary>types (attributes)</primary></indexterm>
861 <indexterm><primary>attributes</primary>
862 <secondary>types</secondary></indexterm>
863
864 &SGML; offers a small selection of attribute types. (&XML;
865 offers a subset of these.) For convenience, a brief description of
866 each of these types is provided here:</para>
867 <variablelist>
868 <varlistentry id="AT.CDATA"><term><sgmltag class="attribute">&AT.CDATA;</sgmltag></term>
869 <listitem>
870 <para>
871 <indexterm><primary>characters</primary>
872 <secondary>strings (CDATA attribute)</secondary></indexterm>
873 <indexterm><primary>strings (characters)</primary></indexterm>
874 <indexterm><primary>CDATA</primary></indexterm>
875
876 A string of characters.</para>
877 </listitem>
878 </varlistentry>
879 <varlistentry id="AT.NUMBER"><term><sgmltag class="attribute">&AT.NUMBER;</sgmltag></term>
880 <listitem>
881 <para>
882 <indexterm><primary>numbers (attributes)</primary></indexterm>
883 <indexterm><primary>hyphens (-), numbers</primary></indexterm>
884 <indexterm><primary>decimal points (.), numbers</primary></indexterm>
885
886 A number. Numbers must begin with a hyphen or digit and can include
887 the decimal point.</para>
888 </listitem>
889 </varlistentry>
890 <varlistentry id="AT.NMTOKEN"><term><sgmltag class="attribute">&AT.NMTOKEN;</sgmltag></term>
891 <listitem>
892 <para>
893 <indexterm><primary>NMTOKEN(S) attribute</primary></indexterm>
894 <indexterm><primary>names</primary>
895 <secondary>NMTOKEN attribute</secondary></indexterm>
896 <indexterm><primary>attributes</primary>
897 <secondary>names</secondary></indexterm>
898 <indexterm><primary>characters</primary>
899 <secondary>names</secondary></indexterm>
900
901
902 A sequence of name characters (letters, digits, hyphens, and
903 periods). This differs from a <sgmltag class="attribute">&AT.CDATA;</sgmltag> attribute because it cannot
904 contain spaces, punctuation, or other non-name characters.</para>
905 </listitem>
906 </varlistentry>
907 <varlistentry id="AT.NMTOKENS"><term><sgmltag class="attribute">&AT.NMTOKENS;</sgmltag></term>
908 <listitem>
909 <para>A sequence of one or more space-delimited <sgmltag class="attribute">&AT.NMTOKEN;</sgmltag> values.</para>
910 </listitem>
911 </varlistentry>
912 <varlistentry id="AT.NUTOKEN"><term><sgmltag class="attribute">&AT.NUTOKEN;</sgmltag></term>
913 <listitem>
914 <para>
915 <indexterm><primary>NUTOKEN attribute</primary></indexterm>
916 <indexterm><primary>digits</primary>
917 <secondary>numbers</secondary></indexterm>
918 <indexterm><primary>decimal points (.), numbers</primary></indexterm>
919
920 A sequence of number characters (digits, hyphens, and periods).
921 This differs from a <sgmltag class="attribute">&AT.NUMBER;</sgmltag>
922 field because it is not required to begin with a digit or a
923 hyphen.</para>
924 </listitem>
925 </varlistentry>
926 <varlistentry id="AT.ENTITY"><term><sgmltag class="attribute">&AT.ENTITY;</sgmltag></term>
927 <listitem>
928 <para>
929 <indexterm><primary>ENTITY attribute</primary></indexterm>
930
931 An entity name. The value of an <sgmltag class="attribute">&AT.ENTITY;</sgmltag> attribute must be the name of
932 a declared entity.</para>
933 </listitem>
934 </varlistentry>
935 <varlistentry id="AT.NAME"><term><sgmltag class="attribute">&AT.NAME;</sgmltag></term>
936 <listitem>
937 <para>
938 <indexterm><primary>NAME attribute</primary></indexterm>
939 <indexterm><primary>digits</primary>
940 <secondary>names</secondary></indexterm>
941 <indexterm><primary>periods (.), names</primary></indexterm>
942 <indexterm><primary>NAMES attribute</primary></indexterm>
943
944 A name. A name must begin with a letter and can consist of
945 letters, digits, hyphens, and periods.</para>
946 </listitem>
947 </varlistentry>
948 <varlistentry id="AT.NAMES"><term><sgmltag class="attribute">&AT.NAMES;</sgmltag></term>
949 <listitem>
950 <para>A sequence of one or more space-delimited <sgmltag class="attribute">&AT.NAME;</sgmltag> values.</para>
951 </listitem>
952 </varlistentry>
953 <varlistentry id="AT.ID"><term><sgmltag class="attribute">&AT.ID;</sgmltag></term>
954 <listitem>
955 <para>
956 <indexterm><primary>ID attribute</primary></indexterm>
957 <indexterm><primary>uniqueness</primary>
958 <secondary>ID attributes</secondary></indexterm>
959
960 An <acronym>ID</acronym>. <acronym>ID</acronym>s are names that
961 must be globally unique within the document. The <sgmltag class="attribute">&AT.ID;</sgmltag> attribute declares the
962 <acronym>ID</acronym>.</para>
963 </listitem>
964 </varlistentry>
965 <varlistentry id="AT.IDREF"><term><sgmltag class="attribute">&AT.IDREF;</sgmltag></term>
966 <listitem>
967 <para>
968 <indexterm><primary>IDREF attribute</primary></indexterm>
969
970 An single <acronym>ID</acronym>. <acronym>ID</acronym>s are
971 names that must be globally unique within the document. The value of
972 an <sgmltag class="attribute">&AT.IDREF;</sgmltag> attribute must be
973 the name of an <sgmltag class="attribute">&AT.ID;</sgmltag> attribute
974 defined in the document.</para>
975 </listitem>
976 </varlistentry>
977 <varlistentry id="AT.IDREFS"><term><sgmltag class="attribute">&AT.IDREFS;</sgmltag></term>
978 <listitem>
979 <para>
980 <indexterm><primary>IDREFS attribute</primary></indexterm>
981
982 A sequence of one or more space-delimited <sgmltag class="attribute">&AT.ID;</sgmltag> values.
983 <indexterm startref="elementsref" class='endofrange'/>
984 </para>
985 </listitem>
986 </varlistentry>
987 </variablelist>
988 </sect1><?Pub Caret1?>
989 </partintro>
990