Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add extension points into the xml schema

  • Loading branch information...
commit bf0775fbb6ab3e0a2f8288f3dff81228badba0f1 1 parent 9352121
Miha Vrhovnik authored June 03, 2011

Showing 1 changed file with 90 additions and 4 deletions. Show diff stats Hide diff stats

  1. 94  doctrine-mapping.xsd
94  doctrine-mapping.xsd
@@ -17,11 +17,18 @@
17 17
       <xs:sequence>
18 18
         <xs:element name="mapped-superclass" type="orm:mapped-superclass" minOccurs="0" maxOccurs="unbounded" />
19 19
         <xs:element name="entity" type="orm:entity" minOccurs="0" maxOccurs="unbounded" />
  20
+        <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
20 21
       </xs:sequence>
  22
+      <xs:anyAttribute namespace="##other"/>
21 23
     </xs:complexType>
22 24
   </xs:element>
23 25
   
24  
-  <xs:complexType name="emptyType"/> 
  26
+  <xs:complexType name="emptyType">
  27
+    <xs:sequence>
  28
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  29
+    </xs:sequence>
  30
+    <xs:anyAttribute namespace="##other"/>
  31
+  </xs:complexType>
25 32
   
26 33
   <xs:complexType name="cascade-type">
27 34
     <xs:sequence>
@@ -30,7 +37,9 @@
30 37
       <xs:element name="cascade-merge" type="orm:emptyType" minOccurs="0"/> 
31 38
       <xs:element name="cascade-remove" type="orm:emptyType" minOccurs="0"/> 
32 39
       <xs:element name="cascade-refresh" type="orm:emptyType" minOccurs="0"/> 
  40
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
33 41
     </xs:sequence>
  42
+    <xs:anyAttribute namespace="##other"/>
34 43
   </xs:complexType>
35 44
   
36 45
   <xs:simpleType name="lifecycle-callback-type">
@@ -46,24 +55,32 @@
46 55
   </xs:simpleType>
47 56
   
48 57
   <xs:complexType name="lifecycle-callback">
  58
+    <xs:sequence>
  59
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  60
+    </xs:sequence>
49 61
     <xs:attribute name="type" type="orm:lifecycle-callback-type" use="required" />
50 62
     <xs:attribute name="method" type="xs:NMTOKEN" use="required" />
  63
+    <xs:anyAttribute namespace="##other"/>
51 64
   </xs:complexType>
52 65
   
53 66
   <xs:complexType name="lifecycle-callbacks">
54 67
     <xs:sequence>
55 68
       <xs:element name="lifecycle-callback" type="orm:lifecycle-callback" minOccurs="1" maxOccurs="unbounded" />
  69
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
56 70
     </xs:sequence>
  71
+    <xs:anyAttribute namespace="##other"/>
57 72
   </xs:complexType>
58 73
 
59 74
   <xs:complexType name="named-query">
60 75
     <xs:attribute name="name" type="xs:string" use="required" />
61 76
     <xs:attribute name="query" type="xs:string" use="required" />
  77
+    <xs:anyAttribute namespace="##other"/>
62 78
   </xs:complexType>
63 79
 
64 80
   <xs:complexType name="named-queries">
65 81
     <xs:sequence>
66 82
       <xs:element name="named-query" type="orm:named-query" minOccurs="1" maxOccurs="unbounded" />
  83
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
67 84
     </xs:sequence>
68 85
   </xs:complexType>
69 86
 
@@ -81,6 +98,7 @@
81 98
       <xs:element name="one-to-many" type="orm:one-to-many" minOccurs="0" maxOccurs="unbounded" />
82 99
       <xs:element name="many-to-one" type="orm:many-to-one" minOccurs="0" maxOccurs="unbounded" />
83 100
       <xs:element name="many-to-many" type="orm:many-to-many" minOccurs="0" maxOccurs="unbounded" />
  101
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
84 102
     </xs:sequence>
85 103
     <xs:attribute name="name" type="xs:string" use="required" />
86 104
     <xs:attribute name="table" type="xs:NMTOKEN" />
