Bonjour à tous,
Dans le cadre d'un projet, je dois convertir une dtd en schéma XML.
A partir de cette DTD :
J'arrive à obtenir le fichier xsd suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <!-- DBLP XML Records are available from http://dblp.uni-trier.de/xml/ Copyright 2001, 2003 by Michael Ley (ley@uni-trier.de) Copying of the "DBLP" bibliography collection is permitted provided that the copies are not made or distributed for direct commercial advantage and credit for the source is given. To copy or republish otherwise requires specific permission. ACM, IEEE Computer Society, and The VLDB Endowment have the permission to publish DBLP on CDROM/DVD and on their Web servers. --> <!ELEMENT dblp (article|inproceedings|proceedings|book|incollection| phdthesis|mastersthesis|www)*> <!ENTITY % field "author|editor|title|booktitle|pages|year|address|journal|volume|number|month|url|ee|cdrom|cite|publisher|note|crossref|isbn|series|school|chapter"> <!ELEMENT article (%field;)*> <!ATTLIST article key CDATA #REQUIRED reviewid CDATA #IMPLIED rating CDATA #IMPLIED mdate CDATA #IMPLIED > <!ELEMENT inproceedings (%field;)*> <!ATTLIST inproceedings key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT proceedings (%field;)*> <!ATTLIST proceedings key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT book (%field;)*> <!ATTLIST book key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT incollection (%field;)*> <!ATTLIST incollection key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT phdthesis (%field;)*> <!ATTLIST phdthesis key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT mastersthesis (%field;)*> <!ATTLIST mastersthesis key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT www (%field;)*> <!ATTLIST www key CDATA #REQUIRED mdate CDATA #IMPLIED > <!ELEMENT author (#PCDATA)> <!ELEMENT editor (#PCDATA)> <!ELEMENT address (#PCDATA)> <!ENTITY % titlecontents "#PCDATA|sub|sup|i|tt|ref"> <!ELEMENT title (%titlecontents;)*> <!ELEMENT booktitle (#PCDATA)> <!ELEMENT pages (#PCDATA)> <!ELEMENT year (#PCDATA)> <!ELEMENT journal (#PCDATA)> <!ELEMENT volume (#PCDATA)> <!ELEMENT number (#PCDATA)> <!ELEMENT month (#PCDATA)> <!ELEMENT url (#PCDATA)> <!ELEMENT ee (#PCDATA)> <!ELEMENT cdrom (#PCDATA)> <!ELEMENT cite (#PCDATA)> <!ELEMENT school (#PCDATA)> <!ELEMENT publisher (#PCDATA)> <!ATTLIST publisher href CDATA #IMPLIED > <!ELEMENT note (#PCDATA)> <!ATTLIST cite label CDATA #IMPLIED > <!ELEMENT crossref (#PCDATA)> <!ELEMENT isbn (#PCDATA)> <!ELEMENT chapter (#PCDATA)> <!ELEMENT series (#PCDATA)> <!ATTLIST series href CDATA #IMPLIED > <!ELEMENT layout ANY> <!ATTLIST layout logo CDATA #IMPLIED > <!ELEMENT ref (#PCDATA)> <!ATTLIST ref href CDATA #REQUIRED> <!ELEMENT sup (%titlecontents;)*> <!ELEMENT sub (%titlecontents;)*> <!ELEMENT i (%titlecontents;)*> <!ELEMENT tt (%titlecontents;)*> <!ENTITY reg "®"> <!ENTITY micro "µ"> <!ENTITY times "×"> <!-- (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --> <!-- Character entity set. Typical invocation: <!ENTITY % HTMLlat1 PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//XML"> --> <!-- This version of the entity set can be used with any SGML document which uses ISO 8859-1 or ISO 10646 as its document character set. This includes XML documents and ISO HTML documents. --> <!ENTITY Agrave "À" ><!-- capital A, grave accent --> <!ENTITY Aacute "Á" ><!-- capital A, acute accent --> <!ENTITY Acirc "Â" ><!-- capital A, circumflex accent --> <!ENTITY Atilde "Ã" ><!-- capital A, tilde --> <!ENTITY Auml "Ä" ><!-- capital A, dieresis or umlaut mark --> <!ENTITY Aring "Å" ><!-- capital A, ring --> <!ENTITY AElig "Æ" ><!-- capital AE diphthong (ligature) --> <!ENTITY Ccedil "Ç" ><!-- capital C, cedilla --> <!ENTITY Egrave "È" ><!-- capital E, grave accent --> <!ENTITY Eacute "É" ><!-- capital E, acute accent --> <!ENTITY Ecirc "Ê" ><!-- capital E, circumflex accent --> <!ENTITY Euml "Ë" ><!-- capital E, dieresis or umlaut mark --> <!ENTITY Igrave "Ì" ><!-- capital I, grave accent --> <!ENTITY Iacute "Í" ><!-- capital I, acute accent --> <!ENTITY Icirc "Î" ><!-- capital I, circumflex accent --> <!ENTITY Iuml "Ï" ><!-- capital I, dieresis or umlaut mark --> <!ENTITY ETH "Ð" ><!-- capital Eth, Icelandic --> <!ENTITY Ntilde "Ñ" ><!-- capital N, tilde --> <!ENTITY Ograve "Ò" ><!-- capital O, grave accent --> <!ENTITY Oacute "Ó" ><!-- capital O, acute accent --> <!ENTITY Ocirc "Ô" ><!-- capital O, circumflex accent --> <!ENTITY Otilde "Õ" ><!-- capital O, tilde --> <!ENTITY Ouml "Ö" ><!-- capital O, dieresis or umlaut mark --> <!ENTITY Oslash "Ø" ><!-- capital O, slash --> <!ENTITY Ugrave "Ù" ><!-- capital U, grave accent --> <!ENTITY Uacute "Ú" ><!-- capital U, acute accent --> <!ENTITY Ucirc "Û" ><!-- capital U, circumflex accent --> <!ENTITY Uuml "Ü" ><!-- capital U, dieresis or umlaut mark --> <!ENTITY Yacute "Ý" ><!-- capital Y, acute accent --> <!ENTITY THORN "Þ" ><!-- capital THORN, Icelandic --> <!ENTITY szlig "ß" ><!-- small sharp s, German (sz ligature) --> <!ENTITY agrave "à" ><!-- small a, grave accent --> <!ENTITY aacute "á" ><!-- small a, acute accent --> <!ENTITY acirc "â" ><!-- small a, circumflex accent --> <!ENTITY atilde "ã" ><!-- small a, tilde --> <!ENTITY auml "ä" ><!-- small a, dieresis or umlaut mark --> <!ENTITY aring "å" ><!-- small a, ring --> <!ENTITY aelig "æ" ><!-- small ae diphthong (ligature) --> <!ENTITY ccedil "ç" ><!-- small c, cedilla --> <!ENTITY egrave "è" ><!-- small e, grave accent --> <!ENTITY eacute "é" ><!-- small e, acute accent --> <!ENTITY ecirc "ê" ><!-- small e, circumflex accent --> <!ENTITY euml "ë" ><!-- small e, dieresis or umlaut mark --> <!ENTITY igrave "ì" ><!-- small i, grave accent --> <!ENTITY iacute "í" ><!-- small i, acute accent --> <!ENTITY icirc "î" ><!-- small i, circumflex accent --> <!ENTITY iuml "ï" ><!-- small i, dieresis or umlaut mark --> <!ENTITY eth "ð" ><!-- small eth, Icelandic --> <!ENTITY ntilde "ñ" ><!-- small n, tilde --> <!ENTITY ograve "ò" ><!-- small o, grave accent --> <!ENTITY oacute "ó" ><!-- small o, acute accent --> <!ENTITY ocirc "ô" ><!-- small o, circumflex accent --> <!ENTITY otilde "õ" ><!-- small o, tilde --> <!ENTITY ouml "ö" ><!-- small o, dieresis or umlaut mark --> <!ENTITY oslash "ø" ><!-- small o, slash --> <!ENTITY ugrave "ù" ><!-- small u, grave accent --> <!ENTITY uacute "ú" ><!-- small u, acute accent --> <!ENTITY ucirc "û" ><!-- small u, circumflex accent --> <!ENTITY uuml "ü" ><!-- small u, dieresis or umlaut mark --> <!ENTITY yacute "ý" ><!-- small y, acute accent --> <!ENTITY thorn "þ" ><!-- small thorn, Icelandic --> <!ENTITY yuml "ÿ" ><!-- small y, dieresis or umlaut mark -->
Le fichier XSD passe bien l'épreuve du validateur XSD mais il ne passe pas dans mon programme (Convertisseur XSD/XML vers OWL). J'ai cherché les éventuels erreurs mais en vain....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?xml version="1.0" encoding="UTF-8"?> <!-- DBLP XML Records are available from http://dblp.uni-trier.de/xml/ Copyright 2001, 2003 by Michael Ley (ley@uni-trier.de) Copying of the "DBLP" bibliography collection is permitted provided that the copies are not made or distributed for direct commercial advantage and credit for the source is given. To copy or republish otherwise requires specific permission. ACM, IEEE Computer Society, and The VLDB Endowment have the permission to publish DBLP on CDROM/DVD and on their Web servers. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="dblp"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="article"/> <xs:element ref="inproceedings"/> <xs:element ref="proceedings"/> <xs:element ref="book"/> <xs:element ref="incollection"/> <xs:element ref="phdthesis"/> <xs:element ref="mastersthesis"/> <xs:element ref="www"/> </xs:choice> </xs:complexType> </xs:element> <xs:element name="field" abstract="true"/> <xs:element name="article"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="reviewid"/> <xs:attribute name="rating"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="inproceedings"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="proceedings"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="book"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="incollection"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="phdthesis"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="mastersthesis"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="www"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/> </xs:sequence> <xs:attribute name="key" use="required"/> <xs:attribute name="mdate"/> </xs:complexType> </xs:element> <xs:element name="author" substitutionGroup="field" type="xs:string"/> <xs:element name="editor" substitutionGroup="field" type="xs:string"/> <xs:element name="address" substitutionGroup="field" type="xs:string"/> <xs:group name="titlecontents"> <xs:sequence> <xs:choice minOccurs="0"> <xs:element ref="sub"/> <xs:element ref="sup"/> <xs:element ref="i"/> <xs:element ref="tt"/> <xs:element ref="ref"/> </xs:choice> </xs:sequence> </xs:group> <xs:element name="title" substitutionGroup="field"> <xs:complexType mixed="true"> <xs:group minOccurs="0" maxOccurs="unbounded" ref="titlecontents"/> </xs:complexType> </xs:element> <xs:element name="booktitle" substitutionGroup="field" type="xs:string"/> <xs:element name="pages" substitutionGroup="field" type="xs:string"/> <xs:element name="year" substitutionGroup="field" type="xs:string"/> <xs:element name="journal" substitutionGroup="field" type="xs:string"/> <xs:element name="volume" substitutionGroup="field" type="xs:string"/> <xs:element name="number" substitutionGroup="field" type="xs:string"/> <xs:element name="month" substitutionGroup="field" type="xs:string"/> <xs:element name="url" substitutionGroup="field" type="xs:string"/> <xs:element name="ee" substitutionGroup="field" type="xs:string"/> <xs:element name="cdrom" substitutionGroup="field" type="xs:string"/> <xs:element name="cite" substitutionGroup="field"> <xs:complexType mixed="true"> <xs:attribute name="label"/> </xs:complexType> </xs:element> <xs:element name="school" substitutionGroup="field" type="xs:string"/> <xs:element name="publisher" substitutionGroup="field"> <xs:complexType mixed="true"> <xs:attribute name="href"/> </xs:complexType> </xs:element> <xs:element name="note" substitutionGroup="field" type="xs:string"/> <xs:element name="crossref" substitutionGroup="field" type="xs:string"/> <xs:element name="isbn" substitutionGroup="field" type="xs:string"/> <xs:element name="chapter" substitutionGroup="field" type="xs:string"/> <xs:element name="series" substitutionGroup="field"> <xs:complexType mixed="true"> <xs:attribute name="href"/> </xs:complexType> </xs:element> <xs:element name="layout"> <xs:complexType> <xs:complexContent> <xs:extension base="any"> <xs:attribute name="logo"/> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> <xs:element name="ref"> <xs:complexType mixed="true"> <xs:attribute name="href" use="required"/> </xs:complexType> </xs:element> <xs:element name="sup"> <xs:complexType mixed="true"> <xs:group minOccurs="0" maxOccurs="unbounded" ref="titlecontents"/> </xs:complexType> </xs:element> <xs:element name="sub"> <xs:complexType mixed="true"> <xs:group minOccurs="0" maxOccurs="unbounded" ref="titlecontents"/> </xs:complexType> </xs:element> <xs:element name="i"> <xs:complexType mixed="true"> <xs:group minOccurs="0" maxOccurs="unbounded" ref="titlecontents"/> </xs:complexType> </xs:element> <xs:element name="tt"> <xs:complexType mixed="true"> <xs:group minOccurs="0" maxOccurs="unbounded" ref="titlecontents"/> </xs:complexType> </xs:element> <xs:complexType name="any" mixed="true"> <xs:sequence> <xs:any minOccurs="0" maxOccurs="unbounded" processContents="strict"/> </xs:sequence> </xs:complexType> </xs:schema> <!-- (C) International Organization for Standardization 1986 Permission to copy in any form is granted for use with conforming SGML systems and applications as defined in ISO 8879, provided this notice is included in all copies. --> <!-- Character entity set. Typical invocation: <!ENTITY % HTMLlat1 PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//XML"> --> <!-- This version of the entity set can be used with any SGML document which uses ISO 8859-1 or ISO 10646 as its document character set. This includes XML documents and ISO HTML documents. --> <!-- capital A, grave accent --> <!-- capital A, acute accent --> <!-- capital A, circumflex accent --> <!-- capital A, tilde --> <!-- capital A, dieresis or umlaut mark --> <!-- capital A, ring --> <!-- capital AE diphthong (ligature) --> <!-- capital C, cedilla --> <!-- capital E, grave accent --> <!-- capital E, acute accent --> <!-- capital E, circumflex accent --> <!-- capital E, dieresis or umlaut mark --> <!-- capital I, grave accent --> <!-- capital I, acute accent --> <!-- capital I, circumflex accent --> <!-- capital I, dieresis or umlaut mark --> <!-- capital Eth, Icelandic --> <!-- capital N, tilde --> <!-- capital O, grave accent --> <!-- capital O, acute accent --> <!-- capital O, circumflex accent --> <!-- capital O, tilde --> <!-- capital O, dieresis or umlaut mark --> <!-- capital O, slash --> <!-- capital U, grave accent --> <!-- capital U, acute accent --> <!-- capital U, circumflex accent --> <!-- capital U, dieresis or umlaut mark --> <!-- capital Y, acute accent --> <!-- capital THORN, Icelandic --> <!-- small sharp s, German (sz ligature) --> <!-- small a, grave accent --> <!-- small a, acute accent --> <!-- small a, circumflex accent --> <!-- small a, tilde --> <!-- small a, dieresis or umlaut mark --> <!-- small a, ring --> <!-- small ae diphthong (ligature) --> <!-- small c, cedilla --> <!-- small e, grave accent --> <!-- small e, acute accent --> <!-- small e, circumflex accent --> <!-- small e, dieresis or umlaut mark --> <!-- small i, grave accent --> <!-- small i, acute accent --> <!-- small i, circumflex accent --> <!-- small i, dieresis or umlaut mark --> <!-- small eth, Icelandic --> <!-- small n, tilde --> <!-- small o, grave accent --> <!-- small o, acute accent --> <!-- small o, circumflex accent --> <!-- small o, tilde --> <!-- small o, dieresis or umlaut mark --> <!-- small o, slash --> <!-- small u, grave accent --> <!-- small u, acute accent --> <!-- small u, circumflex accent --> <!-- small u, dieresis or umlaut mark --> <!-- small y, acute accent --> <!-- small thorn, Icelandic --> <!-- small y, dieresis or umlaut mark -->![]()
Partager