Subversion Repositories oidinfo_new_design

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?xml version="1.0" encoding="UTF-8"?>
2
 
3
<xsd:schema targetNamespace="http://oid-info.com/xhtml-light.xsd"
4
            xmlns="http://oid-info.com/xhtml-light.xsd"
5
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">
6
 
7
  <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
8
         schemaLocation="xml.xsd"/>
9
 
10
  <xsd:complexType name="xhtml-light" mixed="true">
11
    <xsd:annotation>
12
      <xsd:documentation>
13
             The types below have been added to describe the subset of the
14
             XHTML tags that users are allowed to use for <description/>,
15
             <information/> and <address/> elements.
16
             This provides for the use of <a/>, <br/>, <center/>, <font/>,
17
             <hr/>, <i/>, <img/>, <li/>, <tt/>, <sub/>, <sup/>, and <ul/>
18
             tags of XHTML.
19
      </xsd:documentation>
20
    </xsd:annotation>
21
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
22
      <xsd:element name="a" type="aType"/>
23
      <xsd:element name="b" type="bType"/>
24
      <xsd:element name="br" type="brType"/>
25
      <xsd:element name="center" type="centerType"/>
26
      <xsd:element name="font" type="fontType"/>
27
      <xsd:element name="hr" type="hrType"/>
28
      <xsd:element name="i" type="iType"/>
29
      <xsd:element name="img" type="imgType"/>
30
      <xsd:element name="li" type="liType"/>
31
      <xsd:element name="tt" type="ttType"/>
32
      <xsd:element name="sub" type="subType"/>
33
      <xsd:element name="sup" type="supType"/>
34
      <xsd:element name="ul" type="ulType"/>
35
    </xsd:choice>    
36
  </xsd:complexType>
37
 
38
  <xsd:complexType name="aType" mixed="true">
39
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
40
      <xsd:group ref="inline"/>
41
    </xsd:choice>
42
    <xsd:attributeGroup ref="CoreAttributs"/>
43
    <xsd:attribute name="type" type="xsd:string"/>
44
    <xsd:attribute name="name" type="xsd:NMTOKEN"/>
45
    <xsd:attribute name="href" type="xsd:string"/>
46
    <xsd:attribute name="rel" type="xsd:string"/>
47
    <xsd:attribute name="rev" type="xsd:string"/>
48
  </xsd:complexType>
49
 
50
  <xsd:complexType name="bType" mixed="true">
51
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
52
      <xsd:element name="a" type="aType"/>
53
        <xsd:group ref="inline"/>
54
      </xsd:choice>
55
    <xsd:attributeGroup ref="CoreAttributs"/>
56
  </xsd:complexType>
57
 
58
  <xsd:complexType name="brType">
59
    <xsd:attributeGroup ref="CoreAttributs"/>
60
  </xsd:complexType>
61
 
62
  <xsd:complexType name="centerType" mixed="true">
63
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
64
      <xsd:element name="p" type="pType"/>
65
      <xsd:element name="ul" type="ulType"/>
66
      <xsd:element name="ol" type="olType"/>
67
      <xsd:element name="hr" type="hrType"/>
68
      <xsd:element name="center" type="centerType"/>
69
      <xsd:element name="a" type="aType"/>
70
      <xsd:group ref="inline"/>
71
    </xsd:choice>
72
    <xsd:attributeGroup ref="CoreAttributs"/>
73
  </xsd:complexType>
74
 
75
  <xsd:complexType name="fontType" mixed="true">
76
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
77
      <xsd:element name="a" type="aType"/>
78
      <xsd:group ref="inline"/>
79
    </xsd:choice>
80
    <xsd:attributeGroup ref="CoreAttributs"/>
81
    <xsd:attribute name="size" type="xsd:string"/>
82
    <xsd:attribute name="color" type="xsd:string"/>
83
    <xsd:attribute name="face" type="xsd:string"/>
84
  </xsd:complexType>
85
 
86
  <xsd:complexType name="hrType">
87
    <xsd:attributeGroup ref="CoreAttributs"/>
88
    <xsd:attribute name="align">
89
      <xsd:simpleType>
90
        <xsd:restriction base="xsd:NMTOKEN">
91
          <xsd:enumeration value="left"/>
92
          <xsd:enumeration value="center"/>
93
          <xsd:enumeration value="right"/>
94
        </xsd:restriction>
95
      </xsd:simpleType>
96
    </xsd:attribute>
97
    <xsd:attribute name="noshade">
98
      <xsd:simpleType>
99
        <xsd:restriction base="xsd:NMTOKEN">
100
          <xsd:enumeration value="noshade"/>
101
        </xsd:restriction>
102
      </xsd:simpleType>
103
    </xsd:attribute>
104
    <xsd:attribute name="size" type="xsd:string"/>
105
    <xsd:attribute name="width" type="xsd:string"/>
