File: xsl-html40s.dtd

package info (click to toggle)
libxalan2-java 2.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,468 kB
  • ctags: 26,006
  • sloc: java: 175,784; xml: 28,073; sh: 164; jsp: 43; makefile: 43; sql: 6
file content (1520 lines) | stat: -rw-r--r-- 43,240 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 * Copyright 2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
<!-- 
     XSLT (WD-19990813) DTD and HTML 4.0 Strict (REC-HTML40-19980424) DTD
     This DTD defines a XSLT stylesheet with a result-ns of html

     Credits:
       Original XSLT DTD from W3C XSLT WD-19990813
       Original XML  DTD for HTML 4.0 Strict by
         TAMURA, Kent <kent@trl.ibm.co.jp>, for IBM's XML4J package
       Minor fixes to XSLT & HTML DTDs by 
         Scott Boag <scott_boag@lotus.com>
         Henrique M. Holschuh <henriqmh@dca.fee.unicamp.br>
       HTML/XSLT composite DTD by
         Henrique M. Holschuh <henriqmh@dca.fee.unicamp.br>

     Caveats: It is possible to generate invalid XSLT and HTML documents 
       using this DTD, as the result-ns elements (HTML) must allow all 
       possible xsl elements as content, and all result-ns elements had 
       to be relaxed on their element content rules.

     TODO:
       - A XSLT/XHTML1.0 Strict DTD to use instead of this one. Lowercase
         element names allow for better compression ratios, at least in
         English documents.
       - Update to HTML 4.01

     $Id: xsl-html40s.dtd 337935 2004-02-24 21:12:41Z minchau $
-->

<!-- Predefined XML (REC-XML-19980210) entities -->
<!ENTITY lt     "&#38;#60;">
<!ENTITY gt     "&#62;">
<!ENTITY amp    "&#38;#38;">
<!ENTITY apos   "&#39;">
<!ENTITY quot   "&#34;">

<!-- 
  Result elements allowed (inside xsl elements). These are actually
  all of the HTML40 Strict elements. 
-->

<!ENTITY % result-elements "
  | TT
  | I
  | B
  | BIG
  | SMALL
  | EM
  | STRONG
  | DFN
  | CODE
  | SAMP
  | KBD
  | VAR
  | CITE
  | ABBR
  | ACRONYM
  | SUP
  | SUB
  | SPAN
  | BDO
  | BR
  | BODY
  | ADDRESS
  | DIV
  | A
  | MAP
  | AREA
  | LINK
  | IMG
  | OBJECT
  | PARAM
  | HR
  | P
  | H1
  | H2
  | H3
  | H4
  | H5
  | H6
  | PRE
  | Q
  | BLOCKQUOTE
  | INS
  | DEL
  | DL
  | DT
  | DD
  | OL
  | UL
  | LI
  | FORM
  | LABEL
  | INPUT
  | SELECT
  | OPTGROUP
  | OPTION
  | TEXTAREA
  | FIELDSET
  | LEGEND
  | BUTTON
  | TABLE
  | CAPTION
  | THEAD
  | TFOOT
  | TBODY
  | COLGROUP
  | COL
  | TR
  | TH
  | TD
  | HEAD
  | TITLE
  | BASE
  | META
  | STYLE
  | SCRIPT
  | NOSCRIPT
  | HTML
">

<!-- begin XSLT DTD, patched -->

<!ENTITY % char-instructions "
 | xsl:apply-templates
 | xsl:call-template
 | xsl:apply-imports
 | xsl:for-each
 | xsl:value-of
 | xsl:copy-of
 | xsl:number
 | xsl:choose
 | xsl:if
 | xsl:text
 | xsl:copy
 | xsl:variable
 | xsl:message
">

<!ENTITY % instructions "
 %char-instructions;
 | xsl:processing-instruction
 | xsl:comment
 | xsl:element
 | xsl:attribute
">

<!ENTITY % char-template "
(#PCDATA
 %char-instructions;)*
">

<!ENTITY % template "
(#PCDATA
 %instructions;
 %result-elements;)*
">

<!-- Used for the type of an attribute value that is a URI reference.-->
<!ENTITY % URI "CDATA">

<!-- Used for the type of an attribute value that is a pattern.-->
<!ENTITY % pattern "CDATA">

<!-- Used for the type of an attribute value that is an
    attribute value template.-->
<!ENTITY % avt "CDATA">

<!-- Used for the type of an attribute value that is a QName; the prefix
    gets expanded by the XSLT processor. -->
<!ENTITY % qname "NMTOKEN">

<!-- Like qname but a whitespace-separated list of QNames. -->
<!ENTITY % qnames "NMTOKENS">

<!-- Used for the type of an attribute value that is an expression.-->
<!ENTITY % expr "CDATA">

<!-- Used for the type of an attribute value that consists
    of a single character.-->
<!ENTITY % char "CDATA">

<!-- Used for the type of an attribute value that is a priority. -->
<!ENTITY % priority "NMTOKEN">

<!ENTITY % space-att "xml:space (default|preserve) #IMPLIED">

<!-- This may be overridden to customize the set of elements allowed
at the top-level. -->

<!ENTITY % non-xsl-top-level "">

<!ENTITY % top-level "
(xsl:import*,
 (xsl:include
 | xsl:strip-space
 | xsl:preserve-space
 | xsl:output
 | xsl:key
 | xsl:locale
 | xsl:attribute-set
 | xsl:variable
 | xsl:param
 | xsl:template
 %non-xsl-top-level;)*)
">

<!-- added xmlns attribute suitable for this DTD -->
<!ENTITY % top-level-atts '
 extension-element-prefixes CDATA #IMPLIED
 id ID #IMPLIED
 xmlns:xsl CDATA #FIXED "http://www.w3.org/XSL/1999/Transform"
 xmlns CDATA #FIXED "http://www.w3.org/TR/REC-html40"
 %space-att;
