-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathONIX_XHTML_Subset.xsd
More file actions
1315 lines (1284 loc) · 43.4 KB
/
ONIX_XHTML_Subset.xsd
File metadata and controls
1315 lines (1284 loc) · 43.4 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
**************************************************
* *
* ONIX INTERNATIONAL *
* *
* BOOK PRODUCT INFORMATION MESSAGE SCHEMA *
* *
* XHTML MODULE *
* W3C XSD VERSION *
* *
* Original author: Francis Cave *
* Recent revisions: Graham Bell *
* *
* Release 3.0 *
* Revision 2 *
* Status: RELEASED *
* Release date: 2009-04-09 *
* Revised: 2014-06-29 *
* *
* (c) 2000-2014 EDItEUR *
* http://www.editeur.org/ *
* *
**************************************************
NOTE - THIS MODULE CORRESPONDS TO A SUBSET OF W3C XHTML 1.1. IT ONLY INCLUDES
ELEMENTS AND ASSOCIATED ATTRIBUTES THAT ARE VALID INSIDE THE XHTML ELEMENT
'body', AND EXCLUDES ELEMENTS FOR XHTML EMBEDDED OBJECTS, FORMS AND SCRIPTS AND
ATTRIBUTES THAT DEFINE BEHAVIOUR. SOME PARAMETER ENTITIES HAVE BEEN RENAMED
TO AVOID CLASHES WITH ONIX PARAMETER ENTITY NAMES.
TERMS AND CONDITIONS OF USE OF THE ONIX BOOK PRODUCT INFORMATION MESSAGE SCHEMA
All ONIX standards and documentation are copyright materials, made available
free of charge for general use. If you use any version of the ONIX Book Product
Information Message Schema, you will be deemed to have accepted these terms and
conditions:
1. You agree that you will not add to, delete from or amend any version of the
ONIX Product Information Message Schema, or any part of the Schema except for
strictly internal use in your own organisation.
2. You agree that if you wish to add to, amend, or make extracts of any version
of the Schema for any purpose that is not strictly internal to your own organisation,
you will in the first instance notify EDItEUR and allow EDItEUR to review
and comment on your proposed use, in the interest of securing an orderly
development of the Schema for the benefit of other users.
A full licence agreement (DOI: 10.4400/nwgj) that governs use of EDItEUR’s ONIX
documentation, DTDs and schemas is available on the EDItEUR website.
If you do not accept these terms, you must not use any version of the ONIX Product
Information Message Schema.
Full copies of all published versions of the latest release of this Schema and all
associated documentation are available from the EDItEUR web site, where may also be
found details of how to contact EDItEUR for advice on the use of this Schema. The URL
for the EDItEUR web site is:
http://www.editeur.org/
SCHEMA REVISION HISTORY (IN REVERSE CHRONOLOGICAL ORDER)
2014-06-29: Added explicit mixed="true" to elements which are extended from Flow and Inline
to avoid problems with some XML parsers
2014-01-24: removed <object> and <param> element definitions from subset
2012-01-27: added XHTML 1.1 <ruby> and associated <rb>, <rp>, <rt>, <rbc> and <rtc> tags
2009-04-09: initial release
-->
<!-- ================ Character mnemonic entities ========================= -->
<!--
THE FOLLOWING ENTITY SETS ARE EXCLUDED FROM ALL VERSIONS OF THE ONIX SCHEMA.
<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent">
%HTMLlat1;
<!ENTITY % HTMLsymbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent">
%HTMLsymbol;
<!ENTITY % HTMLspecial PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent">
%HTMLspecial;
-->
<!-- ================== Imported Names ==================================== -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xml="http://www.w3.org/XML/1998/namespace" elementFormDefault="qualified">
<xs:simpleType name="XHTMLContentType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- media type, as per [RFC2045] -->
<!-- comma-separated list of media types, as per [RFC2045] -->
<xs:simpleType name="Charset">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- a character encoding, as per [RFC2045] -->
<!-- a space separated list of character encodings, as per [RFC2045] -->
<xs:simpleType name="XHTMLLanguageCode">
<xs:restriction base="xs:NMTOKEN"/>
</xs:simpleType>
<!-- a language code, as per [RFC1766] -->
<xs:simpleType name="Character">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- a single character from [ISO10646] -->
<xs:simpleType name="XHTMLNumber">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- one or more digits -->
<!-- space-separated list of link types -->
<!-- single or comma-separated list of media descriptors -->
<xs:simpleType name="LinkTypes">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="URI">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- a Uniform Resource Identifier, see [RFC2396] -->
<xs:simpleType name="UriList">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- a space separated list of Uniform Resource Identifiers -->
<!-- date and time information. ISO date format -->
<xs:simpleType name="Script">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- script expression -->
<xs:simpleType name="StyleSheet">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- style sheet data -->
<xs:simpleType name="XHTMLText">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- used for titles etc. -->
<!-- render in this frame -->
<xs:simpleType name="Length">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- nn for pixels or nn% for percentage length -->
<xs:simpleType name="MultiLength">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- pixel, percentage, or relative -->
<!-- comma-separated list of MultiLength -->
<xs:simpleType name="Pixels">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- integer representing length in pixels -->
<!-- these are used for image maps -->
<xs:simpleType name="Shape">
<xs:restriction base="xs:token">
<xs:enumeration value="rect"/>
<xs:enumeration value="circle"/>
<xs:enumeration value="poly"/>
<xs:enumeration value="default"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Coords">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- comma separated list of lengths -->
<!-- =================== Generic Attributes =============================== -->
<!--
core attributes common to most elements
id document-wide unique id
class space separated list of classes
style associated style info
title advisory title/amplification
-->
<xs:attributeGroup name="coreattrs">
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class"/>
<xs:attribute name="style" type="StyleSheet"/>
<xs:attribute name="title" type="XHTMLText"/>
</xs:attributeGroup>
<!--
internationalization attributes
lang language code (backwards compatible)
xml:lang language code (as per XML 1.0 spec)
dir direction for weak/neutral text
-->
<xs:attributeGroup name="i18n">
<xs:attribute name="lang" type="XHTMLLanguageCode"/>
<xs:attribute name="dir">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="ltr"/>
<xs:enumeration value="rtl"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:attributeGroup name="attrs">
<xs:attributeGroup ref="coreattrs"/>
<xs:attributeGroup ref="i18n"/>
</xs:attributeGroup>
<!-- =================== Text Elements ==================================== -->
<xs:element name="special" abstract="true" substitutionGroup="inline"/>
<xs:element name="fontstyle" abstract="true" substitutionGroup="inline"/>
<xs:element name="phrase" abstract="true" substitutionGroup="inline"/>
<xs:element name="gloss" abstract="true" substitutionGroup="inline"/>
<xs:element name="inline" abstract="true"/>
<!-- %Inline; covers inline or "text-level" elements -->
<!-- ================== Block level elements ============================== -->
<xs:element name="heading" abstract="true" substitutionGroup="block"/>
<xs:element name="lists" abstract="true" substitutionGroup="block"/>
<xs:element name="blocktext" abstract="true" substitutionGroup="block"/>
<xs:element name="block" abstract="true"/>
<xs:complexType name="Inline" mixed="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="inline"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Block">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="block"/>
</xs:sequence>
</xs:complexType>
<!-- %Flow; mixes Block and Inline and is used for list items etc. -->
<xs:complexType name="Flow" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="block"/>
<xs:element ref="inline"/>
</xs:choice>
</xs:complexType>
<!-- ================== Content models for exclusions ===================== -->
<!-- a elements use %Inline; excluding a -->
<xs:complexType name="a.content" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="special"/>
<xs:element ref="fontstyle"/>
<xs:element ref="phrase"/>
<xs:element ref="gloss"/>
</xs:choice>
</xs:complexType>
<!-- pre uses %Inline excluding img, object, big, small, sup or sup -->
<xs:complexType name="pre.content" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="a"/>
<xs:element ref="br"/>
<xs:element ref="span"/>
<xs:element ref="bdo"/>
<xs:element ref="map"/>
<xs:element ref="tt"/>
<xs:element ref="i"/>
<xs:element ref="b"/>
<xs:element ref="phrase"/>
<xs:element ref="gloss"/>
</xs:choice>
</xs:complexType>
<!-- ruby allows %Inline elements excluding <ruby> -->
<xs:complexType name="ruby.content" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="a"/>
<xs:element ref="special"/>
<xs:element ref="fontstyle"/>
<xs:element ref="phrase"/>
</xs:choice>
</xs:complexType>
<!-- =================== Document Body ==================================== -->
<xs:element name="div" substitutionGroup="block">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Flow">
<xs:attributeGroup ref="div.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- generic language/style container -->
<xs:attributeGroup name="div.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- =================== Paragraphs ======================================= -->
<xs:element name="p" substitutionGroup="block">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="p.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="p.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- =================== Headings ========================================= -->
<!--
There are six levels of headings from h1 (the most important)
to h6 (the least important).
-->
<xs:element name="h1" substitutionGroup="heading">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="h1.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="h1.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="h2" substitutionGroup="heading">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="h2.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="h2.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="h3" substitutionGroup="heading">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="h3.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="h3.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="h4" substitutionGroup="heading">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="h4.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="h4.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="h5" substitutionGroup="heading">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="h5.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="h5.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="h6" substitutionGroup="heading">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="h6.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="h6.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- =================== Lists ============================================ -->
<!-- Unordered list -->
<xs:element name="ul" substitutionGroup="lists">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="li"/>
</xs:sequence>
<xs:attributeGroup ref="ul.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="ul.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- Ordered (numbered) list -->
<xs:element name="ol" substitutionGroup="lists">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="li"/>
</xs:sequence>
<xs:attributeGroup ref="ol.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="ol.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- list item -->
<xs:element name="li">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Flow">
<xs:attributeGroup ref="li.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="li.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- definition lists - dt for term, dd for its definition -->
<xs:element name="dl" substitutionGroup="lists">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element ref="dt"/>
<xs:element ref="dd"/>
</xs:choice>
<xs:attributeGroup ref="dl.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="dl.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="dt">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="dt.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="dt.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="dd">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Flow">
<xs:attributeGroup ref="dd.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="dd.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- =================== Address ========================================== -->
<!-- information on author -->
<xs:element name="address" substitutionGroup="blocktext">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="address.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="address.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- =================== Horizontal Rule ================================== -->
<xs:element name="hr" substitutionGroup="blocktext">
<xs:complexType>
<xs:attributeGroup ref="hr.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="hr.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- =================== Preformatted Text ================================ -->
<!-- content is %Inline; excluding "img|object|big|small|sub|sup" -->
<xs:element name="pre" substitutionGroup="blocktext">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="pre.content">
<xs:attributeGroup ref="pre.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="pre.attlist">
<xs:attributeGroup ref="attrs"/>
<!-- <xs:attribute ref="xml:space" default="preserve"/> -->
</xs:attributeGroup>
<!-- =================== Block-like Quotes ================================ -->
<xs:element name="blockquote" substitutionGroup="blocktext">
<xs:complexType>
<xs:complexContent>
<xs:extension base="Block">
<xs:attributeGroup ref="blockquote.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="blockquote.attlist">
<xs:attributeGroup ref="attrs"/>
<xs:attribute name="cite" type="URI"/>
</xs:attributeGroup>
<!-- =================== Text alignment =================================== -->
<!-- could be included, but not allowed in XHTML 1.0 Strict -->
<!-- <xs:element name="center">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Flow">
<xs:attributeGroup ref="center.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="center.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup> -->
<!-- ================== The Anchor Element ================================ -->
<!-- content is %Inline; except that anchors shouldn't be nested -->
<xs:element name="a" substitutionGroup="inline">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="a.content">
<xs:attributeGroup ref="a.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="a.attlist">
<xs:attributeGroup ref="attrs"/>
<xs:attribute name="charset" type="Charset"/>
<xs:attribute name="type" type="XHTMLContentType"/>
<xs:attribute name="name" type="xs:NMTOKEN"/>
<xs:attribute name="href" type="URI"/>
<xs:attribute name="hreflang" type="XHTMLLanguageCode"/>
<xs:attribute name="rel" type="LinkTypes"/>
<xs:attribute name="rev" type="LinkTypes"/>
<xs:attribute name="accesskey" type="Character"/>
<xs:attribute name="shape" default="rect" type="Shape"/>
<xs:attribute name="coords" type="Coords"/>
<xs:attribute name="tabindex" type="XHTMLNumber"/>
<xs:attribute name="onfocus" type="Script"/>
<xs:attribute name="onblur" type="Script"/>
</xs:attributeGroup>
<!-- ===================== Inline Elements ================================ -->
<xs:element name="span" substitutionGroup="special">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="span.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- generic language/style container -->
<xs:attributeGroup name="span.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="bdo" substitutionGroup="special">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="bdo.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- I18N BiDi over-ride -->
<xs:attributeGroup name="bdo.attlist">
<xs:attributeGroup ref="coreattrs"/>
<xs:attribute name="lang" type="XHTMLLanguageCode"/>
<!-- <xs:attribute ref="xml:lang"/> -->
<xs:attribute name="dir" use="required">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="ltr"/>
<xs:enumeration value="rtl"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:element name="br" substitutionGroup="special">
<xs:complexType>
<xs:attributeGroup ref="br.attlist"/>
</xs:complexType>
</xs:element>
<!-- forced line break -->
<xs:attributeGroup name="br.attlist">
<xs:attributeGroup ref="coreattrs"/>
</xs:attributeGroup>
<xs:element name="em" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="em.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- emphasis -->
<xs:attributeGroup name="em.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="strong" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="strong.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- strong emphasis -->
<xs:attributeGroup name="strong.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="dfn" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="dfn.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- definitional -->
<xs:attributeGroup name="dfn.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="code" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="code.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- program code -->
<xs:attributeGroup name="code.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="samp" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="samp.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- sample -->
<xs:attributeGroup name="samp.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="kbd" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="kbd.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- something user would type -->
<xs:attributeGroup name="kbd.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="var" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="var.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- variable -->
<xs:attributeGroup name="var.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="cite" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="cite.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- citation -->
<xs:attributeGroup name="cite.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="abbr" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="abbr.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- abbreviation -->
<xs:attributeGroup name="abbr.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="acronym" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="acronym.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- acronym -->
<xs:attributeGroup name="acronym.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="q" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="q.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- inlined quote -->
<xs:attributeGroup name="q.attlist">
<xs:attributeGroup ref="attrs"/>
<xs:attribute name="cite" type="URI"/>
</xs:attributeGroup>
<xs:element name="sub" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="sub.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- subscript -->
<xs:attributeGroup name="sub.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="sup" substitutionGroup="phrase">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="sup.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- superscript -->
<xs:attributeGroup name="sup.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="tt" substitutionGroup="fontstyle">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="tt.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- fixed pitch font -->
<xs:attributeGroup name="tt.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="i" substitutionGroup="fontstyle">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="i.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- italic font -->
<xs:attributeGroup name="i.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="b" substitutionGroup="fontstyle">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="b.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- bold font -->
<xs:attributeGroup name="b.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="big" substitutionGroup="fontstyle">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="big.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- bigger font -->
<xs:attributeGroup name="big.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<xs:element name="small" substitutionGroup="fontstyle">
<xs:complexType mixed="true">
<xs:complexContent>
<xs:extension base="Inline">
<xs:attributeGroup ref="small.attlist"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<!-- smaller font -->
<xs:attributeGroup name="small.attlist">
<xs:attributeGroup ref="attrs"/>
</xs:attributeGroup>
<!-- ==================== Object ====================================== -->
<!--
object is used to embed objects as part of HTML pages.
param elements should precede other content. Parameters
can also be expressed as attribute/value pairs on the
object element itself when brevity is desired.
-->
<!-- <xs:element name="object" substitutionGroup="special">
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="param"/>
<xs:element ref="block"/>
<xs:element ref="inline"/>
</xs:choice>
<xs:attributeGroup ref="object.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="object.attlist">
<xs:attributeGroup ref="attrs"/>
<xs:attribute name="declare">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="declare"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="classid" type="URI"/>
<xs:attribute name="codebase" type="URI"/>
<xs:attribute name="data" type="URI"/>
<xs:attribute name="type" type="XHTMLContentType"/>
<xs:attribute name="codetype" type="XHTMLContentType"/>
<xs:attribute name="archive" type="UriList"/>
<xs:attribute name="standby" type="XHTMLText"/>
<xs:attribute name="height" type="Length"/>
<xs:attribute name="width" type="Length"/>
<xs:attribute name="usemap" type="URI"/>
<xs:attribute name="name" type="xs:NMTOKEN"/>
<xs:attribute name="tabindex" type="XHTMLNumber"/>
</xs:attributeGroup> -->
<!--
param is used to supply a named property value.
In XML it would seem natural to follow RDF and support an
abbreviated syntax where the param elements are replaced
by attribute value pairs on the object start tag.
-->
<!-- <xs:element name="param">
<xs:complexType>
<xs:attributeGroup ref="param.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="param.attlist">
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="name"/>
<xs:attribute name="value"/>
<xs:attribute name="valuetype" default="data">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="data"/>
<xs:enumeration value="ref"/>
<xs:enumeration value="object"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="type" type="XHTMLContentType"/>
</xs:attributeGroup> -->
<!-- =================== Images =========================================== -->
<!--
To avoid accessibility problems for people who aren't
able to see the image, you should provide a text
description using the alt and longdesc attributes.
In addition, avoid the use of server-side image maps.
Note that in this DTD there is no name attribute. That
is only available in the transitional and frameset DTD.
-->
<xs:element name="img" substitutionGroup="special">
<xs:complexType>
<xs:attributeGroup ref="img.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="img.attlist">
<xs:attributeGroup ref="attrs"/>
<xs:attribute name="src" use="required" type="URI"/>
<xs:attribute name="alt" use="required" type="XHTMLText"/>
<xs:attribute name="longdesc" type="URI"/>
<xs:attribute name="height" type="Length"/>
<xs:attribute name="width" type="Length"/>
<xs:attribute name="usemap" type="URI"/>
<xs:attribute name="ismap">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="ismap"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<!--
usemap points to a map element which may be in this document
or an external document, although the latter is not widely supported
-->
<!-- ================== 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
-->
<xs:element name="map" substitutionGroup="special">
<xs:complexType>
<xs:choice>
<xs:element maxOccurs="unbounded" ref="block"/>
<xs:element maxOccurs="unbounded" ref="area"/>
</xs:choice>
<xs:attributeGroup ref="map.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="map.attlist">
<xs:attributeGroup ref="i18n"/>
<xs:attribute name="id" use="required" type="xs:ID"/>
<xs:attribute name="class"/>
<xs:attribute name="style" type="StyleSheet"/>
<xs:attribute name="title" type="XHTMLText"/>
<xs:attribute name="name" type="xs:NMTOKEN"/>
</xs:attributeGroup>
<xs:element name="area">
<xs:complexType>
<xs:attributeGroup ref="area.attlist"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="area.attlist">
<xs:attributeGroup ref="attrs"/>
<xs:attribute name="shape" default="rect" type="Shape"/>
<xs:attribute name="coords" type="Coords"/>
<xs:attribute name="href" type="URI"/>
<xs:attribute name="nohref">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="nohref"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="alt" use="required" type="XHTMLText"/>
</xs:attributeGroup>
<!-- ======================= Tables ======================================= -->
<!-- Derived from 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.
-->
<xs:simpleType name="TFrame">
<xs:restriction base="xs:token">
<xs:enumeration value="void"/>
<xs:enumeration value="above"/>
<xs:enumeration value="below"/>
<xs:enumeration value="hsides"/>
<xs:enumeration value="lhs"/>
<xs:enumeration value="rhs"/>
<xs:enumeration value="vsides"/>
<xs:enumeration value="box"/>
<xs:enumeration value="border"/>
</xs:restriction>
</xs:simpleType>
<!--
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"
-->
<xs:simpleType name="TRules">
<xs:restriction base="xs:token">
<xs:enumeration value="none"/>
<xs:enumeration value="groups"/>
<xs:enumeration value="rows"/>
<xs:enumeration value="cols"/>
<xs:enumeration value="all"/>
</xs:restriction>
</xs:simpleType>
<!-- horizontal placement of table relative to document -->
<!--