Debian Codegraph @

share/catalogue/www.w3.org/MarkUp/DTD/xhtml1-strict.dtd

raw
1 <!--
2 Extensible HTML version 1.0 Strict DTD
3
4 This is the same as HTML 4 Strict except for
5 changes due to the differences between XML and SGML.
6
7 Namespace = http://www.w3.org/1999/xhtml
8
9 For further information, see: http://www.w3.org/TR/xhtml1
10
11 Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
12 All Rights Reserved.
13
14 This DTD module is identified by the PUBLIC and SYSTEM identifiers:
15
16 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
17 SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
18
19 $Revision: 1.27 $
20 $Date: 2009/09/16 14:20:19 $
21
22 -->
23
24 <!--================ Character mnemonic entities =========================-->
25
26 <!ENTITY % HTMLlat1 PUBLIC
27 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
28 "xhtml-lat1.ent">
29 %HTMLlat1;
30
31 <!ENTITY % HTMLsymbol PUBLIC
32 "-//W3C//ENTITIES Symbols for XHTML//EN"
33 "xhtml-symbol.ent">
34 %HTMLsymbol;
35
36 <!ENTITY % HTMLspecial PUBLIC
37 "-//W3C//ENTITIES Special for XHTML//EN"
38 "xhtml-special.ent">
39 %HTMLspecial;
40
41 <!--================== Imported Names ====================================-->
42
43 <!ENTITY % ContentType "CDATA">
44 <!-- media type, as per [RFC2045] -->
45
46 <!ENTITY % ContentTypes "CDATA">
47 <!-- comma-separated list of media types, as per [RFC2045] -->
48
49 <!ENTITY % Charset "CDATA">
50 <!-- a character encoding, as per [RFC2045] -->
51
52 <!ENTITY % Charsets "CDATA">
53 <!-- a space separated list of character encodings, as per [RFC2045] -->
54
55 <!ENTITY % LanguageCode "NMTOKEN">
56 <!-- a language code, as per [RFC3066] -->
57
58 <!ENTITY % Character "CDATA">
59 <!-- a single character, as per section 2.2 of [XML] -->
60
61 <!ENTITY % Number "CDATA">
62 <!-- one or more digits -->
63
64 <!ENTITY % LinkTypes "CDATA">
65 <!-- space-separated list of link types -->
66
67 <!ENTITY % MediaDesc "CDATA">
68 <!-- single or comma-separated list of media descriptors -->
69
70 <!ENTITY % URI "CDATA">
71 <!-- a Uniform Resource Identifier, see [RFC2396] -->
72
73 <!ENTITY % UriList "CDATA">
74 <!-- a space separated list of Uniform Resource Identifiers -->
75
76 <!ENTITY % Datetime "CDATA">
77 <!-- date and time information. ISO date format -->
78
79 <!ENTITY % Script "CDATA">
80 <!-- script expression -->
81
82 <!ENTITY % StyleSheet "CDATA">
83 <!-- style sheet data -->
84
85 <!ENTITY % Text "CDATA">
86 <!-- used for titles etc. -->
87
88 <!ENTITY % Length "CDATA">
89 <!-- nn for pixels or nn% for percentage length -->
90
91 <!ENTITY % MultiLength "CDATA">
92 <!-- pixel, percentage, or relative -->
93
94 <!ENTITY % Pixels "CDATA">
95 <!-- integer representing length in pixels -->
96
97 <!-- these are used for image maps -->
98
99 <!ENTITY % Shape "(rect|circle|poly|default)">
100
101 <!ENTITY % Coords "CDATA">
102 <!-- comma separated list of lengths -->
103
104 <!--=================== Generic Attributes ===============================-->
105
106 <!-- core attributes common to most elements
107 id document-wide unique id
108 class space separated list of classes
109 style associated style info
110 title advisory title/amplification
111 -->
112 <!ENTITY % coreattrs
113 "id ID #IMPLIED
114 class CDATA #IMPLIED
115 style %StyleSheet; #IMPLIED
116 title %Text; #IMPLIED"
117 >
118
119 <!-- internationalization attributes
120 lang language code (backwards compatible)
121 xml:lang language code (as per XML 1.0 spec)
122 dir direction for weak/neutral text
123 -->
124 <!ENTITY % i18n
125 "lang %LanguageCode; #IMPLIED
126 xml:lang %LanguageCode; #IMPLIED
127 dir (ltr|rtl) #IMPLIED"
128 >
129
130 <!-- attributes for common UI events
131 onclick a pointer button was clicked
132 ondblclick a pointer button was double clicked
133 onmousedown a pointer button was pressed down
134 onmouseup a pointer button was released
135 onmouseover a pointer was moved over an element
136 onmousemove a pointer was moved onto the element
137 onmouseout a pointer was moved away from the element
138 onkeypress a key was pressed and released
139 onkeydown a key was pressed down
140 onkeyup a key was released
141 -->
142 <!ENTITY % events
143 "onclick %Script; #IMPLIED
144 ondblclick %Script; #IMPLIED
145 onmousedown %Script; #IMPLIED
146 onmouseup %Script; #IMPLIED
147 onmouseover %Script; #IMPLIED
148 onmousemove %Script; #IMPLIED
149 onmouseout %Script; #IMPLIED
150 onkeypress %Script; #IMPLIED
151 onkeydown %Script; #IMPLIED
152 onkeyup %Script; #IMPLIED"
153 >
154
155 <!-- attributes for elements that can get the focus
156 accesskey accessibility key character
157 tabindex position in tabbing order
158 onfocus the element got the focus
159 onblur the element lost the focus
160 -->
161 <!ENTITY % focus
162 "accesskey %Character; #IMPLIED
163 tabindex %Number; #IMPLIED
164 onfocus %Script; #IMPLIED
165 onblur %Script; #IMPLIED"
166 >
167
168 <!ENTITY % attrs "%coreattrs; %i18n; %events;">
169
170 <!--=================== Text Elements ====================================-->
171
172 <!ENTITY % special.pre
173 "br | span | bdo | map">
174
175
176 <!ENTITY % special
177 "%special.pre; | object | img ">
178
179 <!ENTITY % fontstyle "tt | i | b | big | small ">
180
181 <!ENTITY % phrase "em | strong | dfn | code | q |
182 samp | kbd | var | cite | abbr | acronym | sub | sup ">
183
184 <!ENTITY % inline.forms "input | select | textarea | label | button">
185
186 <!-- these can occur at block or inline level -->
187 <!ENTITY % misc.inline "ins | del | script">
188
189 <!-- these can only occur at block level -->
190 <!ENTITY % misc "noscript | %misc.inline;">
191
192 <!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;">
193
194 <!-- %Inline; covers inline or "text-level" elements -->
195 <!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*">
196
197 <!--================== Block level elements ==============================-->
198
199 <!ENTITY % heading "h1|h2|h3|h4|h5|h6">
200 <!ENTITY % lists "ul | ol | dl">
201 <!ENTITY % blocktext "pre | hr | blockquote | address">
202
203 <!ENTITY % block
204 "p | %heading; | div | %lists; | %blocktext; | fieldset | table">
205
206 <!ENTITY % Block "(%block; | form | %misc;)*">
207
208 <!-- %Flow; mixes block and inline and is used for list items etc. -->
209 <!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">
210
211 <!--================== Content models for exclusions =====================-->
212
213 <!-- a elements use %Inline; excluding a -->
214
215 <!ENTITY % a.content
216 "(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc.inline;)*">
217
218 <!-- pre uses %Inline excluding big, small, sub or sup -->
219
220 <!ENTITY % pre.content
221 "(#PCDATA | a | %fontstyle; | %phrase; | %special.pre; | %misc.inline;
222 | %inline.forms;)*">
223
224 <!-- form uses %Block; excluding form -->
225
226 <!ENTITY % form.content "(%block; | %misc;)*">
227
228 <!-- button uses %Flow; but excludes a, form and form controls -->
229
230 <!ENTITY % button.content
231 "(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
232 table | %special; | %fontstyle; | %phrase; | %misc;)*">
233
234 <!--================ Document Structure ==================================-->
235
236 <!-- the namespace URI designates the document profile -->
237
238 <!ELEMENT html (head, body)>
239 <!ATTLIST html
240 %i18n;
241 id ID #IMPLIED
242 xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml'
243 >
244
245 <!--================ Document Head =======================================-->
246
247 <!ENTITY % head.misc "(script|style|meta|link|object)*">
248
249 <!-- content model is %head.misc; combined with a single
250 title and an optional base element in any order -->
251
252 <!ELEMENT head (%head.misc;,
253 ((title, %head.misc;, (base, %head.misc;)?) |
254 (base, %head.misc;, (title, %head.misc;))))>
255
256 <!ATTLIST head
257 %i18n;
258 id ID #IMPLIED
259 profile %URI; #IMPLIED
260 >
261
262 <!-- The title element is not considered part of the flow of text.
263 It should be displayed, for example as the page header or
264 window title. Exactly one title is required per document.
265 -->
266 <!ELEMENT title (#PCDATA)>
267 <!ATTLIST title
268 %i18n;
269 id ID #IMPLIED
270 >
271
272 <!-- document base URI -->
273
274 <!ELEMENT base EMPTY>
275 <!ATTLIST base
276 href %URI; #REQUIRED
277 id ID #IMPLIED
278 >
279
280 <!-- generic metainformation -->
281 <!ELEMENT meta EMPTY>
282 <!ATTLIST meta
283 %i18n;
284 id ID #IMPLIED
285 http-equiv CDATA #IMPLIED
286 name CDATA #IMPLIED
287 content CDATA #REQUIRED
288 scheme CDATA #IMPLIED
289 >
290
291 <!--
292 Relationship values can be used in principle:
293
294 a) for document specific toolbars/menus when used
295 with the link element in document head e.g.
296 start, contents, previous, next, index, end, help
297 b) to link to a separate style sheet (rel="stylesheet")
298 c) to make a link to a script (rel="script")
299 d) by stylesheets to control how collections of
300 html nodes are rendered into printed documents
301 e) to make a link to a printable version of this document
302 e.g. a PostScript or PDF version (rel="alternate" media="print")
303 -->
304
305 <!ELEMENT link EMPTY>
306 <!ATTLIST link
307 %attrs;
308 charset %Charset; #IMPLIED
309 href %URI; #IMPLIED
310 hreflang %LanguageCode; #IMPLIED
311 type %ContentType; #IMPLIED
312 rel %LinkTypes; #IMPLIED
313 rev %LinkTypes; #IMPLIED
314 media %MediaDesc; #IMPLIED
315 >
316
317 <!-- style info, which may include CDATA sections -->
318 <!ELEMENT style (#PCDATA)>
319 <!ATTLIST style
320 %i18n;
321 id ID #IMPLIED
322 type %ContentType; #REQUIRED
323 media %MediaDesc; #IMPLIED
324 title %Text; #IMPLIED
325 xml:space (preserve) #FIXED 'preserve'
326 >
327
328 <!-- script statements, which may include CDATA sections -->
329 <!ELEMENT script (#PCDATA)>
330 <!ATTLIST script
331 id ID #IMPLIED
332 charset %Charset; #IMPLIED
333 type %ContentType; #REQUIRED
334 src %URI; #IMPLIED
335 defer (defer) #IMPLIED
336 xml:space (preserve) #FIXED 'preserve'
337 >
338
339 <!-- alternate content container for non script-based rendering -->
340
341 <!ELEMENT noscript %Block;>
342 <!ATTLIST noscript
343 %attrs;
344 >
345
346 <!--=================== Document Body ====================================-->
347
348 <!ELEMENT body %Block;>
349 <!ATTLIST body
350 %attrs;
351 onload %Script; #IMPLIED
352 onunload %Script; #IMPLIED
353 >
354
355 <!ELEMENT div %Flow;> <!-- generic language/style container -->
356 <!ATTLIST div
357 %attrs;
358 >
359
360 <!--=================== Paragraphs =======================================-->
361
362 <!ELEMENT p %Inline;>
363 <!ATTLIST p
364 %attrs;
365 >
366
367 <!--=================== Headings =========================================-->
368
369 <!--
370 There are six levels of headings from h1 (the most important)
371 to h6 (the least important).
372 -->
373
374 <!ELEMENT h1 %Inline;>
375 <!ATTLIST h1
376 %attrs;
377 >
378
379 <!ELEMENT h2 %Inline;>
380 <!ATTLIST h2
381 %attrs;
382 >
383
384 <!ELEMENT h3 %Inline;>
385 <!ATTLIST h3
386 %attrs;
387 >
388
389 <!ELEMENT h4 %Inline;>
390 <!ATTLIST h4
391 %attrs;
392 >
393
394 <!ELEMENT h5 %Inline;>
395 <!ATTLIST h5
396 %attrs;
397 >
398
399 <!ELEMENT h6 %Inline;>
400 <!ATTLIST h6
401 %attrs;
402 >
403
404 <!--=================== Lists ============================================-->
405
406 <!-- Unordered list -->
407
408 <!ELEMENT ul (li)+>
409 <!ATTLIST ul
410 %attrs;
411 >
412
413 <!-- Ordered (numbered) list -->
414
415 <!ELEMENT ol (li)+>
416 <!ATTLIST ol
417 %attrs;
418 >
419
420 <!-- list item -->
421
422 <!ELEMENT li %Flow;>
423 <!ATTLIST li
424 %attrs;
425 >
426
427 <!-- definition lists - dt for term, dd for its definition -->
428
429 <!ELEMENT dl (dt|dd)+>
430 <!ATTLIST dl
431 %attrs;
432 >
433
434 <!ELEMENT dt %Inline;>
435 <!ATTLIST dt
436 %attrs;
437 >
438
439 <!ELEMENT dd %Flow;>
440 <!ATTLIST dd
441 %attrs;
442 >
443
444 <!--=================== Address ==========================================-->
445
446 <!-- information on author -->
447
448 <!ELEMENT address %Inline;>
449 <!ATTLIST address
450 %attrs;
451 >
452
453 <!--=================== Horizontal Rule ==================================-->
454
455 <!ELEMENT hr EMPTY>
456 <!ATTLIST hr
457 %attrs;
458 >
459
460 <!--=================== Preformatted Text ================================-->
461
462 <!-- content is %Inline; excluding "img|object|big|small|sub|sup" -->
463
464 <!ELEMENT pre %pre.content;>
465 <!ATTLIST pre
466 %attrs;
467 xml:space (preserve) #FIXED 'preserve'
468 >
469
470 <!--=================== Block-like Quotes ================================-->
471
472 <!ELEMENT blockquote %Block;>
473 <!ATTLIST blockquote
474 %attrs;
475 cite %URI; #IMPLIED
476 >
477
478 <!--=================== Inserted/Deleted Text ============================-->
479
480 <!--
481 ins/del are allowed in block and inline content, but its
482 inappropriate to include block content within an ins element
483 occurring in inline content.
484 -->
485 <!ELEMENT ins %Flow;>
486 <!ATTLIST ins
487 %attrs;
488 cite %URI; #IMPLIED
489 datetime %Datetime; #IMPLIED
490 >
491
492 <!ELEMENT del %Flow;>
493 <!ATTLIST del
494 %attrs;
495 cite %URI; #IMPLIED
496 datetime %Datetime; #IMPLIED
497 >
498
499 <!--================== The Anchor Element ================================-->
500
501 <!-- content is %Inline; except that anchors shouldn't be nested -->
502
503 <!ELEMENT a %a.content;>
504 <!ATTLIST a
505 %attrs;
506 %focus;
507 charset %Charset; #IMPLIED
508 type %ContentType; #IMPLIED
509 name NMTOKEN #IMPLIED
510 href %URI; #IMPLIED
511 hreflang %LanguageCode; #IMPLIED
512 rel %LinkTypes; #IMPLIED
513 rev %LinkTypes; #IMPLIED
514 shape %Shape; "rect"
515 coords %Coords; #IMPLIED
516 >
517
518 <!--===================== Inline Elements ================================-->
519
520 <!ELEMENT span %Inline;> <!-- generic language/style container -->
521 <!ATTLIST span
522 %attrs;
523 >
524
525 <!ELEMENT bdo %Inline;> <!-- I18N BiDi over-ride -->
526 <!ATTLIST bdo
527 %coreattrs;
528 %events;
529 lang %LanguageCode; #IMPLIED
530 xml:lang %LanguageCode; #IMPLIED
531 dir (ltr|rtl) #REQUIRED
532 >
533
534 <!ELEMENT br EMPTY> <!-- forced line break -->
535 <!ATTLIST br
536 %coreattrs;
537 >
538
539 <!ELEMENT em %Inline;> <!-- emphasis -->
540 <!ATTLIST em %attrs;>
541
542 <!ELEMENT strong %Inline;> <!-- strong emphasis -->
543 <!ATTLIST strong %attrs;>
544
545 <!ELEMENT dfn %Inline;> <!-- definitional -->
546 <!ATTLIST dfn %attrs;>
547
548 <!ELEMENT code %Inline;> <!-- program code -->
549 <!ATTLIST code %attrs;>
550
551 <!ELEMENT samp %Inline;> <!-- sample -->
552 <!ATTLIST samp %attrs;>
553
554 <!ELEMENT kbd %Inline;> <!-- something user would type -->
555 <!ATTLIST kbd %attrs;>
556
557 <!ELEMENT var %Inline;> <!-- variable -->
558 <!ATTLIST var %attrs;>
559
560 <!ELEMENT cite %Inline;> <!-- citation -->
561 <!ATTLIST cite %attrs;>
562
563 <!ELEMENT abbr %Inline;> <!-- abbreviation -->
564 <!ATTLIST abbr %attrs;>
565
566 <!ELEMENT acronym %Inline;> <!-- acronym -->
567 <!ATTLIST acronym %attrs;>
568
569 <!ELEMENT q %Inline;> <!-- inlined quote -->
570 <!ATTLIST q
571 %attrs;
572 cite %URI; #IMPLIED
573 >
574
575 <!ELEMENT sub %Inline;> <!-- subscript -->
576 <!ATTLIST sub %attrs;>
577
578 <!ELEMENT sup %Inline;> <!-- superscript -->
579 <!ATTLIST sup %attrs;>
580
581 <!ELEMENT tt %Inline;> <!-- fixed pitch font -->
582 <!ATTLIST tt %attrs;>
583
584 <!ELEMENT i %Inline;> <!-- italic font -->
585 <!ATTLIST i %attrs;>
586
587 <!ELEMENT b %Inline;> <!-- bold font -->
588 <!ATTLIST b %attrs;>
589
590 <!ELEMENT big %Inline;> <!-- bigger font -->
591 <!ATTLIST big %attrs;>
592
593 <!ELEMENT small %Inline;> <!-- smaller font -->
594 <!ATTLIST small %attrs;>
595
596 <!--==================== Object ======================================-->
597 <!--
598 object is used to embed objects as part of HTML pages.
599 param elements should precede other content. Parameters
600 can also be expressed as attribute/value pairs on the
601 object element itself when brevity is desired.
602 -->
603
604 <!ELEMENT object (#PCDATA | param | %block; | form | %inline; | %misc;)*>
605 <!ATTLIST object
606 %attrs;
607 declare (declare) #IMPLIED
608 classid %URI; #IMPLIED
609 codebase %URI; #IMPLIED
610 data %URI; #IMPLIED
611 type %ContentType; #IMPLIED
612 codetype %ContentType; #IMPLIED
613 archive %UriList; #IMPLIED
614 standby %Text; #IMPLIED
615 height %Length; #IMPLIED
616 width %Length; #IMPLIED
617 usemap %URI; #IMPLIED
618 name NMTOKEN #IMPLIED
619 tabindex %Number; #IMPLIED
620 >
621
622 <!--
623 param is used to supply a named property value.
624 In XML it would seem natural to follow RDF and support an
625 abbreviated syntax where the param elements are replaced
626 by attribute value pairs on the object start tag.
627 -->
628 <!ELEMENT param EMPTY>
629 <!ATTLIST param
630 id ID #IMPLIED
631 name CDATA #IMPLIED
632 value CDATA #IMPLIED
633 valuetype (data|ref|object) "data"
634 type %ContentType; #IMPLIED
635 >
636
637 <!--=================== Images ===========================================-->
638
639 <!--
640 To avoid accessibility problems for people who aren't
641 able to see the image, you should provide a text
642 description using the alt and longdesc attributes.
643 In addition, avoid the use of server-side image maps.
644 Note that in this DTD there is no name attribute. That
645 is only available in the transitional and frameset DTD.
646 -->
647
648 <!ELEMENT img EMPTY>
649 <!ATTLIST img
650 %attrs;
651 src %URI; #REQUIRED
652 alt %Text; #REQUIRED
653 longdesc %URI; #IMPLIED
654 name CDATA #IMPLIED
655 height %Length; #IMPLIED
656 width %Length; #IMPLIED
657 usemap %URI; #IMPLIED
658 ismap (ismap) #IMPLIED
659 >
660
661 <!-- usemap points to a map element which may be in this document
662 or an external document, although the latter is not widely supported -->
663
664 <!--================== Client-side image maps ============================-->
665
666 <!-- These can be placed in the same document or grouped in a
667 separate document although this isn't yet widely supported -->
668
669 <!ELEMENT map ((%block; | form | %misc;)+ | area+)>
670 <!ATTLIST map
671 %i18n;
672 %events;
673 id ID #REQUIRED
674 class CDATA #IMPLIED
675 style %StyleSheet; #IMPLIED
676 title %Text; #IMPLIED
677 name NMTOKEN #IMPLIED
678 >
679
680 <!ELEMENT area EMPTY>
681 <!ATTLIST area
682 %attrs;
683 %focus;
684 shape %Shape; "rect"
685 coords %Coords; #IMPLIED
686 href %URI; #IMPLIED
687 nohref (nohref) #IMPLIED
688 alt %Text; #REQUIRED
689 >
690
691 <!--================ Forms ===============================================-->
692 <!ELEMENT form %form.content;> <!-- forms shouldn't be nested -->
693
694 <!ATTLIST form
695 %attrs;
696 action %URI; #REQUIRED
697 method (get|post) "get"
698 name CDATA #IMPLIED
699 enctype %ContentType; "application/x-www-form-urlencoded"
700 onsubmit %Script; #IMPLIED
701 onreset %Script; #IMPLIED
702 accept %ContentTypes; #IMPLIED
703 accept-charset %Charsets; #IMPLIED
704 >
705
706 <!--
707 Each label must not contain more than ONE field
708 Label elements shouldn't be nested.
709 -->
710 <!ELEMENT label %Inline;>
711 <!ATTLIST label
712 %attrs;
713 for IDREF #IMPLIED
714 accesskey %Character; #IMPLIED
715 onfocus %Script; #IMPLIED
716 onblur %Script; #IMPLIED
717 >
718
719 <!ENTITY % InputType
720 "(text | password | checkbox |
721 radio | submit | reset |
722 file | hidden | image | button)"
723 >
724
725 <!-- the name attribute is required for all but submit & reset -->
726
727 <!ELEMENT input EMPTY> <!-- form control -->
728 <!ATTLIST input
729 %attrs;
730 %focus;
731 type %InputType; "text"
732 name CDATA #IMPLIED
733 value CDATA #IMPLIED
734 checked (checked) #IMPLIED
735 disabled (disabled) #IMPLIED
736 readonly (readonly) #IMPLIED
737 size CDATA #IMPLIED
738 maxlength %Number; #IMPLIED
739 src %URI; #IMPLIED
740 alt CDATA #IMPLIED
741 usemap %URI; #IMPLIED
742 ismap (ismap) #IMPLIED
743 onselect %Script; #IMPLIED
744 onchange %Script; #IMPLIED
745 accept %ContentTypes; #IMPLIED
746 >
747
748 <!ELEMENT select (optgroup|option)+> <!-- option selector -->
749 <!ATTLIST select
750 %attrs;
751 name CDATA #IMPLIED
752 size %Number; #IMPLIED
753 multiple (multiple) #IMPLIED
754 disabled (disabled) #IMPLIED
755 tabindex %Number; #IMPLIED
756 onfocus %Script; #IMPLIED
757 onblur %Script; #IMPLIED
758 onchange %Script; #IMPLIED
759 >
760
761 <!ELEMENT optgroup (option)+> <!-- option group -->
762 <!ATTLIST optgroup
763 %attrs;
764 disabled (disabled) #IMPLIED
765 label %Text; #REQUIRED
766 >
767
768 <!ELEMENT option (#PCDATA)> <!-- selectable choice -->
769 <!ATTLIST option
770 %attrs;
771 selected (selected) #IMPLIED
772 disabled (disabled) #IMPLIED
773 label %Text; #IMPLIED
774 value CDATA #IMPLIED
775 >
776
777 <!ELEMENT textarea (#PCDATA)> <!-- multi-line text field -->
778 <!ATTLIST textarea
779 %attrs;
780 %focus;
781 name CDATA #IMPLIED
782 rows %Number; #REQUIRED
783 cols %Number; #REQUIRED
784 disabled (disabled) #IMPLIED
785 readonly (readonly) #IMPLIED
786 onselect %Script; #IMPLIED
787 onchange %Script; #IMPLIED
788 >
789
790 <!--
791 The fieldset element is used to group form fields.
792 Only one legend element should occur in the content
793 and if present should only be preceded by whitespace.
794 -->
795 <!ELEMENT fieldset (#PCDATA | legend | %block; | form | %inline; | %misc;)*>
796 <!ATTLIST fieldset
797 %attrs;
798 >
799
800 <!ELEMENT legend %Inline;> <!-- fieldset label -->
801 <!ATTLIST legend
802 %attrs;
803 accesskey %Character; #IMPLIED
804 >
805
806 <!--
807 Content is %Flow; excluding a, form and form controls
808 -->
809 <!ELEMENT button %button.content;> <!-- push button -->
810 <!ATTLIST button
811 %attrs;
812 %focus;
813 name CDATA #IMPLIED
814 value CDATA #IMPLIED
815 type (button|submit|reset) "submit"
816 disabled (disabled) #IMPLIED
817 >
818
819 <!--======================= Tables =======================================-->
820
821 <!-- Derived from IETF HTML table standard, see [RFC1942] -->
822
823 <!--
824 The border attribute sets the thickness of the frame around the
825 table. The default units are screen pixels.
826
827 The frame attribute specifies which parts of the frame around
828 the table should be rendered. The values are not the same as
829 CALS to avoid a name clash with the valign attribute.
830 -->
831 <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
832
833 <!--
834 The rules attribute defines which rules to draw between cells:
835
836 If rules is absent then assume:
837 "none" if border is absent or border="0" otherwise "all"
838 -->
839
840 <!ENTITY % TRules "(none | groups | rows | cols | all)">
841
842 <!-- horizontal alignment attributes for cell contents
843
844 char alignment char, e.g. char=':'
845 charoff offset for alignment char
846 -->
847 <!ENTITY % cellhalign
848 "align (left|center|right|justify|char) #IMPLIED
849 char %Character; #IMPLIED
850 charoff %Length; #IMPLIED"
851 >
852
853 <!-- vertical alignment attributes for cell contents -->
854 <!ENTITY % cellvalign
855 "valign (top|middle|bottom|baseline) #IMPLIED"
856 >
857
858 <!ELEMENT table
859 (caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))>
860 <!ELEMENT caption %Inline;>
861 <!ELEMENT thead (tr)+>
862 <!ELEMENT tfoot (tr)+>
863 <!ELEMENT tbody (tr)+>
864 <!ELEMENT colgroup (col)*>
865 <!ELEMENT col EMPTY>
866 <!ELEMENT tr (th|td)+>
867 <!ELEMENT th %Flow;>
868 <!ELEMENT td %Flow;>
869
870 <!ATTLIST table
871 %attrs;
872 summary %Text; #IMPLIED
873 width %Length; #IMPLIED
874 border %Pixels; #IMPLIED
875 frame %TFrame; #IMPLIED
876 rules %TRules; #IMPLIED
877 cellspacing %Length; #IMPLIED
878 cellpadding %Length; #IMPLIED
879 >
880
881 <!ATTLIST caption
882 %attrs;
883 >
884
885 <!--
886 colgroup groups a set of col elements. It allows you to group
887 several semantically related columns together.
888 -->
889 <!ATTLIST colgroup
890 %attrs;
891 span %Number; "1"
892 width %MultiLength; #IMPLIED
893 %cellhalign;
894 %cellvalign;
895 >
896
897 <!--
898 col elements define the alignment properties for cells in
899 one or more columns.
900
901 The width attribute specifies the width of the columns, e.g.
902
903 width=64 width in screen pixels
904 width=0.5* relative width of 0.5
905
906 The span attribute causes the attributes of one
907 col element to apply to more than one column.
908 -->
909 <!ATTLIST col
910 %attrs;
911 span %Number; "1"
912 width %MultiLength; #IMPLIED
913 %cellhalign;
914 %cellvalign;
915 >
916
917 <!--
918 Use thead to duplicate headers when breaking table
919 across page boundaries, or for static headers when
920 tbody sections are rendered in scrolling panel.
921
922 Use tfoot to duplicate footers when breaking table
923 across page boundaries, or for static footers when
924 tbody sections are rendered in scrolling panel.
925
926 Use multiple tbody sections when rules are needed
927 between groups of table rows.
928 -->
929 <!ATTLIST thead
930 %attrs;
931 %cellhalign;
932 %cellvalign;
933 >
934
935 <!ATTLIST tfoot
936 %attrs;
937 %cellhalign;
938 %cellvalign;
939 >
940
941 <!ATTLIST tbody
942 %attrs;
943 %cellhalign;
944 %cellvalign;
945 >
946
947 <!ATTLIST tr
948 %attrs;
949 %cellhalign;
950 %cellvalign;
951 >
952
953
954 <!-- Scope is simpler than headers attribute for common tables -->
955 <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
956
957 <!-- th is for headers, td for data and for cells acting as both -->
958
959 <!ATTLIST th
960 %attrs;
961 abbr %Text; #IMPLIED
962 axis CDATA #IMPLIED
963 headers IDREFS #IMPLIED
964 scope %Scope; #IMPLIED
965 rowspan %Number; "1"
966 colspan %Number; "1"
967 %cellhalign;
968 %cellvalign;
969 >
970
971 <!ATTLIST td
972 %attrs;
973 abbr %Text; #IMPLIED
974 axis CDATA #IMPLIED
975 headers IDREFS #IMPLIED
976 scope %Scope; #IMPLIED
977 rowspan %Number; "1"
978 colspan %Number; "1"
979 %cellhalign;
980 %cellvalign;
981 >
982