@@ -89,11 +107,17 @@
89 107
     <xs:attribute name="inheritance-type" type="orm:inheritance-type"/>
90 108
     <xs:attribute name="change-tracking-policy" type="orm:change-tracking-policy" />
91 109
     <xs:attribute name="read-only" type="xs:boolean" default="false" />
  110
+    <xs:anyAttribute namespace="##other"/>
92 111
   </xs:complexType>
93 112
   
94 113
   <xs:complexType name="mapped-superclass" >
95 114
     <xs:complexContent>
96  
-      <xs:extension base="orm:entity"/>
  115
+      <xs:extension base="orm:entity">
  116
+        <xs:sequence>
  117
+          <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  118
+        </xs:sequence>
  119
+        <xs:anyAttribute namespace="##other"/>
  120
+      </xs:extension>
97 121
     </xs:complexContent>
98 122
   </xs:complexType>
99 123
 
@@ -139,6 +163,9 @@
139 163
   </xs:simpleType>
140 164
 
141 165
   <xs:complexType name="field">
  166
+    <xs:sequence>
  167
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  168
+    </xs:sequence>
142 169
     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
143 170
     <xs:attribute name="type" type="xs:NMTOKEN" default="string" />
144 171
     <xs:attribute name="column" type="xs:NMTOKEN" />
@@ -149,76 +176,114 @@
149 176
     <xs:attribute name="column-definition" type="xs:string" />
150 177
     <xs:attribute name="precision" type="xs:integer" use="optional" />
151 178
     <xs:attribute name="scale" type="xs:integer" use="optional" />
  179
+    <xs:anyAttribute namespace="##other"/>
152 180
   </xs:complexType>
153 181
   
154 182
   <xs:complexType name="discriminator-column">
  183
+    <xs:sequence>
  184
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  185
+    </xs:sequence>
155 186
     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
156 187
     <xs:attribute name="type" type="xs:NMTOKEN" use="required" />
157 188
     <xs:attribute name="field-name" type="xs:NMTOKEN" />
158 189
     <xs:attribute name="length" type="xs:NMTOKEN" />
  190
+    <xs:anyAttribute namespace="##other"/>
159 191
   </xs:complexType>
160 192
   
161 193
   <xs:complexType name="unique-constraint">
  194
+    <xs:sequence>
  195
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  196
+    </xs:sequence>
162 197
     <xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
163 198
     <xs:attribute name="columns" type="xs:string" use="required"/>
  199
+    <xs:anyAttribute namespace="##other"/>
164 200
   </xs:complexType>
165 201
   
166 202
   <xs:complexType name="unique-constraints">
167 203
     <xs:sequence>
168 204
       <xs:element name="unique-constraint" type="orm:unique-constraint" minOccurs="1" maxOccurs="unbounded"/>
  205
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
169 206
     </xs:sequence>
  207
+    <xs:anyAttribute namespace="##other"/>
170 208
   </xs:complexType>
171 209
   
172 210
   <xs:complexType name="index">
  211
+    <xs:sequence>
  212
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  213
+    </xs:sequence>
173 214
     <xs:attribute name="name" type="xs:NMTOKEN" use="optional"/>
174 215
     <xs:attribute name="columns" type="xs:NMTOKENS" use="required"/>
  216
+    <xs:anyAttribute namespace="##other"/>
175 217
   </xs:complexType>
176 218
   
177 219
   <xs:complexType name="indexes">
178 220
     <xs:sequence>
179 221
       <xs:element name="index" type="orm:index" minOccurs="1" maxOccurs="unbounded"/>
  222
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
180 223
     </xs:sequence>
  224
+    <xs:anyAttribute namespace="##other"/>
181 225
   </xs:complexType>
182 226
   
183 227
   <xs:complexType name="discriminator-mapping">
  228
+    <xs:sequence>
  229
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  230
+    </xs:sequence>
184 231
     <xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
185 232
     <xs:attribute name="class" type="xs:NMTOKEN" use="required"/>
  233
+    <xs:anyAttribute namespace="##other"/>
186 234
   </xs:complexType>
187 235
   
188 236
   <xs:complexType name="discriminator-map">
