@img/sharp-libvips-dev 1.2.2-rc.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/expat.h +37 -24
- package/include/expat_config.h +9 -9
- package/include/expat_external.h +62 -61
- package/include/libxml2/libxml/HTMLparser.h +159 -101
- package/include/libxml2/libxml/HTMLtree.h +49 -74
- package/include/libxml2/libxml/SAX.h +8 -5
- package/include/libxml2/libxml/SAX2.h +18 -15
- package/include/libxml2/libxml/c14n.h +30 -29
- package/include/libxml2/libxml/catalog.h +47 -22
- package/include/libxml2/libxml/chvalid.h +52 -64
- package/include/libxml2/libxml/debugXML.h +18 -15
- package/include/libxml2/libxml/dict.h +22 -19
- package/include/libxml2/libxml/encoding.h +144 -111
- package/include/libxml2/libxml/entities.h +95 -75
- package/include/libxml2/libxml/globals.h +7 -4
- package/include/libxml2/libxml/hash.h +61 -64
- package/include/libxml2/libxml/list.h +59 -51
- package/include/libxml2/libxml/nanoftp.h +7 -4
- package/include/libxml2/libxml/nanohttp.h +10 -7
- package/include/libxml2/libxml/parser.h +1091 -563
- package/include/libxml2/libxml/parserInternals.h +167 -214
- package/include/libxml2/libxml/pattern.h +29 -31
- package/include/libxml2/libxml/relaxng.h +59 -58
- package/include/libxml2/libxml/schemasInternals.h +114 -268
- package/include/libxml2/libxml/schematron.h +59 -51
- package/include/libxml2/libxml/threads.h +19 -20
- package/include/libxml2/libxml/tree.h +873 -623
- package/include/libxml2/libxml/uri.h +21 -22
- package/include/libxml2/libxml/valid.h +170 -199
- package/include/libxml2/libxml/xinclude.h +24 -43
- package/include/libxml2/libxml/xlink.h +55 -51
- package/include/libxml2/libxml/xmlIO.h +133 -151
- package/include/libxml2/libxml/xmlautomata.h +66 -65
- package/include/libxml2/libxml/xmlerror.h +197 -94
- package/include/libxml2/libxml/xmlexports.h +17 -19
- package/include/libxml2/libxml/xmlmemory.h +44 -29
- package/include/libxml2/libxml/xmlmodule.h +14 -15
- package/include/libxml2/libxml/xmlreader.h +137 -131
- package/include/libxml2/libxml/xmlregexp.h +28 -31
- package/include/libxml2/libxml/xmlsave.h +81 -36
- package/include/libxml2/libxml/xmlschemas.h +61 -67
- package/include/libxml2/libxml/xmlschemastypes.h +60 -54
- package/include/libxml2/libxml/xmlstring.h +8 -9
- package/include/libxml2/libxml/xmlunicode.h +6 -3
- package/include/libxml2/libxml/xmlversion.h +44 -121
- package/include/libxml2/libxml/xmlwriter.h +97 -97
- package/include/libxml2/libxml/xpath.h +235 -232
- package/include/libxml2/libxml/xpathInternals.h +247 -277
- package/include/libxml2/libxml/xpointer.h +21 -17
- package/package.json +1 -1
- package/versions.json +2 -2
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
1
|
+
/**
|
|
2
|
+
* @file
|
|
3
|
+
*
|
|
4
|
+
* @brief internal interfaces for XML Schemas
|
|
5
|
+
*
|
|
6
|
+
* internal interfaces for the XML Schemas handling
|
|
4
7
|
* and schema validity checking
|
|
5
8
|
* The Schemas development is a Work In Progress.
|
|
6
9
|
* Some of those interfaces are not guaranteed to be API or ABI stable !
|
|
7
10
|
*
|
|
8
|
-
*
|
|
11
|
+
* @copyright See Copyright for the status of this software.
|
|
9
12
|
*
|
|
10
|
-
*
|
|
13
|
+
* @author Daniel Veillard
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
16
|
|
|
@@ -27,6 +30,9 @@
|
|
|
27
30
|
extern "C" {
|
|
28
31
|
#endif
|
|
29
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Schema value type
|
|
35
|
+
*/
|
|
30
36
|
typedef enum {
|
|
31
37
|
XML_SCHEMAS_UNKNOWN = 0,
|
|
32
38
|
XML_SCHEMAS_STRING = 1,
|
|
@@ -77,7 +83,7 @@ typedef enum {
|
|
|
77
83
|
XML_SCHEMAS_ANYSIMPLETYPE = 46
|
|
78
84
|
} xmlSchemaValType;
|
|
79
85
|
|
|
80
|
-
|
|
86
|
+
/**
|
|
81
87
|
* XML Schemas defines multiple type of types.
|
|
82
88
|
*/
|
|
83
89
|
typedef enum {
|
|
@@ -123,6 +129,9 @@ typedef enum {
|
|
|
123
129
|
XML_SCHEMA_EXTRA_ATTR_USE_PROHIB
|
|
124
130
|
} xmlSchemaTypeType;
|
|
125
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Schema content type
|
|
134
|
+
*/
|
|
126
135
|
typedef enum {
|
|
127
136
|
XML_SCHEMA_CONTENT_UNKNOWN = 0,
|
|
128
137
|
XML_SCHEMA_CONTENT_EMPTY = 1,
|
|
@@ -134,118 +143,95 @@ typedef enum {
|
|
|
134
143
|
XML_SCHEMA_CONTENT_ANY
|
|
135
144
|
} xmlSchemaContentType;
|
|
136
145
|
|
|
146
|
+
/** Schema value */
|
|
137
147
|
typedef struct _xmlSchemaVal xmlSchemaVal;
|
|
138
148
|
typedef xmlSchemaVal *xmlSchemaValPtr;
|
|
139
149
|
|
|
150
|
+
/** Schema type */
|
|
140
151
|
typedef struct _xmlSchemaType xmlSchemaType;
|
|
141
152
|
typedef xmlSchemaType *xmlSchemaTypePtr;
|
|
142
153
|
|
|
154
|
+
/** Schema facet */
|
|
143
155
|
typedef struct _xmlSchemaFacet xmlSchemaFacet;
|
|
144
156
|
typedef xmlSchemaFacet *xmlSchemaFacetPtr;
|
|
145
157
|
|
|
158
|
+
/** Schema annotation */
|
|
159
|
+
typedef struct _xmlSchemaAnnot xmlSchemaAnnot;
|
|
160
|
+
typedef xmlSchemaAnnot *xmlSchemaAnnotPtr;
|
|
146
161
|
/**
|
|
147
162
|
* Annotation
|
|
148
163
|
*/
|
|
149
|
-
typedef struct _xmlSchemaAnnot xmlSchemaAnnot;
|
|
150
|
-
typedef xmlSchemaAnnot *xmlSchemaAnnotPtr;
|
|
151
164
|
struct _xmlSchemaAnnot {
|
|
152
165
|
struct _xmlSchemaAnnot *next;
|
|
153
|
-
|
|
166
|
+
xmlNode *content; /* the annotation */
|
|
154
167
|
};
|
|
155
168
|
|
|
156
169
|
/**
|
|
157
|
-
* XML_SCHEMAS_ANYATTR_SKIP:
|
|
158
|
-
*
|
|
159
170
|
* Skip unknown attribute from validation
|
|
160
171
|
* Obsolete, not used anymore.
|
|
161
172
|
*/
|
|
162
173
|
#define XML_SCHEMAS_ANYATTR_SKIP 1
|
|
163
174
|
/**
|
|
164
|
-
* XML_SCHEMAS_ANYATTR_LAX:
|
|
165
|
-
*
|
|
166
175
|
* Ignore validation non definition on attributes
|
|
167
176
|
* Obsolete, not used anymore.
|
|
168
177
|
*/
|
|
169
178
|
#define XML_SCHEMAS_ANYATTR_LAX 2
|
|
170
179
|
/**
|
|
171
|
-
* XML_SCHEMAS_ANYATTR_STRICT:
|
|
172
|
-
*
|
|
173
180
|
* Apply strict validation rules on attributes
|
|
174
181
|
* Obsolete, not used anymore.
|
|
175
182
|
*/
|
|
176
183
|
#define XML_SCHEMAS_ANYATTR_STRICT 3
|
|
177
184
|
/**
|
|
178
|
-
* XML_SCHEMAS_ANY_SKIP:
|
|
179
|
-
*
|
|
180
185
|
* Skip unknown attribute from validation
|
|
181
186
|
*/
|
|
182
187
|
#define XML_SCHEMAS_ANY_SKIP 1
|
|
183
188
|
/**
|
|
184
|
-
* XML_SCHEMAS_ANY_LAX:
|
|
185
|
-
*
|
|
186
189
|
* Used by wildcards.
|
|
187
190
|
* Validate if type found, don't worry if not found
|
|
188
191
|
*/
|
|
189
192
|
#define XML_SCHEMAS_ANY_LAX 2
|
|
190
193
|
/**
|
|
191
|
-
* XML_SCHEMAS_ANY_STRICT:
|
|
192
|
-
*
|
|
193
194
|
* Used by wildcards.
|
|
194
195
|
* Apply strict validation rules
|
|
195
196
|
*/
|
|
196
197
|
#define XML_SCHEMAS_ANY_STRICT 3
|
|
197
198
|
/**
|
|
198
|
-
* XML_SCHEMAS_ATTR_USE_PROHIBITED:
|
|
199
|
-
*
|
|
200
199
|
* Used by wildcards.
|
|
201
200
|
* The attribute is prohibited.
|
|
202
201
|
*/
|
|
203
202
|
#define XML_SCHEMAS_ATTR_USE_PROHIBITED 0
|
|
204
203
|
/**
|
|
205
|
-
* XML_SCHEMAS_ATTR_USE_REQUIRED:
|
|
206
|
-
*
|
|
207
204
|
* The attribute is required.
|
|
208
205
|
*/
|
|
209
206
|
#define XML_SCHEMAS_ATTR_USE_REQUIRED 1
|
|
210
207
|
/**
|
|
211
|
-
* XML_SCHEMAS_ATTR_USE_OPTIONAL:
|
|
212
|
-
*
|
|
213
208
|
* The attribute is optional.
|
|
214
209
|
*/
|
|
215
210
|
#define XML_SCHEMAS_ATTR_USE_OPTIONAL 2
|
|
216
211
|
/**
|
|
217
|
-
* XML_SCHEMAS_ATTR_GLOBAL:
|
|
218
|
-
*
|
|
219
212
|
* allow elements in no namespace
|
|
220
213
|
*/
|
|
221
214
|
#define XML_SCHEMAS_ATTR_GLOBAL 1 << 0
|
|
222
215
|
/**
|
|
223
|
-
* XML_SCHEMAS_ATTR_NSDEFAULT:
|
|
224
|
-
*
|
|
225
216
|
* allow elements in no namespace
|
|
226
217
|
*/
|
|
227
218
|
#define XML_SCHEMAS_ATTR_NSDEFAULT 1 << 7
|
|
228
219
|
/**
|
|
229
|
-
* XML_SCHEMAS_ATTR_INTERNAL_RESOLVED:
|
|
230
|
-
*
|
|
231
220
|
* this is set when the "type" and "ref" references
|
|
232
221
|
* have been resolved.
|
|
233
222
|
*/
|
|
234
223
|
#define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED 1 << 8
|
|
235
224
|
/**
|
|
236
|
-
* XML_SCHEMAS_ATTR_FIXED:
|
|
237
|
-
*
|
|
238
225
|
* the attribute has a fixed value
|
|
239
226
|
*/
|
|
240
227
|
#define XML_SCHEMAS_ATTR_FIXED 1 << 9
|
|
241
228
|
|
|
229
|
+
/** Schema attribute definition */
|
|
230
|
+
typedef struct _xmlSchemaAttribute xmlSchemaAttribute;
|
|
231
|
+
typedef xmlSchemaAttribute *xmlSchemaAttributePtr;
|
|
242
232
|
/**
|
|
243
|
-
* xmlSchemaAttribute:
|
|
244
233
|
* An attribute definition.
|
|
245
234
|
*/
|
|
246
|
-
|
|
247
|
-
typedef struct _xmlSchemaAttribute xmlSchemaAttribute;
|
|
248
|
-
typedef xmlSchemaAttribute *xmlSchemaAttributePtr;
|
|
249
235
|
struct _xmlSchemaAttribute {
|
|
250
236
|
xmlSchemaTypeType type;
|
|
251
237
|
struct _xmlSchemaAttribute *next; /* the next attribute (not used?) */
|
|
@@ -255,110 +241,99 @@ struct _xmlSchemaAttribute {
|
|
|
255
241
|
const xmlChar *refNs; /* Deprecated; not used */
|
|
256
242
|
const xmlChar *typeName; /* the local name of the type definition */
|
|
257
243
|
const xmlChar *typeNs; /* the ns URI of the type definition */
|
|
258
|
-
|
|
244
|
+
xmlSchemaAnnot *annot;
|
|
259
245
|
|
|
260
|
-
|
|
246
|
+
xmlSchemaType *base; /* Deprecated; not used */
|
|
261
247
|
int occurs; /* Deprecated; not used */
|
|
262
248
|
const xmlChar *defValue; /* The initial value of the value constraint */
|
|
263
|
-
|
|
264
|
-
|
|
249
|
+
xmlSchemaType *subtypes; /* the type definition */
|
|
250
|
+
xmlNode *node;
|
|
265
251
|
const xmlChar *targetNamespace;
|
|
266
252
|
int flags;
|
|
267
253
|
const xmlChar *refPrefix; /* Deprecated; not used */
|
|
268
|
-
|
|
269
|
-
|
|
254
|
+
xmlSchemaVal *defVal; /* The compiled value constraint */
|
|
255
|
+
xmlSchemaAttribute *refDecl; /* Deprecated; not used */
|
|
270
256
|
};
|
|
271
257
|
|
|
258
|
+
/** Linked list of schema attributes */
|
|
259
|
+
typedef struct _xmlSchemaAttributeLink xmlSchemaAttributeLink;
|
|
260
|
+
typedef xmlSchemaAttributeLink *xmlSchemaAttributeLinkPtr;
|
|
272
261
|
/**
|
|
273
|
-
* xmlSchemaAttributeLink:
|
|
274
262
|
* Used to build a list of attribute uses on complexType definitions.
|
|
275
263
|
* WARNING: Deprecated; not used.
|
|
276
264
|
*/
|
|
277
|
-
typedef struct _xmlSchemaAttributeLink xmlSchemaAttributeLink;
|
|
278
|
-
typedef xmlSchemaAttributeLink *xmlSchemaAttributeLinkPtr;
|
|
279
265
|
struct _xmlSchemaAttributeLink {
|
|
280
266
|
struct _xmlSchemaAttributeLink *next;/* the next attribute link ... */
|
|
281
267
|
struct _xmlSchemaAttribute *attr;/* the linked attribute */
|
|
282
268
|
};
|
|
283
269
|
|
|
284
270
|
/**
|
|
285
|
-
* XML_SCHEMAS_WILDCARD_COMPLETE:
|
|
286
|
-
*
|
|
287
271
|
* If the wildcard is complete.
|
|
288
272
|
*/
|
|
289
273
|
#define XML_SCHEMAS_WILDCARD_COMPLETE 1 << 0
|
|
290
274
|
|
|
275
|
+
/** Namespace wildcard */
|
|
276
|
+
typedef struct _xmlSchemaWildcardNs xmlSchemaWildcardNs;
|
|
277
|
+
typedef xmlSchemaWildcardNs *xmlSchemaWildcardNsPtr;
|
|
291
278
|
/**
|
|
292
|
-
* xmlSchemaCharValueLink:
|
|
293
279
|
* Used to build a list of namespaces on wildcards.
|
|
294
280
|
*/
|
|
295
|
-
typedef struct _xmlSchemaWildcardNs xmlSchemaWildcardNs;
|
|
296
|
-
typedef xmlSchemaWildcardNs *xmlSchemaWildcardNsPtr;
|
|
297
281
|
struct _xmlSchemaWildcardNs {
|
|
298
282
|
struct _xmlSchemaWildcardNs *next;/* the next constraint link ... */
|
|
299
283
|
const xmlChar *value;/* the value */
|
|
300
284
|
};
|
|
301
285
|
|
|
286
|
+
/** Name wildcard */
|
|
287
|
+
typedef struct _xmlSchemaWildcard xmlSchemaWildcard;
|
|
288
|
+
typedef xmlSchemaWildcard *xmlSchemaWildcardPtr;
|
|
302
289
|
/**
|
|
303
|
-
* xmlSchemaWildcard.
|
|
304
290
|
* A wildcard.
|
|
305
291
|
*/
|
|
306
|
-
typedef struct _xmlSchemaWildcard xmlSchemaWildcard;
|
|
307
|
-
typedef xmlSchemaWildcard *xmlSchemaWildcardPtr;
|
|
308
292
|
struct _xmlSchemaWildcard {
|
|
309
293
|
xmlSchemaTypeType type; /* The kind of type */
|
|
310
294
|
const xmlChar *id; /* Deprecated; not used */
|
|
311
|
-
|
|
312
|
-
|
|
295
|
+
xmlSchemaAnnot *annot;
|
|
296
|
+
xmlNode *node;
|
|
313
297
|
int minOccurs; /* Deprecated; not used */
|
|
314
298
|
int maxOccurs; /* Deprecated; not used */
|
|
315
299
|
int processContents;
|
|
316
300
|
int any; /* Indicates if the ns constraint is of ##any */
|
|
317
|
-
|
|
318
|
-
|
|
301
|
+
xmlSchemaWildcardNs *nsSet; /* The list of allowed namespaces */
|
|
302
|
+
xmlSchemaWildcardNs *negNsSet; /* The negated namespace */
|
|
319
303
|
int flags;
|
|
320
304
|
};
|
|
321
305
|
|
|
322
306
|
/**
|
|
323
|
-
* XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED:
|
|
324
|
-
*
|
|
325
307
|
* The attribute wildcard has been built.
|
|
326
308
|
*/
|
|
327
309
|
#define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED 1 << 0
|
|
328
310
|
/**
|
|
329
|
-
* XML_SCHEMAS_ATTRGROUP_GLOBAL:
|
|
330
|
-
*
|
|
331
311
|
* The attribute group has been defined.
|
|
332
312
|
*/
|
|
333
313
|
#define XML_SCHEMAS_ATTRGROUP_GLOBAL 1 << 1
|
|
334
314
|
/**
|
|
335
|
-
* XML_SCHEMAS_ATTRGROUP_MARKED:
|
|
336
|
-
*
|
|
337
315
|
* Marks the attr group as marked; used for circular checks.
|
|
338
316
|
*/
|
|
339
317
|
#define XML_SCHEMAS_ATTRGROUP_MARKED 1 << 2
|
|
340
318
|
|
|
341
319
|
/**
|
|
342
|
-
* XML_SCHEMAS_ATTRGROUP_REDEFINED:
|
|
343
|
-
*
|
|
344
320
|
* The attr group was redefined.
|
|
345
321
|
*/
|
|
346
322
|
#define XML_SCHEMAS_ATTRGROUP_REDEFINED 1 << 3
|
|
347
323
|
/**
|
|
348
|
-
* XML_SCHEMAS_ATTRGROUP_HAS_REFS:
|
|
349
|
-
*
|
|
350
324
|
* Whether this attr. group contains attr. group references.
|
|
351
325
|
*/
|
|
352
326
|
#define XML_SCHEMAS_ATTRGROUP_HAS_REFS 1 << 4
|
|
353
327
|
|
|
328
|
+
/** Attribute group */
|
|
329
|
+
typedef struct _xmlSchemaAttributeGroup xmlSchemaAttributeGroup;
|
|
330
|
+
typedef xmlSchemaAttributeGroup *xmlSchemaAttributeGroupPtr;
|
|
354
331
|
/**
|
|
355
332
|
* An attribute group definition.
|
|
356
333
|
*
|
|
357
334
|
* xmlSchemaAttribute and xmlSchemaAttributeGroup start of structures
|
|
358
335
|
* must be kept similar
|
|
359
336
|
*/
|
|
360
|
-
typedef struct _xmlSchemaAttributeGroup xmlSchemaAttributeGroup;
|
|
361
|
-
typedef xmlSchemaAttributeGroup *xmlSchemaAttributeGroupPtr;
|
|
362
337
|
struct _xmlSchemaAttributeGroup {
|
|
363
338
|
xmlSchemaTypeType type; /* The kind of type */
|
|
364
339
|
struct _xmlSchemaAttribute *next;/* the next attribute if in a group ... */
|
|
@@ -366,75 +341,63 @@ struct _xmlSchemaAttributeGroup {
|
|
|
366
341
|
const xmlChar *id;
|
|
367
342
|
const xmlChar *ref; /* Deprecated; not used */
|
|
368
343
|
const xmlChar *refNs; /* Deprecated; not used */
|
|
369
|
-
|
|
344
|
+
xmlSchemaAnnot *annot;
|
|
370
345
|
|
|
371
|
-
|
|
372
|
-
|
|
346
|
+
xmlSchemaAttribute *attributes; /* Deprecated; not used */
|
|
347
|
+
xmlNode *node;
|
|
373
348
|
int flags;
|
|
374
|
-
|
|
349
|
+
xmlSchemaWildcard *attributeWildcard;
|
|
375
350
|
const xmlChar *refPrefix; /* Deprecated; not used */
|
|
376
|
-
|
|
351
|
+
xmlSchemaAttributeGroup *refItem; /* Deprecated; not used */
|
|
377
352
|
const xmlChar *targetNamespace;
|
|
378
353
|
void *attrUses;
|
|
379
354
|
};
|
|
380
355
|
|
|
356
|
+
/** Linked list of schema types */
|
|
357
|
+
typedef struct _xmlSchemaTypeLink xmlSchemaTypeLink;
|
|
358
|
+
typedef xmlSchemaTypeLink *xmlSchemaTypeLinkPtr;
|
|
381
359
|
/**
|
|
382
|
-
* xmlSchemaTypeLink:
|
|
383
360
|
* Used to build a list of types (e.g. member types of
|
|
384
361
|
* simpleType with variety "union").
|
|
385
362
|
*/
|
|
386
|
-
typedef struct _xmlSchemaTypeLink xmlSchemaTypeLink;
|
|
387
|
-
typedef xmlSchemaTypeLink *xmlSchemaTypeLinkPtr;
|
|
388
363
|
struct _xmlSchemaTypeLink {
|
|
389
364
|
struct _xmlSchemaTypeLink *next;/* the next type link ... */
|
|
390
|
-
|
|
365
|
+
xmlSchemaType *type;/* the linked type */
|
|
391
366
|
};
|
|
392
367
|
|
|
368
|
+
/** Linked list of schema facets */
|
|
369
|
+
typedef struct _xmlSchemaFacetLink xmlSchemaFacetLink;
|
|
370
|
+
typedef xmlSchemaFacetLink *xmlSchemaFacetLinkPtr;
|
|
393
371
|
/**
|
|
394
|
-
* xmlSchemaFacetLink:
|
|
395
372
|
* Used to build a list of facets.
|
|
396
373
|
*/
|
|
397
|
-
typedef struct _xmlSchemaFacetLink xmlSchemaFacetLink;
|
|
398
|
-
typedef xmlSchemaFacetLink *xmlSchemaFacetLinkPtr;
|
|
399
374
|
struct _xmlSchemaFacetLink {
|
|
400
375
|
struct _xmlSchemaFacetLink *next;/* the next facet link ... */
|
|
401
|
-
|
|
376
|
+
xmlSchemaFacet *facet;/* the linked facet */
|
|
402
377
|
};
|
|
403
378
|
|
|
404
379
|
/**
|
|
405
|
-
* XML_SCHEMAS_TYPE_MIXED:
|
|
406
|
-
*
|
|
407
380
|
* the element content type is mixed
|
|
408
381
|
*/
|
|
409
382
|
#define XML_SCHEMAS_TYPE_MIXED 1 << 0
|
|
410
383
|
/**
|
|
411
|
-
* XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION:
|
|
412
|
-
*
|
|
413
384
|
* the simple or complex type has a derivation method of "extension".
|
|
414
385
|
*/
|
|
415
386
|
#define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION 1 << 1
|
|
416
387
|
/**
|
|
417
|
-
* XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION:
|
|
418
|
-
*
|
|
419
388
|
* the simple or complex type has a derivation method of "restriction".
|
|
420
389
|
*/
|
|
421
390
|
#define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION 1 << 2
|
|
422
391
|
/**
|
|
423
|
-
* XML_SCHEMAS_TYPE_GLOBAL:
|
|
424
|
-
*
|
|
425
392
|
* the type is global
|
|
426
393
|
*/
|
|
427
394
|
#define XML_SCHEMAS_TYPE_GLOBAL 1 << 3
|
|
428
395
|
/**
|
|
429
|
-
* XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD:
|
|
430
|
-
*
|
|
431
396
|
* the complexType owns an attribute wildcard, i.e.
|
|
432
397
|
* it can be freed by the complexType
|
|
433
398
|
*/
|
|
434
399
|
#define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD 1 << 4 /* Obsolete. */
|
|
435
400
|
/**
|
|
436
|
-
* XML_SCHEMAS_TYPE_VARIETY_ABSENT:
|
|
437
|
-
*
|
|
438
401
|
* the simpleType has a variety of "absent".
|
|
439
402
|
* TODO: Actually not necessary :-/, since if
|
|
440
403
|
* none of the variety flags occur then it's
|
|
@@ -442,162 +405,112 @@ struct _xmlSchemaFacetLink {
|
|
|
442
405
|
*/
|
|
443
406
|
#define XML_SCHEMAS_TYPE_VARIETY_ABSENT 1 << 5
|
|
444
407
|
/**
|
|
445
|
-
* XML_SCHEMAS_TYPE_VARIETY_LIST:
|
|
446
|
-
*
|
|
447
408
|
* the simpleType has a variety of "list".
|
|
448
409
|
*/
|
|
449
410
|
#define XML_SCHEMAS_TYPE_VARIETY_LIST 1 << 6
|
|
450
411
|
/**
|
|
451
|
-
* XML_SCHEMAS_TYPE_VARIETY_UNION:
|
|
452
|
-
*
|
|
453
412
|
* the simpleType has a variety of "union".
|
|
454
413
|
*/
|
|
455
414
|
#define XML_SCHEMAS_TYPE_VARIETY_UNION 1 << 7
|
|
456
415
|
/**
|
|
457
|
-
* XML_SCHEMAS_TYPE_VARIETY_ATOMIC:
|
|
458
|
-
*
|
|
459
416
|
* the simpleType has a variety of "union".
|
|
460
417
|
*/
|
|
461
418
|
#define XML_SCHEMAS_TYPE_VARIETY_ATOMIC 1 << 8
|
|
462
419
|
/**
|
|
463
|
-
* XML_SCHEMAS_TYPE_FINAL_EXTENSION:
|
|
464
|
-
*
|
|
465
420
|
* the complexType has a final of "extension".
|
|
466
421
|
*/
|
|
467
422
|
#define XML_SCHEMAS_TYPE_FINAL_EXTENSION 1 << 9
|
|
468
423
|
/**
|
|
469
|
-
* XML_SCHEMAS_TYPE_FINAL_RESTRICTION:
|
|
470
|
-
*
|
|
471
424
|
* the simpleType/complexType has a final of "restriction".
|
|
472
425
|
*/
|
|
473
426
|
#define XML_SCHEMAS_TYPE_FINAL_RESTRICTION 1 << 10
|
|
474
427
|
/**
|
|
475
|
-
* XML_SCHEMAS_TYPE_FINAL_LIST:
|
|
476
|
-
*
|
|
477
428
|
* the simpleType has a final of "list".
|
|
478
429
|
*/
|
|
479
430
|
#define XML_SCHEMAS_TYPE_FINAL_LIST 1 << 11
|
|
480
431
|
/**
|
|
481
|
-
* XML_SCHEMAS_TYPE_FINAL_UNION:
|
|
482
|
-
*
|
|
483
432
|
* the simpleType has a final of "union".
|
|
484
433
|
*/
|
|
485
434
|
#define XML_SCHEMAS_TYPE_FINAL_UNION 1 << 12
|
|
486
435
|
/**
|
|
487
|
-
* XML_SCHEMAS_TYPE_FINAL_DEFAULT:
|
|
488
|
-
*
|
|
489
436
|
* the simpleType has a final of "default".
|
|
490
437
|
*/
|
|
491
438
|
#define XML_SCHEMAS_TYPE_FINAL_DEFAULT 1 << 13
|
|
492
439
|
/**
|
|
493
|
-
* XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE:
|
|
494
|
-
*
|
|
495
440
|
* Marks the item as a builtin primitive.
|
|
496
441
|
*/
|
|
497
442
|
#define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE 1 << 14
|
|
498
443
|
/**
|
|
499
|
-
* XML_SCHEMAS_TYPE_MARKED:
|
|
500
|
-
*
|
|
501
444
|
* Marks the item as marked; used for circular checks.
|
|
502
445
|
*/
|
|
503
446
|
#define XML_SCHEMAS_TYPE_MARKED 1 << 16
|
|
504
447
|
/**
|
|
505
|
-
* XML_SCHEMAS_TYPE_BLOCK_DEFAULT:
|
|
506
|
-
*
|
|
507
448
|
* the complexType did not specify 'block' so use the default of the
|
|
508
|
-
*
|
|
449
|
+
* `<schema>` item.
|
|
509
450
|
*/
|
|
510
451
|
#define XML_SCHEMAS_TYPE_BLOCK_DEFAULT 1 << 17
|
|
511
452
|
/**
|
|
512
|
-
* XML_SCHEMAS_TYPE_BLOCK_EXTENSION:
|
|
513
|
-
*
|
|
514
453
|
* the complexType has a 'block' of "extension".
|
|
515
454
|
*/
|
|
516
455
|
#define XML_SCHEMAS_TYPE_BLOCK_EXTENSION 1 << 18
|
|
517
456
|
/**
|
|
518
|
-
* XML_SCHEMAS_TYPE_BLOCK_RESTRICTION:
|
|
519
|
-
*
|
|
520
457
|
* the complexType has a 'block' of "restriction".
|
|
521
458
|
*/
|
|
522
459
|
#define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION 1 << 19
|
|
523
460
|
/**
|
|
524
|
-
* XML_SCHEMAS_TYPE_ABSTRACT:
|
|
525
|
-
*
|
|
526
461
|
* the simple/complexType is abstract.
|
|
527
462
|
*/
|
|
528
463
|
#define XML_SCHEMAS_TYPE_ABSTRACT 1 << 20
|
|
529
464
|
/**
|
|
530
|
-
* XML_SCHEMAS_TYPE_FACETSNEEDVALUE:
|
|
531
|
-
*
|
|
532
465
|
* indicates if the facets need a computed value
|
|
533
466
|
*/
|
|
534
467
|
#define XML_SCHEMAS_TYPE_FACETSNEEDVALUE 1 << 21
|
|
535
468
|
/**
|
|
536
|
-
* XML_SCHEMAS_TYPE_INTERNAL_RESOLVED:
|
|
537
|
-
*
|
|
538
469
|
* indicates that the type was typefixed
|
|
539
470
|
*/
|
|
540
471
|
#define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED 1 << 22
|
|
541
472
|
/**
|
|
542
|
-
* XML_SCHEMAS_TYPE_INTERNAL_INVALID:
|
|
543
|
-
*
|
|
544
473
|
* indicates that the type is invalid
|
|
545
474
|
*/
|
|
546
475
|
#define XML_SCHEMAS_TYPE_INTERNAL_INVALID 1 << 23
|
|
547
476
|
/**
|
|
548
|
-
* XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE:
|
|
549
|
-
*
|
|
550
477
|
* a whitespace-facet value of "preserve"
|
|
551
478
|
*/
|
|
552
479
|
#define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE 1 << 24
|
|
553
480
|
/**
|
|
554
|
-
* XML_SCHEMAS_TYPE_WHITESPACE_REPLACE:
|
|
555
|
-
*
|
|
556
481
|
* a whitespace-facet value of "replace"
|
|
557
482
|
*/
|
|
558
483
|
#define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE 1 << 25
|
|
559
484
|
/**
|
|
560
|
-
* XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE:
|
|
561
|
-
*
|
|
562
485
|
* a whitespace-facet value of "collapse"
|
|
563
486
|
*/
|
|
564
487
|
#define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE 1 << 26
|
|
565
488
|
/**
|
|
566
|
-
* XML_SCHEMAS_TYPE_HAS_FACETS:
|
|
567
|
-
*
|
|
568
489
|
* has facets
|
|
569
490
|
*/
|
|
570
491
|
#define XML_SCHEMAS_TYPE_HAS_FACETS 1 << 27
|
|
571
492
|
/**
|
|
572
|
-
* XML_SCHEMAS_TYPE_NORMVALUENEEDED:
|
|
573
|
-
*
|
|
574
493
|
* indicates if the facets (pattern) need a normalized value
|
|
575
494
|
*/
|
|
576
495
|
#define XML_SCHEMAS_TYPE_NORMVALUENEEDED 1 << 28
|
|
577
496
|
|
|
578
497
|
/**
|
|
579
|
-
* XML_SCHEMAS_TYPE_FIXUP_1:
|
|
580
|
-
*
|
|
581
498
|
* First stage of fixup was done.
|
|
582
499
|
*/
|
|
583
500
|
#define XML_SCHEMAS_TYPE_FIXUP_1 1 << 29
|
|
584
501
|
|
|
585
502
|
/**
|
|
586
|
-
* XML_SCHEMAS_TYPE_REDEFINED:
|
|
587
|
-
*
|
|
588
503
|
* The type was redefined.
|
|
589
504
|
*/
|
|
590
505
|
#define XML_SCHEMAS_TYPE_REDEFINED 1 << 30
|
|
506
|
+
#if 0
|
|
591
507
|
/**
|
|
592
|
-
* XML_SCHEMAS_TYPE_REDEFINING:
|
|
593
|
-
*
|
|
594
508
|
* The type redefines an other type.
|
|
595
509
|
*/
|
|
596
|
-
|
|
510
|
+
#define XML_SCHEMAS_TYPE_REDEFINING 1 << 31
|
|
511
|
+
#endif
|
|
597
512
|
|
|
598
513
|
/**
|
|
599
|
-
* _xmlSchemaType:
|
|
600
|
-
*
|
|
601
514
|
* Schemas type definition.
|
|
602
515
|
*/
|
|
603
516
|
struct _xmlSchemaType {
|
|
@@ -607,10 +520,10 @@ struct _xmlSchemaType {
|
|
|
607
520
|
const xmlChar *id ; /* Deprecated; not used */
|
|
608
521
|
const xmlChar *ref; /* Deprecated; not used */
|
|
609
522
|
const xmlChar *refNs; /* Deprecated; not used */
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
523
|
+
xmlSchemaAnnot *annot;
|
|
524
|
+
xmlSchemaType *subtypes;
|
|
525
|
+
xmlSchemaAttribute *attributes; /* Deprecated; not used */
|
|
526
|
+
xmlNode *node;
|
|
614
527
|
int minOccurs; /* Deprecated; not used */
|
|
615
528
|
int maxOccurs; /* Deprecated; not used */
|
|
616
529
|
|
|
@@ -618,151 +531,113 @@ struct _xmlSchemaType {
|
|
|
618
531
|
xmlSchemaContentType contentType;
|
|
619
532
|
const xmlChar *base; /* Base type's local name */
|
|
620
533
|
const xmlChar *baseNs; /* Base type's target namespace */
|
|
621
|
-
|
|
622
|
-
|
|
534
|
+
xmlSchemaType *baseType; /* The base type component */
|
|
535
|
+
xmlSchemaFacet *facets; /* Local facets */
|
|
623
536
|
struct _xmlSchemaType *redef; /* Deprecated; not used */
|
|
624
537
|
int recurse; /* Obsolete */
|
|
625
|
-
|
|
626
|
-
|
|
538
|
+
xmlSchemaAttributeLink **attributeUses; /* Deprecated; not used */
|
|
539
|
+
xmlSchemaWildcard *attributeWildcard;
|
|
627
540
|
int builtInType; /* Type of built-in types. */
|
|
628
|
-
|
|
629
|
-
|
|
541
|
+
xmlSchemaTypeLink *memberTypes; /* member-types if a union type. */
|
|
542
|
+
xmlSchemaFacetLink *facetSet; /* All facets (incl. inherited) */
|
|
630
543
|
const xmlChar *refPrefix; /* Deprecated; not used */
|
|
631
|
-
|
|
544
|
+
xmlSchemaType *contentTypeDef; /* Used for the simple content of complex types.
|
|
632
545
|
Could we use @subtypes for this? */
|
|
633
|
-
|
|
546
|
+
xmlRegexp *contModel; /* Holds the automaton of the content model */
|
|
634
547
|
const xmlChar *targetNamespace;
|
|
635
548
|
void *attrUses;
|
|
636
549
|
};
|
|
637
550
|
|
|
638
|
-
/*
|
|
639
|
-
* xmlSchemaElement:
|
|
640
|
-
* An element definition.
|
|
641
|
-
*
|
|
642
|
-
* xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of
|
|
643
|
-
* structures must be kept similar
|
|
644
|
-
*/
|
|
645
551
|
/**
|
|
646
|
-
* XML_SCHEMAS_ELEM_NILLABLE:
|
|
647
|
-
*
|
|
648
552
|
* the element is nillable
|
|
649
553
|
*/
|
|
650
554
|
#define XML_SCHEMAS_ELEM_NILLABLE 1 << 0
|
|
651
555
|
/**
|
|
652
|
-
* XML_SCHEMAS_ELEM_GLOBAL:
|
|
653
|
-
*
|
|
654
556
|
* the element is global
|
|
655
557
|
*/
|
|
656
558
|
#define XML_SCHEMAS_ELEM_GLOBAL 1 << 1
|
|
657
559
|
/**
|
|
658
|
-
* XML_SCHEMAS_ELEM_DEFAULT:
|
|
659
|
-
*
|
|
660
560
|
* the element has a default value
|
|
661
561
|
*/
|
|
662
562
|
#define XML_SCHEMAS_ELEM_DEFAULT 1 << 2
|
|
663
563
|
/**
|
|
664
|
-
* XML_SCHEMAS_ELEM_FIXED:
|
|
665
|
-
*
|
|
666
564
|
* the element has a fixed value
|
|
667
565
|
*/
|
|
668
566
|
#define XML_SCHEMAS_ELEM_FIXED 1 << 3
|
|
669
567
|
/**
|
|
670
|
-
* XML_SCHEMAS_ELEM_ABSTRACT:
|
|
671
|
-
*
|
|
672
568
|
* the element is abstract
|
|
673
569
|
*/
|
|
674
570
|
#define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4
|
|
675
571
|
/**
|
|
676
|
-
* XML_SCHEMAS_ELEM_TOPLEVEL:
|
|
677
|
-
*
|
|
678
572
|
* the element is top level
|
|
679
573
|
* obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead
|
|
680
574
|
*/
|
|
681
575
|
#define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5
|
|
682
576
|
/**
|
|
683
|
-
* XML_SCHEMAS_ELEM_REF:
|
|
684
|
-
*
|
|
685
577
|
* the element is a reference to a type
|
|
686
578
|
*/
|
|
687
579
|
#define XML_SCHEMAS_ELEM_REF 1 << 6
|
|
688
580
|
/**
|
|
689
|
-
* XML_SCHEMAS_ELEM_NSDEFAULT:
|
|
690
|
-
*
|
|
691
581
|
* allow elements in no namespace
|
|
692
582
|
* Obsolete, not used anymore.
|
|
693
583
|
*/
|
|
694
584
|
#define XML_SCHEMAS_ELEM_NSDEFAULT 1 << 7
|
|
695
585
|
/**
|
|
696
|
-
* XML_SCHEMAS_ELEM_INTERNAL_RESOLVED:
|
|
697
|
-
*
|
|
698
586
|
* this is set when "type", "ref", "substitutionGroup"
|
|
699
587
|
* references have been resolved.
|
|
700
588
|
*/
|
|
701
589
|
#define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED 1 << 8
|
|
702
590
|
/**
|
|
703
|
-
* XML_SCHEMAS_ELEM_CIRCULAR:
|
|
704
|
-
*
|
|
705
591
|
* a helper flag for the search of circular references.
|
|
706
592
|
*/
|
|
707
593
|
#define XML_SCHEMAS_ELEM_CIRCULAR 1 << 9
|
|
708
594
|
/**
|
|
709
|
-
* XML_SCHEMAS_ELEM_BLOCK_ABSENT:
|
|
710
|
-
*
|
|
711
595
|
* the "block" attribute is absent
|
|
712
596
|
*/
|
|
713
597
|
#define XML_SCHEMAS_ELEM_BLOCK_ABSENT 1 << 10
|
|
714
598
|
/**
|
|
715
|
-
* XML_SCHEMAS_ELEM_BLOCK_EXTENSION:
|
|
716
|
-
*
|
|
717
599
|
* disallowed substitutions are absent
|
|
718
600
|
*/
|
|
719
601
|
#define XML_SCHEMAS_ELEM_BLOCK_EXTENSION 1 << 11
|
|
720
602
|
/**
|
|
721
|
-
* XML_SCHEMAS_ELEM_BLOCK_RESTRICTION:
|
|
722
|
-
*
|
|
723
603
|
* disallowed substitutions: "restriction"
|
|
724
604
|
*/
|
|
725
605
|
#define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION 1 << 12
|
|
726
606
|
/**
|
|
727
|
-
* XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION:
|
|
728
|
-
*
|
|
729
607
|
* disallowed substitutions: "substitution"
|
|
730
608
|
*/
|
|
731
609
|
#define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION 1 << 13
|
|
732
610
|
/**
|
|
733
|
-
* XML_SCHEMAS_ELEM_FINAL_ABSENT:
|
|
734
|
-
*
|
|
735
611
|
* substitution group exclusions are absent
|
|
736
612
|
*/
|
|
737
613
|
#define XML_SCHEMAS_ELEM_FINAL_ABSENT 1 << 14
|
|
738
614
|
/**
|
|
739
|
-
* XML_SCHEMAS_ELEM_FINAL_EXTENSION:
|
|
740
|
-
*
|
|
741
615
|
* substitution group exclusions: "extension"
|
|
742
616
|
*/
|
|
743
617
|
#define XML_SCHEMAS_ELEM_FINAL_EXTENSION 1 << 15
|
|
744
618
|
/**
|
|
745
|
-
* XML_SCHEMAS_ELEM_FINAL_RESTRICTION:
|
|
746
|
-
*
|
|
747
619
|
* substitution group exclusions: "restriction"
|
|
748
620
|
*/
|
|
749
621
|
#define XML_SCHEMAS_ELEM_FINAL_RESTRICTION 1 << 16
|
|
750
622
|
/**
|
|
751
|
-
* XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD:
|
|
752
|
-
*
|
|
753
623
|
* the declaration is a substitution group head
|
|
754
624
|
*/
|
|
755
625
|
#define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD 1 << 17
|
|
756
626
|
/**
|
|
757
|
-
* XML_SCHEMAS_ELEM_INTERNAL_CHECKED:
|
|
758
|
-
*
|
|
759
627
|
* this is set when the elem decl has been checked against
|
|
760
628
|
* all constraints
|
|
761
629
|
*/
|
|
762
630
|
#define XML_SCHEMAS_ELEM_INTERNAL_CHECKED 1 << 18
|
|
763
631
|
|
|
632
|
+
/** Schema element definition */
|
|
764
633
|
typedef struct _xmlSchemaElement xmlSchemaElement;
|
|
765
634
|
typedef xmlSchemaElement *xmlSchemaElementPtr;
|
|
635
|
+
/**
|
|
636
|
+
* An element definition.
|
|
637
|
+
*
|
|
638
|
+
* xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of
|
|
639
|
+
* structures must be kept similar
|
|
640
|
+
*/
|
|
766
641
|
struct _xmlSchemaElement {
|
|
767
642
|
xmlSchemaTypeType type; /* The kind of type */
|
|
768
643
|
struct _xmlSchemaType *next; /* Not used? */
|
|
@@ -770,10 +645,10 @@ struct _xmlSchemaElement {
|
|
|
770
645
|
const xmlChar *id; /* Deprecated; not used */
|
|
771
646
|
const xmlChar *ref; /* Deprecated; not used */
|
|
772
647
|
const xmlChar *refNs; /* Deprecated; not used */
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
648
|
+
xmlSchemaAnnot *annot;
|
|
649
|
+
xmlSchemaType *subtypes; /* the type definition */
|
|
650
|
+
xmlSchemaAttribute *attributes;
|
|
651
|
+
xmlNode *node;
|
|
777
652
|
int minOccurs; /* Deprecated; not used */
|
|
778
653
|
int maxOccurs; /* Deprecated; not used */
|
|
779
654
|
|
|
@@ -787,34 +662,26 @@ struct _xmlSchemaElement {
|
|
|
787
662
|
const xmlChar *value; /* The original value of the value constraint. */
|
|
788
663
|
struct _xmlSchemaElement *refDecl; /* This will now be used for the
|
|
789
664
|
substitution group affiliation */
|
|
790
|
-
|
|
665
|
+
xmlRegexp *contModel; /* Obsolete for WXS, maybe used for RelaxNG */
|
|
791
666
|
xmlSchemaContentType contentType;
|
|
792
667
|
const xmlChar *refPrefix; /* Deprecated; not used */
|
|
793
|
-
|
|
668
|
+
xmlSchemaVal *defVal; /* The compiled value constraint. */
|
|
794
669
|
void *idcs; /* The identity-constraint defs */
|
|
795
670
|
};
|
|
796
671
|
|
|
797
|
-
|
|
798
|
-
* XML_SCHEMAS_FACET_UNKNOWN:
|
|
799
|
-
*
|
|
672
|
+
/**
|
|
800
673
|
* unknown facet handling
|
|
801
674
|
*/
|
|
802
675
|
#define XML_SCHEMAS_FACET_UNKNOWN 0
|
|
803
|
-
|
|
804
|
-
* XML_SCHEMAS_FACET_PRESERVE:
|
|
805
|
-
*
|
|
676
|
+
/**
|
|
806
677
|
* preserve the type of the facet
|
|
807
678
|
*/
|
|
808
679
|
#define XML_SCHEMAS_FACET_PRESERVE 1
|
|
809
|
-
|
|
810
|
-
* XML_SCHEMAS_FACET_REPLACE:
|
|
811
|
-
*
|
|
680
|
+
/**
|
|
812
681
|
* replace the type of the facet
|
|
813
682
|
*/
|
|
814
683
|
#define XML_SCHEMAS_FACET_REPLACE 2
|
|
815
|
-
|
|
816
|
-
* XML_SCHEMAS_FACET_COLLAPSE:
|
|
817
|
-
*
|
|
684
|
+
/**
|
|
818
685
|
* collapse the types of the facet
|
|
819
686
|
*/
|
|
820
687
|
#define XML_SCHEMAS_FACET_COLLAPSE 3
|
|
@@ -826,23 +693,24 @@ struct _xmlSchemaFacet {
|
|
|
826
693
|
struct _xmlSchemaFacet *next;/* the next type if in a sequence ... */
|
|
827
694
|
const xmlChar *value; /* The original value */
|
|
828
695
|
const xmlChar *id; /* Obsolete */
|
|
829
|
-
|
|
830
|
-
|
|
696
|
+
xmlSchemaAnnot *annot;
|
|
697
|
+
xmlNode *node;
|
|
831
698
|
int fixed; /* XML_SCHEMAS_FACET_PRESERVE, etc. */
|
|
832
699
|
int whitespace;
|
|
833
|
-
|
|
834
|
-
|
|
700
|
+
xmlSchemaVal *val; /* The compiled value */
|
|
701
|
+
xmlRegexp *regexp; /* The regex for patterns */
|
|
835
702
|
};
|
|
836
703
|
|
|
704
|
+
/** Schema notation */
|
|
705
|
+
typedef struct _xmlSchemaNotation xmlSchemaNotation;
|
|
706
|
+
typedef xmlSchemaNotation *xmlSchemaNotationPtr;
|
|
837
707
|
/**
|
|
838
708
|
* A notation definition.
|
|
839
709
|
*/
|
|
840
|
-
typedef struct _xmlSchemaNotation xmlSchemaNotation;
|
|
841
|
-
typedef xmlSchemaNotation *xmlSchemaNotationPtr;
|
|
842
710
|
struct _xmlSchemaNotation {
|
|
843
711
|
xmlSchemaTypeType type; /* The kind of type */
|
|
844
712
|
const xmlChar *name;
|
|
845
|
-
|
|
713
|
+
xmlSchemaAnnot *annot;
|
|
846
714
|
const xmlChar *identifier;
|
|
847
715
|
const xmlChar *targetNamespace;
|
|
848
716
|
};
|
|
@@ -854,71 +722,49 @@ struct _xmlSchemaNotation {
|
|
|
854
722
|
* on the component level as per spec.
|
|
855
723
|
*/
|
|
856
724
|
/**
|
|
857
|
-
* XML_SCHEMAS_QUALIF_ELEM:
|
|
858
|
-
*
|
|
859
725
|
* Reflects elementFormDefault == qualified in
|
|
860
726
|
* an XML schema document.
|
|
861
727
|
*/
|
|
862
728
|
#define XML_SCHEMAS_QUALIF_ELEM 1 << 0
|
|
863
729
|
/**
|
|
864
|
-
* XML_SCHEMAS_QUALIF_ATTR:
|
|
865
|
-
*
|
|
866
730
|
* Reflects attributeFormDefault == qualified in
|
|
867
731
|
* an XML schema document.
|
|
868
732
|
*/
|
|
869
733
|
#define XML_SCHEMAS_QUALIF_ATTR 1 << 1
|
|
870
734
|
/**
|
|
871
|
-
* XML_SCHEMAS_FINAL_DEFAULT_EXTENSION:
|
|
872
|
-
*
|
|
873
735
|
* the schema has "extension" in the set of finalDefault.
|
|
874
736
|
*/
|
|
875
737
|
#define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION 1 << 2
|
|
876
738
|
/**
|
|
877
|
-
* XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION:
|
|
878
|
-
*
|
|
879
739
|
* the schema has "restriction" in the set of finalDefault.
|
|
880
740
|
*/
|
|
881
741
|
#define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION 1 << 3
|
|
882
742
|
/**
|
|
883
|
-
* XML_SCHEMAS_FINAL_DEFAULT_LIST:
|
|
884
|
-
*
|
|
885
743
|
* the schema has "list" in the set of finalDefault.
|
|
886
744
|
*/
|
|
887
745
|
#define XML_SCHEMAS_FINAL_DEFAULT_LIST 1 << 4
|
|
888
746
|
/**
|
|
889
|
-
* XML_SCHEMAS_FINAL_DEFAULT_UNION:
|
|
890
|
-
*
|
|
891
747
|
* the schema has "union" in the set of finalDefault.
|
|
892
748
|
*/
|
|
893
749
|
#define XML_SCHEMAS_FINAL_DEFAULT_UNION 1 << 5
|
|
894
750
|
/**
|
|
895
|
-
* XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION:
|
|
896
|
-
*
|
|
897
751
|
* the schema has "extension" in the set of blockDefault.
|
|
898
752
|
*/
|
|
899
753
|
#define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION 1 << 6
|
|
900
754
|
/**
|
|
901
|
-
* XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION:
|
|
902
|
-
*
|
|
903
755
|
* the schema has "restriction" in the set of blockDefault.
|
|
904
756
|
*/
|
|
905
757
|
#define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION 1 << 7
|
|
906
758
|
/**
|
|
907
|
-
* XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION:
|
|
908
|
-
*
|
|
909
759
|
* the schema has "substitution" in the set of blockDefault.
|
|
910
760
|
*/
|
|
911
761
|
#define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION 1 << 8
|
|
912
762
|
/**
|
|
913
|
-
* XML_SCHEMAS_INCLUDING_CONVERT_NS:
|
|
914
|
-
*
|
|
915
763
|
* the schema is currently including an other schema with
|
|
916
764
|
* no target namespace.
|
|
917
765
|
*/
|
|
918
766
|
#define XML_SCHEMAS_INCLUDING_CONVERT_NS 1 << 9
|
|
919
767
|
/**
|
|
920
|
-
* _xmlSchema:
|
|
921
|
-
*
|
|
922
768
|
* A Schemas definition
|
|
923
769
|
*/
|
|
924
770
|
struct _xmlSchema {
|
|
@@ -926,30 +772,30 @@ struct _xmlSchema {
|
|
|
926
772
|
const xmlChar *targetNamespace; /* the target namespace */
|
|
927
773
|
const xmlChar *version;
|
|
928
774
|
const xmlChar *id; /* Obsolete */
|
|
929
|
-
|
|
930
|
-
|
|
775
|
+
xmlDoc *doc;
|
|
776
|
+
xmlSchemaAnnot *annot;
|
|
931
777
|
int flags;
|
|
932
778
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
779
|
+
xmlHashTable *typeDecl;
|
|
780
|
+
xmlHashTable *attrDecl;
|
|
781
|
+
xmlHashTable *attrgrpDecl;
|
|
782
|
+
xmlHashTable *elemDecl;
|
|
783
|
+
xmlHashTable *notaDecl;
|
|
938
784
|
|
|
939
|
-
|
|
785
|
+
xmlHashTable *schemasImports;
|
|
940
786
|
|
|
941
787
|
void *_private; /* unused by the library for users or bindings */
|
|
942
|
-
|
|
943
|
-
|
|
788
|
+
xmlHashTable *groupDecl;
|
|
789
|
+
xmlDict *dict;
|
|
944
790
|
void *includes; /* the includes, this is opaque for now */
|
|
945
791
|
int preserve; /* whether to free the document */
|
|
946
792
|
int counter; /* used to give anonymous components unique names */
|
|
947
|
-
|
|
793
|
+
xmlHashTable *idcDef; /* All identity-constraint defs. */
|
|
948
794
|
void *volatiles; /* Obsolete */
|
|
949
795
|
};
|
|
950
796
|
|
|
951
|
-
XMLPUBFUN void xmlSchemaFreeType (
|
|
952
|
-
XMLPUBFUN void xmlSchemaFreeWildcard(
|
|
797
|
+
XMLPUBFUN void xmlSchemaFreeType (xmlSchemaType *type);
|
|
798
|
+
XMLPUBFUN void xmlSchemaFreeWildcard(xmlSchemaWildcard *wildcard);
|
|
953
799
|
|
|
954
800
|
#ifdef __cplusplus
|
|
955
801
|
}
|