'>

<!-- This entity is defined for use in the ATTLIST declaration
for result elements. -->

<!ENTITY % result-element-atts '
 xsl:extension-element-prefixes CDATA #IMPLIED
 xsl:use-attribute-sets %qnames; #IMPLIED
'>

<!ELEMENT xsl:stylesheet %top-level;>
<!ATTLIST xsl:stylesheet %top-level-atts;>

<!ELEMENT xsl:transform %top-level;>
<!ATTLIST xsl:transform %top-level-atts;>

<!ELEMENT xsl:import EMPTY>
<!ATTLIST xsl:import href %URI; #REQUIRED>

<!ELEMENT xsl:include EMPTY>
<!ATTLIST xsl:include href %URI; #REQUIRED>

<!ELEMENT xsl:strip-space EMPTY>
<!ATTLIST xsl:strip-space elements CDATA #REQUIRED>

<!ELEMENT xsl:preserve-space EMPTY>
<!ATTLIST xsl:preserve-space elements CDATA #REQUIRED>

<!ELEMENT xsl:output EMPTY>
<!ATTLIST xsl:output
 method %qname; #IMPLIED
 version NMTOKEN #IMPLIED
 encoding NMTOKEN #IMPLIED
 xml-declaration (yes|no) #IMPLIED
 standalone (yes|no) #IMPLIED
 doctype-public CDATA #IMPLIED
 doctype-system CDATA #IMPLIED
 cdata-section-elements %qnames; #IMPLIED
 indent (yes|no) #IMPLIED
 media-type CDATA #IMPLIED
>

<!ELEMENT xsl:key EMPTY>
<!ATTLIST xsl:key
 name %qname; #REQUIRED
 match %pattern; #REQUIRED
 use %expr; #REQUIRED
>

<!ELEMENT xsl:locale EMPTY>
<!ATTLIST xsl:locale
 name %qname; #IMPLIED
 decimal-separator %char; "."
 grouping-separator %char; ","
 infinity CDATA "&#x221E;"
 minus-sign %char; "-"
 NaN CDATA "&#xFFFD;"
 percent %char; "%"
 per-mille %char; "&#x2030;"
 zero-digit %char; "0"
 digit %char; "#"
 pattern-separator %char; ";"
>

<!ELEMENT xsl:template
(#PCDATA
 %instructions;
 %result-elements;
 | xsl:param)*
>

<!ATTLIST xsl:template
 match %pattern; #IMPLIED
 name %qname; #IMPLIED
 priority %priority; #IMPLIED
 mode %qname; #IMPLIED
 %space-att;
>

<!ELEMENT xsl:value-of EMPTY>
<!ATTLIST xsl:value-of
 select %expr; #REQUIRED
 disable-output-escaping (yes|no) "no"
>

<!ELEMENT xsl:copy-of EMPTY>
<!ATTLIST xsl:copy-of select %expr; #REQUIRED>

<!ELEMENT xsl:number EMPTY>
<!ATTLIST xsl:number
  level (single|multiple|any) "single"
  count %pattern; #IMPLIED
  from %pattern; #IMPLIED
  value %expr; #IMPLIED
  format %avt; '1'
  lang %avt; #IMPLIED
  letter-value %avt; #IMPLIED
  grouping-separator%avt; #IMPLIED
  grouping-size %avt; #IMPLIED
>

<!ELEMENT xsl:apply-templates (xsl:sort|xsl:with-param)*>
<!ATTLIST xsl:apply-templates
 select %expr; "node()"
 mode %qname; #IMPLIED
>

<!ELEMENT xsl:apply-imports EMPTY>

<!-- xsl:sort cannot occur after any other elements or
any non-whitespace character -->

<!ELEMENT xsl:for-each
(#PCDATA
 %instructions;
 %result-elements;
 | xsl:sort)*
>

<!ATTLIST xsl:for-each
 select %expr; #REQUIRED
 %space-att;
>

<!ELEMENT xsl:sort EMPTY>
<!ATTLIST xsl:sort
 select %expr; "."
 lang %avt; #IMPLIED
 data-type %avt; "text"
 order %avt; "ascending"
 case-order %avt; #IMPLIED
>

<!ELEMENT xsl:if %template;>
<!ATTLIST xsl:if
 test %expr; #REQUIRED
 %space-att;
>

<!ELEMENT xsl:choose (xsl:when+, xsl:otherwise?)>
<!ATTLIST xsl:choose %space-att;>

<!ELEMENT xsl:when %template;>
<!ATTLIST xsl:when
 test %expr; #REQUIRED
 %space-att;
>

<!ELEMENT xsl:otherwise %template;>
<!ATTLIST xsl:otherwise %space-att;>

<!ELEMENT xsl:attribute-set (xsl:attribute)*>
<!ATTLIST xsl:attribute-set
 name %qname; #REQUIRED
 use-attribute-sets %qnames; #IMPLIED
>

<!ELEMENT xsl:call-template (xsl:with-param)*>
<!ATTLIST xsl:call-template
 name %qname; #REQUIRED
>

<!ELEMENT xsl:with-param %template;>
<!ATTLIST xsl:with-param
 name %qname; #REQUIRED
 select %expr; #IMPLIED
>

<!ELEMENT xsl:variable %template;>
<!ATTLIST xsl:variable 
 name %qname; #REQUIRED
 select %expr; #IMPLIED
>

<!ELEMENT xsl:param %template;>
<!ATTLIST xsl:param 
 name %qname; #REQUIRED
 select %expr; #IMPLIED
>