106
  </xsd:complexType>
107
 
108
  <xsd:complexType name="iType" mixed="true">
109
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
110
      <xsd:element name="a" type="aType"/>
111
      <xsd:group ref="inline"/>
112
    </xsd:choice>
113
    <xsd:attributeGroup ref="CoreAttributs"/>
114
  </xsd:complexType>
115
 
116
  <xsd:complexType name="imgType">
117
    <xsd:attributeGroup ref="CoreAttributs"/>
118
    <xsd:attribute name="src" type="xsd:string" use="required"/>
119
    <xsd:attribute name="alt" type="xsd:string" use="required"/>
120
    <xsd:attribute name="name" type="xsd:NMTOKEN"/>
121
    <xsd:attribute name="longdesc" type="xsd:string"/>
122
    <xsd:attribute name="height" type="xsd:string"/>
123
    <xsd:attribute name="width" type="xsd:string"/>
124
    <xsd:attribute name="align">
125
      <xsd:simpleType>
126
        <xsd:restriction base="xsd:NMTOKEN">
127
          <xsd:enumeration value="top"/>
128
          <xsd:enumeration value="middle"/>
129
          <xsd:enumeration value="bottom"/>
130
          <xsd:enumeration value="left"/>
131
          <xsd:enumeration value="right"/>
132
        </xsd:restriction>
133
      </xsd:simpleType>
134
    </xsd:attribute>
135
    <xsd:attribute name="border" type="xsd:string"/>
136
  </xsd:complexType>
137
 
138
  <xsd:complexType name="liType" mixed="true">
139
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
140
      <xsd:element name="p" type="pType"/>
141
      <xsd:element name="ul" type="ulType"/>
142
      <xsd:element name="ol" type="olType"/>
143
      <xsd:element name="hr" type="hrType"/>
144
      <xsd:element name="center" type="centerType"/>
145
      <xsd:element name="a" type="aType"/>
146
      <xsd:group ref="inline"/>
147
    </xsd:choice>
148
    <xsd:attributeGroup ref="CoreAttributs"/>
149
  </xsd:complexType>
150
 
151
  <xsd:complexType name="olType">
152
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
153
      <xsd:element name="li" type="liType"/>
154
    </xsd:sequence>
155
    <xsd:attributeGroup ref="CoreAttributs"/>
156
  </xsd:complexType>
157
  <xsd:complexType name="pType" mixed="true">
158
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
159
      <xsd:element name="a" type="aType"/>
160
        <xsd:group ref="inline"/>
161
      </xsd:choice>
162
    <xsd:attributeGroup ref="CoreAttributs"/>
163
  </xsd:complexType>
164
 
165
  <xsd:complexType name="subType" mixed="true">
166
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
167
      <xsd:element name="a" type="aType"/>
168
        <xsd:group ref="inline"/>
169
      </xsd:choice>
170
    <xsd:attributeGroup ref="CoreAttributs"/>
171
  </xsd:complexType>
172
 
173
  <xsd:complexType name="supType" mixed="true">
174
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
175
      <xsd:element name="a" type="aType"/>
176
      <xsd:group ref="inline"/>
177
    </xsd:choice>
178
    <xsd:attributeGroup ref="CoreAttributs"/>
179
  </xsd:complexType>
180
 
181
  <xsd:complexType name="ttType" mixed="true">
182
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
183
      <xsd:element name="a" type="aType"/>
184
      <xsd:group ref="inline"/>
185
    </xsd:choice>
186
    <xsd:attributeGroup ref="CoreAttributs"/>
187
  </xsd:complexType>
188
 
189
  <xsd:complexType name="ulType">
190
    <xsd:sequence minOccurs="1" maxOccurs="unbounded">
191
      <xsd:element name="li" type="liType"/>
192
    </xsd:sequence>
193
    <xsd:attributeGroup ref="CoreAttributs"/>
194
  </xsd:complexType>  
195
 
196
  <xsd:attributeGroup name="CoreAttributs">
197
    <xsd:attribute name="id" type="xsd:ID"/>
198
    <xsd:attribute name="class" type="xsd:string"/>
199
    <xsd:attribute name="style" type="xsd:string"/>
200
    <xsd:attribute name="title" type="xsd:string"/>
201
  </xsd:attributeGroup>
202
 
203
  <xsd:group name="inline">
204
     <xsd:choice>
205
      <xsd:element name="br" type="brType"/>
206
      <xsd:element name="img" type="imgType"/>
207
      <xsd:element name="tt" type="ttType"/>
208
      <xsd:element name="i" type="iType"/>
209
      <xsd:element name="b" type="bType"/>
210
      <xsd:element name="font" type="fontType"/>
211
      <xsd:element name="sub" type="subType"/>
212
      <xsd:element name="sup" type="supType"/>
213
     </xsd:choice>
214
  </xsd:group>
215
</xsd:schema>