189 237
     <xs:sequence>
190 238
       <xs:element name="discriminator-mapping" type="orm:discriminator-mapping" minOccurs="1" maxOccurs="unbounded"/>
  239
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
191 240
     </xs:sequence>
  241
+    <xs:anyAttribute namespace="##other"/>
192 242
   </xs:complexType>
193 243
 
194 244
   <xs:complexType name="generator">
  245
+    <xs:sequence>
  246
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  247
+    </xs:sequence>
195 248
     <xs:attribute name="strategy" type="orm:generator-strategy" use="optional" default="AUTO" />
  249
+    <xs:anyAttribute namespace="##other"/>
196 250
   </xs:complexType>
197 251
 
198 252
   <xs:complexType name="id">
199 253
     <xs:sequence>
200 254
       <xs:element name="generator" type="orm:generator" minOccurs="0" />
201 255
       <xs:element name="sequence-generator" type="orm:sequence-generator" minOccurs="0" maxOccurs="1" />
  256
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
202 257
     </xs:sequence>
203 258
     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
204 259
     <xs:attribute name="type" type="xs:NMTOKEN" />
205 260
     <xs:attribute name="column" type="xs:NMTOKEN" />
206 261
     <xs:attribute name="association-key" type="xs:boolean" default="false" />
  262
+    <xs:anyAttribute namespace="##other"/>
207 263
   </xs:complexType>
208 264
 
209 265
   <xs:complexType name="sequence-generator">
  266
+    <xs:sequence>
  267
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  268
+    </xs:sequence>
210 269
       <xs:attribute name="sequence-name" type="xs:NMTOKEN" use="required" />
211 270
       <xs:attribute name="allocation-size" type="xs:integer" use="optional" default="1" />
212 271
       <xs:attribute name="initial-value" type="xs:integer" use="optional" default="1" />
  272
+    <xs:anyAttribute namespace="##other"/>
213 273
   </xs:complexType>
214 274
 
215 275
   <xs:complexType name="inverse-join-columns">
216 276
     <xs:sequence>
217 277
       <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
  278
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
218 279
     </xs:sequence>
  280
+    <xs:anyAttribute namespace="##other"/>
219 281
   </xs:complexType>
220 282
 
221 283
   <xs:complexType name="join-column">
  284
+    <xs:sequence>
  285
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  286
+    </xs:sequence>
222 287
     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
223 288
     <xs:attribute name="referenced-column-name" type="xs:NMTOKEN" use="optional" default="id" />
224 289
     <xs:attribute name="unique" type="xs:boolean" default="false" />
@@ -226,32 +291,43 @@
226 291
     <xs:attribute name="on-delete" type="orm:fk-action" />
227 292
     <xs:attribute name="on-update" type="orm:fk-action" />
228 293
     <xs:attribute name="column-definition" type="xs:string" />
  294
+    <xs:anyAttribute namespace="##other"/>
229 295
   </xs:complexType>
230 296
 
231 297
   <xs:complexType name="join-columns">
232 298
     <xs:sequence>
233 299
       <xs:element name="join-column" type="orm:join-column" minOccurs="1" maxOccurs="unbounded" />
  300
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
234 301
     </xs:sequence>
  302
+    <xs:anyAttribute namespace="##other"/>
235 303
   </xs:complexType>
236 304
 
237 305
   <xs:complexType name="join-table">
238 306
     <xs:sequence>
239 307
       <xs:element name="join-columns" type="orm:join-columns" />
240 308
       <xs:element name="inverse-join-columns" type="orm:join-columns" />
  309
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
241 310
     </xs:sequence>
242 311
     <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
243 312
     <xs:attribute name="schema" type="xs:NMTOKEN" />
  313
+    <xs:anyAttribute namespace="##other"/>
244 314
   </xs:complexType>
245 315
 
246 316
   <xs:complexType name="order-by">
247 317
       <xs:sequence>
248 318
           <xs:element name="order-by-field" type="orm:order-by-field" minOccurs="1" maxOccurs="unbounded" />
  319
+          <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
249 320
       </xs:sequence>
  321