<!ELEMENT xsl:text (#PCDATA)>
<!ATTLIST xsl:text
 disable-output-escaping (yes|no) "no"
>

<!ELEMENT xsl:processing-instruction %char-template;>
<!ATTLIST xsl:processing-instruction 
 name %avt; #REQUIRED
 %space-att;
>

<!ELEMENT xsl:element %template;>
<!ATTLIST xsl:element 
 name %avt; #REQUIRED
 namespace %avt; #IMPLIED
 use-attribute-sets %qnames; #IMPLIED
 %space-att;
>

<!ELEMENT xsl:attribute %char-template;>
<!ATTLIST xsl:attribute 
 name %avt; #REQUIRED
 namespace %avt; #IMPLIED
 %space-att;
>

<!ELEMENT xsl:comment %char-template;>
<!ATTLIST xsl:comment %space-att;>

<!ELEMENT xsl:copy %template;>
<!ATTLIST xsl:copy
 %space-att;
 use-attribute-sets %qnames; #IMPLIED
>

<!ELEMENT xsl:message %template;>
<!ATTLIST xsl:message %space-att;>

<!ELEMENT xsl:fallback %template;>
<!ATTLIST xsl:fallback %space-att;>



<!-- ######################################################################## -->
<!--   HTML 4.0 Strict DTD   (revised to allow for xsl content)               -->
<!--   Original DTD from XML4J package                                        -->
<!--   Original SGML to XML conversion by TAMURA, Kent for IBM's XML4J        -->

<!-- 
     Container for all xsl elements allowed inside result-elements elements,
     i.e.: all xsl elements which are valid where a result-element is valid,
     and therefore must be valid inside ALL non-empty HTML elements.

     You'll notice this does allow the user to create invalid XSL documents.

  xsl:sort, xsl:param, xsl:param-variable were not inluded because
  IMHO it is bad practice (and an error?) not to include them before 
  other siblings, especially result-ns ones.
-->

<!-- While the content should be simply %instructions; we cannot do that
     due to the first '|' in %instructions -->
<!ENTITY % xsl-valid-in-resultns "
  xsl:processing-instruction
  | xsl:comment
  | xsl:element
  | xsl:attribute
  %char-instructions;
">

<!-- Also, %result-element-atts; was added to the ATTLIST of all html
     elments -->

<!-- Revision: 23 1.3 docs/data/HTML40strict.xml.dtd, xml4jdocs, xml4j-jtcsv, xml4j_1_1_9  -->

<!--
    This is HTML 4.0 Strict DTD, which excludes the presentation 
    attributes and elements that W3C expects to phase out as 
    support for style sheets matures. Authors should use the Strict
    DTD when possible, but may use the Transitional DTD when support
    for presentation attribute and elements is required.
    
    HTML 4.0 includes mechanisms for style sheets, scripting,
    embedding objects, improved support for right to left and mixed
    direction text, and enhancements to forms for improved
    accessibility for people with disabilities.

          Draft: Date: 1998/07/06 17:50:32

          Authors:
              Dave Raggett <dsr@w3.org>
              Arnaud Le Hors <lehors@w3.org>
              Ian Jacobs <ij@w3.org>

    Further information about HTML 4.0 is available at:

        http://www.w3.org/TR/REC-html40
-->

<!--
    ================================================================
    Modified for XML 1.0 by:
	"TAMURA, Kent" <kent@trl.ibm.co.jp>

    o HTMLspecial, HTMLsymbol, HTMLlat1 aren't included in this DTD.
    o The `lang' attribute was renamed to `xml:lang'.


    Typical usage:

    <?xml version="1.0" encoding="..."?>
    <!DOCTYPE HTML SYSTEM ".../HTML40strict.xml.dtd">
    <HTML>
      <HEAD>
        ...
        <TITLE>...</TITLE>
        ...
      </HEAD>
      <BODY>
        ...
      </BODY>
    </HTML>

    Note: XML is case-sensitive.  So element names must be written
    in uppercase and attribute names must be written in lowercase.
    ================================================================
-->

<!--
    Typical usage:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
            "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html>
    <head>
    ...
    </head>
    <body>
    ...
    </body>
    </html>

    The URI used as a system identifier with the public identifier allows
    the user agent to download the DTD and entity sets as needed.

    The FPI for the Transitional HTML 4.0 DTD is:

        "-//W3C//DTD HTML 4.0 Transitional//EN"

    and its URI is:

        http://www.w3.org/TR/REC-html40/loose.dtd

    If you are writing a document that includes frames, use 
    the following FPI:

        "-//W3C//DTD HTML 4.0 Frameset//EN"

    with the URI:

        http://www.w3.org/TR/REC-html40/frameset.dtd

    The following URIs are supported in relation to HTML 4.0

    "http://www.w3.org/TR/REC-html40/strict.dtd" (Strict DTD)
    "http://www.w3.org/TR/REC-html40/loose.dtd" (Loose DTD)
    "http://www.w3.org/TR/REC-html40/frameset.dtd" (Frameset DTD)
    "http://www.w3.org/TR/REC-html40/HTMLlat1.ent" (Latin-1 entities)
    "http://www.w3.org/TR/REC-html40/HTMLsymbol.ent" (Symbol entities)
    "http://www.w3.org/TR/REC-html40/HTMLspecial.ent" (Special entities)

    These URIs point to the latest version of each file. To reference
    this specific revision use the following URIs:

    "http://www.w3.org/TR/REC-html40-971218/strict.dtd"
    "http://www.w3.org/TR/REC-html40-971218/loose.dtd"
    "http://www.w3.org/TR/REC-html40-971218/frameset.dtd"
    "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent"
    "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent"
    "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent"

-->

<!--=== for XML ===-->
<!ENTITY % Number "CDATA">
<!ENTITY % Name "NMTOKEN">


<!--================== Imported Names ====================================-->

<!ENTITY % ContentType "CDATA"
> <!-- media type, as per [RFC2045]
    -->

<!ENTITY % ContentTypes "CDATA"
> <!-- comma-separated list of media types, as per [RFC2045]
    -->

<!ENTITY % Charset "CDATA"
> <!-- a character encoding, as per [RFC2045]
    -->

<!ENTITY % Charsets "CDATA"
> <!-- a space separated list of character encodings, as per [RFC2045]
    -->

<!ENTITY % LanguageCode "NMTOKEN"
> <!-- a language code, as per [RFC1766]
    -->

<!ENTITY % Character "CDATA"
> <!-- a single character from [ISO10646] 
    -->

<!ENTITY % LinkTypes "CDATA"
> <!-- space-separated list of link types
    -->

<!ENTITY % MediaDesc "CDATA"
> <!-- single or comma-separated list of media descriptors
    -->

<!-- Defined elsewhere in this DTD
<!ENTITY % URI "CDATA"
> <! a Uniform Resource Identifier,
       see [URI]
    -->

<!ENTITY % Datetime "CDATA"><!-- date and time information. ISO date format -->


<!ENTITY % Script "CDATA"><!-- script expression -->

<!ENTITY % StyleSheet "CDATA"><!-- style sheet data -->



<!ENTITY % Text "CDATA">


<!-- Parameter Entities -->

<!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT"><!-- repeatable head elements -->
<!ENTITY % heading "H1|H2|H3|H4|H5|H6">
<!ENTITY % list "UL | OL">
<!ENTITY % preformatted "PRE">


<!--================ Character mnemonic entities =========================-->

<!--ENTITY % HTMLlat1 PUBLIC
   "-//W3C//ENTITIES Latin1//EN//HTML"
   "HTMLlat1.ent"-->
<!--   "http://www.w3.org/TR/REC-html40-971218/HTMLlat1.ent"-->
<!--%HTMLlat1;-->

<!--ENTITY % HTMLsymbol PUBLIC
   "-//W3C//ENTITIES Symbols//EN//HTML"
   "HTMLsymbol.ent"-->
<!--   "http://www.w3.org/TR/REC-html40-971218/HTMLsymbol.ent"-->
<!--%HTMLsymbol;-->

<!--ENTITY % HTMLspecial PUBLIC
   "-//W3C//ENTITIES Special//EN//HTML"
   "HTMLspecial.ent"-->
<!--   "http://www.w3.org/TR/REC-html40-971218/HTMLspecial.ent"-->
<!--%HTMLspecial;-->

<!-- We define these elsewhere in this mixed DTD
<!ENTITY quot "&#34;">
<!ENTITY amp  "&#38;">
<!ENTITY lt   "&#60;">
<!ENTITY gt   "&#62;">
-->

<!--=================== Generic Attributes ===============================-->

<!ENTITY % coreattrs
 "id          ID             #IMPLIED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED
  %result-element-atts;"
>

<!ENTITY % i18n
 "xml:lang    %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #IMPLIED"
  >

<!ENTITY % events
 "onclick     %Script;       #IMPLIED
  ondblclick  %Script;       #IMPLIED
  onmousedown %Script;       #IMPLIED
  onmouseup   %Script;       #IMPLIED
  onmouseover %Script;       #IMPLIED
  onmousemove %Script;       #IMPLIED
  onmouseout  %Script;       #IMPLIED
  onkeypress  %Script;       #IMPLIED
  onkeydown   %Script;       #IMPLIED
  onkeyup     %Script;       #IMPLIED"
  >

<!-- Reserved Feature Switch -->
<!ENTITY % HTML.Reserved "IGNORE">

<!-- The following attributes are reserved for possible future use -->
<![ %HTML.Reserved; [
<!ENTITY % reserved
 "datasrc     %URI;          #IMPLIED
  datafld     CDATA          #IMPLIED
  dataformatas (plaintext|html) plaintext"
  >
]]>

<!ENTITY % reserved "">

<!ENTITY % attrs "%coreattrs; %i18n; %events;">


<!--=================== Text Markup ======================================-->

<!ENTITY % fontstyle
 "TT | I | B | BIG | SMALL">

<!ENTITY % phrase "EM | STRONG | DFN | CODE |
                   SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >

<!ENTITY % special
   "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">
<!ENTITY % special-A
   "IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">

<!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">

<!-- %inline; covers inline or "text-level" elements -->
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">
<!ENTITY % inline-A "#PCDATA | %fontstyle; | %phrase; | %special-A; | %formctrl;">
<!ENTITY % inline-LABEL "#PCDATA | %fontstyle; | %phrase; | %special; | INPUT | SELECT | TEXTAREA | BUTTON">

<!--
<!ELEMENT (%fontstyle;|%phrase;)     (%inline;)*>
<!ATTLIST (%fontstyle;|%phrase;)
  %attrs;
  >-->
<!ELEMENT TT (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST TT %attrs;>
<!ELEMENT I (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST I %attrs;>
<!ELEMENT B (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST B %attrs;>
<!ELEMENT BIG (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST BIG %attrs;>
<!ELEMENT SMALL (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST SMALL %attrs;>
<!ELEMENT EM (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST EM %attrs;>
<!ELEMENT STRONG (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST STRONG %attrs;>
<!ELEMENT DFN (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST DFN %attrs;>
<!ELEMENT CODE (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST CODE %attrs;>
<!ELEMENT SAMP (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST SAMP %attrs;>
<!ELEMENT KBD (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST KBD %attrs;>
<!ELEMENT VAR (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST VAR %attrs;>
<!ELEMENT CITE (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST CITE %attrs;>
<!ELEMENT ABBR (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST ABBR %attrs;>
<!ELEMENT ACRONYM (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST ACRONYM %attrs;>


<!ELEMENT SUP (%inline; | %xsl-valid-in-resultns;)*><!-- subscript, superscript -->
<!ATTLIST SUP
  %attrs;
  >
<!ELEMENT SUB (%inline; | %xsl-valid-in-resultns;)*><!-- subscript, superscript -->
<!ATTLIST SUB
  %attrs;
  >

<!ELEMENT SPAN (%inline; | %xsl-valid-in-resultns;)*><!-- generic language/style container -->
<!ATTLIST SPAN
  %attrs;
  %reserved;			
  >

<!ELEMENT BDO (%inline; | %xsl-valid-in-resultns;)*><!-- I18N BiDi over-ride -->
<!ATTLIST BDO
  %coreattrs;
  lang        %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #REQUIRED
  >


<!ELEMENT BR     EMPTY><!-- forced line break -->
<!ATTLIST BR
  %coreattrs;
  >

<!--================== HTML content models ===============================-->

<!--
    HTML has two basic content models:

        %inline;     character level elements and text strings
        %block;      block-like elements e.g. paragraphs and lists
-->

<!ENTITY % block
     "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
      BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
<!ENTITY % block-FORM
     "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
      BLOCKQUOTE | HR | TABLE | FIELDSET | ADDRESS">
<!ENTITY % block-FORM-FIELDSET
     "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
      BLOCKQUOTE | HR | TABLE | ADDRESS">

<!--<!ENTITY % flow "%block; | %inline;">-->
<!ENTITY % flow "%inline; | %block;">

<!--=================== Document Body ====================================-->

<!--ELEMENT BODY     (%block;|SCRIPT)+ +(INS|DEL)  document body -->
<!ELEMENT BODY ((INS|DEL)*, (%xsl-valid-in-resultns;|%block;|SCRIPT), (INS|DEL)*)+ ><!-- document body -->
<!ATTLIST BODY
  %attrs;
  onload          %Script;   #IMPLIED
  onunload        %Script;   #IMPLIED
  >

<!ELEMENT ADDRESS (%inline; | %xsl-valid-in-resultns;)*><!-- information on author -->
<!ATTLIST ADDRESS
  %attrs;
  >

<!ELEMENT DIV (%flow; | %xsl-valid-in-resultns;)*><!-- generic language/style container -->
<!ATTLIST DIV
  %attrs;
  %reserved;
  >


<!--================== The Anchor Element ================================-->

<!ENTITY % Shape "(rect|circle|poly|default)">
<!ENTITY % Coords "CDATA"><!-- comma separated list of lengths -->

<!ELEMENT A (%inline-A; | %xsl-valid-in-resultns;)*><!-- anchor -->
<!ATTLIST A
  %attrs;
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #IMPLIED
  name        CDATA          #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  accesskey   %Character;    #IMPLIED
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  >

<!--================== Client-side image maps ============================-->

<!-- These can be placed in the same document or grouped in a
     separate document although this isn't yet widely supported -->

<!ELEMENT MAP  ((%xsl-valid-in-resultns;|%block;)+ | (%xsl-valid-in-resultns;|AREA+))><!-- client-side image map -->
<!ATTLIST MAP
  %attrs;
  name        CDATA          #REQUIRED
  >

<!ELEMENT AREA     EMPTY><!-- client-side image map area -->
<!ATTLIST AREA
  %attrs;
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  href        %URI;          #IMPLIED
  nohref      (nohref)       #IMPLIED
  alt         %Text;         #REQUIRED
  tabindex    %Number;       #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  >

<!--================== The LINK Element ==================================-->

<!--
  Relationship values can be used in principle:

   a) for document specific toolbars/menus when used
      with the LINK element in document head e.g.
        start, contents, previous, next, index, end, help
   b) to link to a separate style sheet (rel=stylesheet)
   c) to make a link to a script (rel=script)
   d) by stylesheets to control how collections of
      html nodes are rendered into printed documents
   e) to make a link to a printable version of this document
      e.g. a postscript or pdf version (rel=alternate media=print)
-->

<!ELEMENT LINK     EMPTY><!-- a media-independent link -->
<!ATTLIST LINK
  %attrs;
  charset     %Charset;      #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  type        %ContentType;  #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  media       %MediaDesc;    #IMPLIED
  >

<!--=================== Images ===========================================-->

<!-- Length defined in strict DTD for cellpadding/cellspacing -->
<!ENTITY % Length "CDATA"><!-- nn for pixels or nn% for percentage length -->
<!ENTITY % MultiLength "CDATA"><!-- pixel, percentage, or relative -->

<!ENTITY % MultiLengths "CDATA"><!-- comma-separated list of MultiLength -->

<!ENTITY % Pixels "CDATA"><!-- integer representing length in pixels -->


<!-- To avoid problems with text-only UAs as well as 
   to make image content understandable and navigable 
   to users of non-visual UAs, you need to provide
   a description with ALT, and avoid server-side image maps -->
<!ELEMENT IMG     EMPTY><!-- Embedded image -->
<!ATTLIST IMG
  %attrs;
  src         %URI;          #REQUIRED
  alt         %Text;         #REQUIRED
  longdesc    %URI;          #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  ismap       (ismap)        #IMPLIED
  >

<!-- USEMAP points to a MAP element which may be in this document
  or an external document, although the latter is not widely supported -->

<!--==================== OBJECT ======================================-->
<!--
  OBJECT is used to embed objects as part of HTML pages 
  PARAM elements should precede other content. SGML mixed content
  model technicality precludes specifying this formally ...
-->

<!ELEMENT OBJECT (%flow; | %xsl-valid-in-resultns; | PARAM)*
><!-- generic embedded object -->
<!ATTLIST OBJECT
  %attrs;
  declare     (declare)      #IMPLIED
  classid     %URI;          #IMPLIED
  codebase    %URI;          #IMPLIED
  data        %URI;          #IMPLIED
  type        %ContentType;  #IMPLIED
  codetype    %ContentType;  #IMPLIED
  archive     %URI;          #IMPLIED
  standby     %Text;         #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  name        CDATA          #IMPLIED
  tabindex    %Number;       #IMPLIED
  %reserved;
  >

<!ELEMENT PARAM     EMPTY><!-- named property value -->
<!ATTLIST PARAM
  id          ID             #IMPLIED
  name        CDATA          #REQUIRED
  value       CDATA          #IMPLIED
  valuetype   (DATA|REF|OBJECT) "DATA"
  type        %ContentType;  #IMPLIED
  >


<!--=================== Horizontal Rule ==================================-->

<!ELEMENT HR     EMPTY><!-- horizontal rule -->
<!ATTLIST HR
  %coreattrs;
  %events;
  >

<!--=================== Paragraphs =======================================-->

<!ELEMENT P (%inline; | %xsl-valid-in-resultns;)*><!-- paragraph -->
<!ATTLIST P
  %attrs;
  >

<!--=================== Headings =========================================-->

<!--
  There are six levels of headings from H1 (the most important)
  to H6 (the least important).
-->

<!--
<!ELEMENT (%heading;)      (%inline;)*>
<!ATTLIST (%heading;)
  %attrs;
  >-->
<!ELEMENT H1 (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST H1 %attrs;>
<!ELEMENT H2 (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST H2 %attrs;>
<!ELEMENT H3 (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST H3 %attrs;>
<!ELEMENT H4 (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST H4 %attrs;>
<!ELEMENT H5 (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST H5 %attrs;>
<!ELEMENT H6 (%inline; | %xsl-valid-in-resultns;)*>
<!ATTLIST H6 %attrs;>


<!--=================== Preformatted Text ================================-->

<!-- excludes markup for images and changes in font size -->
<!--
<!ENTITY % pre.exclusion "IMG|OBJECT|BIG|SMALL|SUB|SUP">

<!ELEMENT PRE  (%inline;)* -(%pre.exclusion;)><! preformatted text -->

<!ELEMENT PRE (#PCDATA |%xsl-valid-in-resultns;| TT|I|B|%phrase;|A|BR|SCRIPT|MAP|Q|SPAN|BDO|%formctrl;)*>
			<!-- preformatted text -->
<!ATTLIST PRE
  %attrs;>
<!-- Should the attribute below be incuded in PRE?
  xml:space (default|preserve) #FIXED "preserve"
-->

<!--===================== Inline Quotes ==================================-->

<!ELEMENT Q  (%inline; | %xsl-valid-in-resultns;)*><!-- short inline quotation -->
<!ATTLIST Q
  %attrs;
  cite        %URI;          #IMPLIED
  >

<!--=================== Block-like Quotes ================================-->

<!ELEMENT BLOCKQUOTE  (%block;|%xsl-valid-in-resultns;|SCRIPT)+><!-- long quotation -->
<!ATTLIST BLOCKQUOTE
  %attrs;
  cite        %URI;          #IMPLIED
  >

<!--=================== Inserted/Deleted Text ============================-->


<!-- INS/DEL are handled by inclusion on BODY -->
<!ELEMENT INS (%flow;|%xsl-valid-in-resultns;)*><!-- inserted text, deleted text -->
<!ATTLIST INS
  %attrs;
  cite        %URI;          #IMPLIED
  datetime    %Datetime;     #IMPLIED
  >
<!ELEMENT DEL (%flow;|%xsl-valid-in-resultns;)*><!-- inserted text, deleted text -->
<!ATTLIST DEL
  %attrs;
  cite        %URI;          #IMPLIED
  datetime    %Datetime;     #IMPLIED
  >

<!--=================== Lists ============================================-->

<!-- definition lists - DT for term, DD for its definition -->

<!ELEMENT DL  (%xsl-valid-in-resultns;| DT|DD)+><!-- definition list -->
<!ATTLIST DL
  %attrs;
  >

<!ELEMENT DT (%inline; | %xsl-valid-in-resultns;)*><!-- definition term -->
<!ELEMENT DD (%flow; | %xsl-valid-in-resultns;)*><!-- definition description -->
<!ATTLIST DT
  %attrs;
  >
<!ATTLIST DD
  %attrs;
  >


<!ELEMENT OL (%xsl-valid-in-resultns; | LI)+><!-- ordered list -->
<!ATTLIST OL
  %attrs;
  >

<!-- Unordered Lists (UL) bullet styles -->
<!ELEMENT UL (%xsl-valid-in-resultns; | LI)+><!-- unordered list -->
<!ATTLIST UL
  %attrs;
  >



<!ELEMENT LI (%flow; | %xsl-valid-in-resultns;)*><!-- list item -->
<!ATTLIST LI
  %attrs;
  >

<!--================ Forms ===============================================-->
<!ELEMENT FORM (%xsl-valid-in-resultns;|%block-FORM;|SCRIPT)+>

<!-- interactive form -->
<!ATTLIST FORM
  %attrs;
  action      %URI;          #REQUIRED
  method      (GET|POST)     "GET"
  enctype     %ContentType;  "application/x-www-form-urlencoded"
  onsubmit    %Script;       #IMPLIED
  onreset     %Script;       #IMPLIED
  accept-charset %Charsets;  #IMPLIED
  >

<!-- Each label must not contain more than ONE field -->
<!ELEMENT LABEL  (%inline-LABEL; | %xsl-valid-in-resultns;)*><!-- form field label text -->
<!ATTLIST LABEL
  %attrs;
  for         IDREF          #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  >

<!ENTITY % InputType
  "(TEXT | PASSWORD | CHECKBOX |
    RADIO | SUBMIT | RESET |
    FILE | HIDDEN | IMAGE | BUTTON)"
   >

<!-- attribute name required for all but submit & reset -->
<!ELEMENT INPUT     EMPTY><!-- form control -->
<!ATTLIST INPUT
  %attrs;
  type        %InputType;    "TEXT"
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  checked     (checked)      #IMPLIED
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  size        CDATA          #IMPLIED
  maxlength   %Number;       #IMPLIED
  src         %URI;          #IMPLIED
  alt         CDATA          #IMPLIED
  usemap      %URI;          #IMPLIED
  tabindex    %Number;       #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  %reserved;
  >

<!ELEMENT SELECT ((%xsl-valid-in-resultns;|OPTGROUP)|(%xsl-valid-in-resultns;|OPTION))+ ><!-- option selector -->
<!ATTLIST SELECT
  %attrs;
  name        CDATA          #IMPLIED
  size        %Number;       #IMPLIED
  multiple    (multiple)     #IMPLIED
  disabled    (disabled)     #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  %reserved;
  >

<!ELEMENT OPTGROUP (%xsl-valid-in-resultns;|OPTION)+>  <!-- option group -->
<!ATTLIST OPTGROUP
  %attrs;
  disabled    (disabled)     #IMPLIED
  label       %Text;         #REQUIRED
  >

<!ELEMENT OPTION  (#PCDATA | %xsl-valid-in-resultns;)*><!-- selectable choice -->
<!ATTLIST OPTION
  %attrs;
  selected    (selected)     #IMPLIED
  disabled    (disabled)     #IMPLIED
  label       %Text;         #IMPLIED
  value       CDATA          #IMPLIED
  >

<!ELEMENT TEXTAREA (#PCDATA | %xsl-valid-in-resultns;)*><!-- multi-line text field -->
<!ATTLIST TEXTAREA
  %attrs;
  name        CDATA          #IMPLIED
  rows        %Number;       #REQUIRED
  cols        %Number;       #REQUIRED
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  tabindex    %Number;       #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  %reserved;
  >

<!--
  #PCDATA is to solve the mixed content problem,
  per specification only whitespace is allowed there!

  We do allow XSL inside as well
 -->
<!--ELEMENT FIELDSET     (#PCDATA,LEGEND,(%flow;)*)    form control group -->
<!ELEMENT FIELDSET  (%flow;|%xsl-valid-in-resultns;|LEGEND)*><!-- form control group -->
<!ATTLIST FIELDSET
  %attrs;
  >

<!ELEMENT LEGEND (%inline;|%xsl-valid-in-resultns;)*><!-- fieldset legend -->
<!ENTITY % LAlign "(top|bottom|left|right)">

<!ATTLIST LEGEND
  %attrs;
  accesskey   %Character;    #IMPLIED
  >

<!ELEMENT BUTTON
     (#PCDATA | %xsl-valid-in-resultns; | %fontstyle; | %phrase; | %special-A; | %block;)*
><!-- push button -->
<!ATTLIST BUTTON
  %attrs;
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  type        (button|submit|reset) "submit"
  disabled    (disabled)     #IMPLIED
  tabindex    %Number;       #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  %reserved;
  >

<!--======================= Tables =======================================-->

<!-- IETF HTML table standard, see [RFC1942] -->

<!--
 The BORDER attribute sets the thickness of the frame around the
 table. The default units are screen pixels.

 The FRAME attribute specifies which parts of the frame around
 the table should be rendered. The values are not the same as
 CALS to avoid a name clash with the VALIGN attribute.

 The value "border" is included for backwards compatibility with
 <TABLE BORDER> which yields frame=border and border=implied
 For <TABLE BORDER=1> you get border=1 and frame=implied. In this
 case, it is appropriate to treat this as frame=border for backwards
 compatibility with deployed browsers.
-->
<!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">

<!--
 The RULES attribute defines which rules to draw between cells:

 If RULES is absent then assume:
     "none" if BORDER is absent or BORDER=0 otherwise "all"
-->

<!ENTITY % TRules "(none | groups | rows | cols | all)">
  
<!-- horizontal placement of table relative to document -->
<!ENTITY % TAlign "(left|center|right)">

<!-- horizontal alignment attributes for cell contents -->
<!ENTITY % cellhalign
  "align      (left|center|right|justify|char) #IMPLIED
   char       %Character;    #IMPLIED
   charoff    %Length;       #IMPLIED"
  >

<!-- vertical alignment attributes for cell contents -->
<!ENTITY % cellvalign
  "valign     (top|middle|bottom|baseline) #IMPLIED"
  >

<!ELEMENT TABLE 
  ((%xsl-valid-in-resultns;)*, CAPTION?, (%xsl-valid-in-resultns;)*,
   ((COL | %xsl-valid-in-resultns;)*|(COLGROUP | %xsl-valid-in-resultns;)*),
   ((THEAD?,(%xsl-valid-in-resultns;)*,TFOOT?,(%xsl-valid-in-resultns;|TBODY)+)
    | (%xsl-valid-in-resultns;|TR)+) )>

<!ELEMENT CAPTION   (%inline; | %xsl-valid-in-resultns;)*><!-- table caption -->
<!ELEMENT THEAD     (TR|%xsl-valid-in-resultns;)+><!-- table header -->
<!ELEMENT TFOOT     (TR|%xsl-valid-in-resultns;)+><!-- table footer -->
<!ELEMENT TBODY     (TR|%xsl-valid-in-resultns;)+><!-- table body -->
<!ELEMENT COLGROUP  (%xsl-valid-in-resultns; | COL)*><!-- table column group -->
<!ELEMENT COL       EMPTY><!-- table column -->
<!ELEMENT TR        (TH|TD| %xsl-valid-in-resultns;)+><!-- table row -->
<!ELEMENT TH        (%flow; | %xsl-valid-in-resultns;)*><!-- table header cell, table data cell-->
<!ELEMENT TD        (%flow; | %xsl-valid-in-resultns;)*><!-- table header cell, table data cell-->

<!ATTLIST TABLE
  %attrs;
  summary     %Text;         #IMPLIED
  width       %Length;       #IMPLIED
  border      %Pixels;       #IMPLIED
  frame       %TFrame;       #IMPLIED
  rules       %TRules;       #IMPLIED
  cellspacing %Length;       #IMPLIED
  cellpadding %Length;       #IMPLIED
  %reserved;
  datapagesize CDATA         #IMPLIED
  >

<!ENTITY % CAlign "(top|bottom|left|right)">

<!ATTLIST CAPTION
  %attrs;
  >

<!--
COLGROUP groups a set of COL elements. It allows you to group
several semantically related columns together.
-->
<!ATTLIST COLGROUP
  %attrs;
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;
  >

<!--
 COL elements define the alignment properties for cells in
 one or more columns.

 The WIDTH attribute specifies the width of the columns, e.g.

     width=64        width in screen pixels
     width=0.5*      relative width of 0.5

 The SPAN attribute causes the attributes of one
 COL element to apply to more than one column.
-->
<!ATTLIST COL
  %attrs;
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;
  >

<!--
    Use THEAD to duplicate headers when breaking table
    across page boundaries, or for static headers when
    TBODY sections are rendered in scrolling panel.

    Use TFOOT to duplicate footers when breaking table
    across page boundaries, or for static footers when
    TBODY sections are rendered in scrolling panel.

    Use multiple TBODY sections when rules are needed
    between groups of table rows.
-->
<!ATTLIST THEAD
  %attrs;
  %cellhalign;
  %cellvalign;
  >
<!ATTLIST TBODY
  %attrs;
  %cellhalign;
  %cellvalign;
  >
<!ATTLIST TFOOT
  %attrs;
  %cellhalign;
  %cellvalign;
  >

<!ATTLIST TR
  %attrs;
  %cellhalign;
  %cellvalign;
  >


<!-- Scope is simpler than axes attribute for common tables -->
<!ENTITY % Scope "(ROW|COL|ROWGROUP|COLGROUP)">

<!-- TH is for headers, TD for data, but for cells acting as both use TD -->
<!ATTLIST TH
  %attrs;
  abbr        %Text;         #IMPLIED
  axis        CDATA          #IMPLIED
  headers     IDREFS         #IMPLIED
  scope       %Scope;        #IMPLIED
  rowspan     %Number;       "1"
  colspan     %Number;       "1"
  %cellhalign;
  %cellvalign;
  >
<!ATTLIST TD
  %attrs;
  abbr        %Text;         #IMPLIED
  axis        CDATA          #IMPLIED
  headers     IDREFS         #IMPLIED
  scope       %Scope;        #IMPLIED
  rowspan     %Number;       "1"
  colspan     %Number;       "1"
  %cellhalign;
  %cellvalign;
  >


<!--================ Document Head =======================================-->
<!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT",
     extended now to allow xsl -->
<!ENTITY % head.misc-HEAD "%head.misc;|%xsl-valid-in-resultns;">

<!ENTITY % head.content "TITLE &amp; BASE?">

<!--ELEMENT HEAD     (%head.content;) +(%head.misc;)   document head -->
<!ELEMENT HEAD
   ((%head.misc-HEAD;)*, ((BASE?,(%head.misc-HEAD;)*,TITLE?) | (TITLE?,(%head.misc-HEAD;)*,BASE?)|(%head.misc-HEAD;)*)+, (%head.misc-HEAD;)*)>
<!ATTLIST HEAD
  %i18n;
  profile     %URI;          #IMPLIED
  %result-element-atts;
  >

<!-- The TITLE element is not considered part of the flow of text.
       It should be displayed, for example as the page header or
       window title. Exactly one title is required per document.
    -->
<!--ELEMENT TITLE     (#PCDATA) -(%head.misc;)  document title -->
<!ELEMENT TITLE  (#PCDATA |  %xsl-valid-in-resultns;)*><!-- document title -->
<!ATTLIST TITLE %i18n; %result-element-atts;>


<!ELEMENT BASE     EMPTY><!-- document base URI -->
<!ATTLIST BASE
  href        %URI;          #REQUIRED
  >

<!ELEMENT META     EMPTY><!-- generic metainformation -->
<!ATTLIST META
  %i18n;
  http-equiv  %Name;         #IMPLIED
  name        %Name;         #IMPLIED
  content     CDATA          #REQUIRED
  scheme      CDATA          #IMPLIED
  %result-element-atts;
  >

<!--ELEMENT STYLE     %StyleSheet;  style info -->
<!ELEMENT STYLE (#PCDATA | %xsl-valid-in-resultns;)*><!-- style info -->
<!ATTLIST STYLE
  %i18n;
  type        %ContentType;  #REQUIRED
  media       %MediaDesc;    #IMPLIED
  title       %Text;         #IMPLIED
  %result-element-atts;
  >

<!--ELEMENT SCRIPT     %Script; script statements -->
<!ELEMENT SCRIPT (#PCDATA | %xsl-valid-in-resultns;)*><!-- script statements -->
<!ATTLIST SCRIPT
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #REQUIRED
  language    CDATA          #IMPLIED
  src         %URI;          #IMPLIED
  defer       (defer)        #IMPLIED
  event       CDATA          #IMPLIED
  for         %URI;          #IMPLIED
  %result-element-atts;
  >

<!ELEMENT NOSCRIPT (%xsl-valid-in-resultns;|%block;)+
><!-- alternate content container for non script-based rendering -->
<!ATTLIST NOSCRIPT
  %attrs;
  >

<!--================ Document Structure ==================================-->
<!ENTITY % html.content "HEAD, BODY">

<!--<!ELEMENT HTML     (%html.content;)> --><!-- document root element -->
<!ELEMENT HTML (((%xsl-valid-in-resultns;)*,HEAD?,(%xsl-valid-in-resultns;)*,BODY?,
                (%xsl-valid-in-resultns;)*) | (%xsl-valid-in-resultns;)*)>
<!-- document root element -->
<!ATTLIST HTML
  %i18n;
  %result-element-atts;
  >