+      <xs:anyAttribute namespace="##other"/>
250 322
   </xs:complexType>
251 323
 
252 324
   <xs:complexType name="order-by-field">
253  
-      <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
254  
-      <xs:attribute name="direction" type="orm:order-by-direction" default="ASC" />
  325
+    <xs:sequence>
  326
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
  327
+    </xs:sequence>
  328
+    <xs:attribute name="name" type="xs:NMTOKEN" use="required" />
  329
+    <xs:attribute name="direction" type="orm:order-by-direction" default="ASC" />
  330
+    <xs:anyAttribute namespace="##other"/>
255 331
   </xs:complexType>
256 332
 
257 333
   <xs:simpleType name="order-by-direction">
@@ -266,6 +342,7 @@
266 342
       <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
267 343
       <xs:element name="join-table" type="orm:join-table" minOccurs="0" />
268 344
       <xs:element name="order-by" type="orm:order-by" minOccurs="0" />
  345
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
269 346
     </xs:sequence>
270 347
     <xs:attribute name="target-entity" type="xs:string" use="required" />
271 348
     <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
@@ -273,12 +350,14 @@
273 350
     <xs:attribute name="index-by" type="xs:NMTOKEN" />
274 351
     <xs:attribute name="inversed-by" type="xs:NMTOKEN" />
275 352
     <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
  353
+    <xs:anyAttribute namespace="##other"/>
276 354
   </xs:complexType>
277 355
 
278 356
   <xs:complexType name="one-to-many">
279 357
     <xs:sequence>
280 358
       <xs:element name="cascade" type="orm:cascade-type" minOccurs="0" />
281 359
       <xs:element name="order-by" type="orm:order-by" minOccurs="0" />
  360
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
282 361
     </xs:sequence>
283 362
     <xs:attribute name="target-entity" type="xs:string" use="required" />
284 363
     <xs:attribute name="mapped-by" type="xs:NMTOKEN" use="required" />
@@ -286,6 +365,7 @@
286 365
     <xs:attribute name="index-by" type="xs:NMTOKEN" />
287 366
     <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
288 367
     <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
  368
+    <xs:anyAttribute namespace="##other"/>
289 369
   </xs:complexType>
290 370
   
291 371
   <xs:complexType name="many-to-one">
@@ -294,13 +374,16 @@
294 374
       <xs:choice minOccurs="0" maxOccurs="1">
295 375
         <xs:element name="join-column" type="orm:join-column"/>
296 376
         <xs:element name="join-columns" type="orm:join-columns"/>
  377
+        <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
297 378
       </xs:choice>
  379
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
298 380
     </xs:sequence>
299 381
     <xs:attribute name="target-entity" type="xs:string" use="required" />
300 382
     <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
301 383
     <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
302 384
     <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
303 385
     <xs:attribute name="inversed-by" type="xs:NMTOKEN" />
  386
+    <xs:anyAttribute namespace="##other"/>
304 387
   </xs:complexType>
305 388
   
306 389
   <xs:complexType name="one-to-one">
@@ -309,7 +392,9 @@
309 392
       <xs:choice minOccurs="0" maxOccurs="1">
310 393
         <xs:element name="join-column" type="orm:join-column"/>
311 394
         <xs:element name="join-columns" type="orm:join-columns"/>
  395
+        <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
312 396
       </xs:choice>
  397
+      <xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"/>
313 398
     </xs:sequence>
314 399
     <xs:attribute name="field" type="xs:NMTOKEN" use="required" />
315 400
     <xs:attribute name="target-entity" type="xs:string" use="required" />
@@ -317,6 +402,7 @@
317 402
     <xs:attribute name="inversed-by" type="xs:NMTOKEN" />
318 403
     <xs:attribute name="orphan-removal" type="xs:boolean" default="false" />
319 404
     <xs:attribute name="fetch" type="orm:fetch-type" default="LAZY" />
  405
+    <xs:anyAttribute namespace="##other"/>
320 406
   </xs:complexType>
321 407
 
322 408
 </xs:schema>

0 notes on commit bf0775f

Please sign in to comment.
Something went wrong with that request. Please try again.