File indexing completed on 2024-11-15 09:44:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef __XML_SCHEMA_INTERNALS_H__
0015 #define __XML_SCHEMA_INTERNALS_H__
0016
0017 #include <libxml/xmlversion.h>
0018
0019 #ifdef LIBXML_SCHEMAS_ENABLED
0020
0021 #include <libxml/xmlregexp.h>
0022 #include <libxml/hash.h>
0023 #include <libxml/dict.h>
0024
0025 #ifdef __cplusplus
0026 extern "C" {
0027 #endif
0028
0029 typedef enum {
0030 XML_SCHEMAS_UNKNOWN = 0,
0031 XML_SCHEMAS_STRING = 1,
0032 XML_SCHEMAS_NORMSTRING = 2,
0033 XML_SCHEMAS_DECIMAL = 3,
0034 XML_SCHEMAS_TIME = 4,
0035 XML_SCHEMAS_GDAY = 5,
0036 XML_SCHEMAS_GMONTH = 6,
0037 XML_SCHEMAS_GMONTHDAY = 7,
0038 XML_SCHEMAS_GYEAR = 8,
0039 XML_SCHEMAS_GYEARMONTH = 9,
0040 XML_SCHEMAS_DATE = 10,
0041 XML_SCHEMAS_DATETIME = 11,
0042 XML_SCHEMAS_DURATION = 12,
0043 XML_SCHEMAS_FLOAT = 13,
0044 XML_SCHEMAS_DOUBLE = 14,
0045 XML_SCHEMAS_BOOLEAN = 15,
0046 XML_SCHEMAS_TOKEN = 16,
0047 XML_SCHEMAS_LANGUAGE = 17,
0048 XML_SCHEMAS_NMTOKEN = 18,
0049 XML_SCHEMAS_NMTOKENS = 19,
0050 XML_SCHEMAS_NAME = 20,
0051 XML_SCHEMAS_QNAME = 21,
0052 XML_SCHEMAS_NCNAME = 22,
0053 XML_SCHEMAS_ID = 23,
0054 XML_SCHEMAS_IDREF = 24,
0055 XML_SCHEMAS_IDREFS = 25,
0056 XML_SCHEMAS_ENTITY = 26,
0057 XML_SCHEMAS_ENTITIES = 27,
0058 XML_SCHEMAS_NOTATION = 28,
0059 XML_SCHEMAS_ANYURI = 29,
0060 XML_SCHEMAS_INTEGER = 30,
0061 XML_SCHEMAS_NPINTEGER = 31,
0062 XML_SCHEMAS_NINTEGER = 32,
0063 XML_SCHEMAS_NNINTEGER = 33,
0064 XML_SCHEMAS_PINTEGER = 34,
0065 XML_SCHEMAS_INT = 35,
0066 XML_SCHEMAS_UINT = 36,
0067 XML_SCHEMAS_LONG = 37,
0068 XML_SCHEMAS_ULONG = 38,
0069 XML_SCHEMAS_SHORT = 39,
0070 XML_SCHEMAS_USHORT = 40,
0071 XML_SCHEMAS_BYTE = 41,
0072 XML_SCHEMAS_UBYTE = 42,
0073 XML_SCHEMAS_HEXBINARY = 43,
0074 XML_SCHEMAS_BASE64BINARY = 44,
0075 XML_SCHEMAS_ANYTYPE = 45,
0076 XML_SCHEMAS_ANYSIMPLETYPE = 46
0077 } xmlSchemaValType;
0078
0079
0080
0081
0082 typedef enum {
0083 XML_SCHEMA_TYPE_BASIC = 1,
0084 XML_SCHEMA_TYPE_ANY,
0085 XML_SCHEMA_TYPE_FACET,
0086 XML_SCHEMA_TYPE_SIMPLE,
0087 XML_SCHEMA_TYPE_COMPLEX,
0088 XML_SCHEMA_TYPE_SEQUENCE = 6,
0089 XML_SCHEMA_TYPE_CHOICE,
0090 XML_SCHEMA_TYPE_ALL,
0091 XML_SCHEMA_TYPE_SIMPLE_CONTENT,
0092 XML_SCHEMA_TYPE_COMPLEX_CONTENT,
0093 XML_SCHEMA_TYPE_UR,
0094 XML_SCHEMA_TYPE_RESTRICTION,
0095 XML_SCHEMA_TYPE_EXTENSION,
0096 XML_SCHEMA_TYPE_ELEMENT,
0097 XML_SCHEMA_TYPE_ATTRIBUTE,
0098 XML_SCHEMA_TYPE_ATTRIBUTEGROUP,
0099 XML_SCHEMA_TYPE_GROUP,
0100 XML_SCHEMA_TYPE_NOTATION,
0101 XML_SCHEMA_TYPE_LIST,
0102 XML_SCHEMA_TYPE_UNION,
0103 XML_SCHEMA_TYPE_ANY_ATTRIBUTE,
0104 XML_SCHEMA_TYPE_IDC_UNIQUE,
0105 XML_SCHEMA_TYPE_IDC_KEY,
0106 XML_SCHEMA_TYPE_IDC_KEYREF,
0107 XML_SCHEMA_TYPE_PARTICLE = 25,
0108 XML_SCHEMA_TYPE_ATTRIBUTE_USE,
0109 XML_SCHEMA_FACET_MININCLUSIVE = 1000,
0110 XML_SCHEMA_FACET_MINEXCLUSIVE,
0111 XML_SCHEMA_FACET_MAXINCLUSIVE,
0112 XML_SCHEMA_FACET_MAXEXCLUSIVE,
0113 XML_SCHEMA_FACET_TOTALDIGITS,
0114 XML_SCHEMA_FACET_FRACTIONDIGITS,
0115 XML_SCHEMA_FACET_PATTERN,
0116 XML_SCHEMA_FACET_ENUMERATION,
0117 XML_SCHEMA_FACET_WHITESPACE,
0118 XML_SCHEMA_FACET_LENGTH,
0119 XML_SCHEMA_FACET_MAXLENGTH,
0120 XML_SCHEMA_FACET_MINLENGTH,
0121 XML_SCHEMA_EXTRA_QNAMEREF = 2000,
0122 XML_SCHEMA_EXTRA_ATTR_USE_PROHIB
0123 } xmlSchemaTypeType;
0124
0125 typedef enum {
0126 XML_SCHEMA_CONTENT_UNKNOWN = 0,
0127 XML_SCHEMA_CONTENT_EMPTY = 1,
0128 XML_SCHEMA_CONTENT_ELEMENTS,
0129 XML_SCHEMA_CONTENT_MIXED,
0130 XML_SCHEMA_CONTENT_SIMPLE,
0131 XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS,
0132 XML_SCHEMA_CONTENT_BASIC,
0133 XML_SCHEMA_CONTENT_ANY
0134 } xmlSchemaContentType;
0135
0136 typedef struct _xmlSchemaVal xmlSchemaVal;
0137 typedef xmlSchemaVal *xmlSchemaValPtr;
0138
0139 typedef struct _xmlSchemaType xmlSchemaType;
0140 typedef xmlSchemaType *xmlSchemaTypePtr;
0141
0142 typedef struct _xmlSchemaFacet xmlSchemaFacet;
0143 typedef xmlSchemaFacet *xmlSchemaFacetPtr;
0144
0145
0146
0147
0148 typedef struct _xmlSchemaAnnot xmlSchemaAnnot;
0149 typedef xmlSchemaAnnot *xmlSchemaAnnotPtr;
0150 struct _xmlSchemaAnnot {
0151 struct _xmlSchemaAnnot *next;
0152 xmlNodePtr content;
0153 };
0154
0155
0156
0157
0158
0159
0160
0161 #define XML_SCHEMAS_ANYATTR_SKIP 1
0162
0163
0164
0165
0166
0167
0168 #define XML_SCHEMAS_ANYATTR_LAX 2
0169
0170
0171
0172
0173
0174
0175 #define XML_SCHEMAS_ANYATTR_STRICT 3
0176
0177
0178
0179
0180
0181 #define XML_SCHEMAS_ANY_SKIP 1
0182
0183
0184
0185
0186
0187
0188 #define XML_SCHEMAS_ANY_LAX 2
0189
0190
0191
0192
0193
0194
0195 #define XML_SCHEMAS_ANY_STRICT 3
0196
0197
0198
0199
0200
0201
0202 #define XML_SCHEMAS_ATTR_USE_PROHIBITED 0
0203
0204
0205
0206
0207
0208 #define XML_SCHEMAS_ATTR_USE_REQUIRED 1
0209
0210
0211
0212
0213
0214 #define XML_SCHEMAS_ATTR_USE_OPTIONAL 2
0215
0216
0217
0218
0219
0220 #define XML_SCHEMAS_ATTR_GLOBAL 1 << 0
0221
0222
0223
0224
0225
0226 #define XML_SCHEMAS_ATTR_NSDEFAULT 1 << 7
0227
0228
0229
0230
0231
0232
0233 #define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED 1 << 8
0234
0235
0236
0237
0238
0239 #define XML_SCHEMAS_ATTR_FIXED 1 << 9
0240
0241
0242
0243
0244
0245
0246 typedef struct _xmlSchemaAttribute xmlSchemaAttribute;
0247 typedef xmlSchemaAttribute *xmlSchemaAttributePtr;
0248 struct _xmlSchemaAttribute {
0249 xmlSchemaTypeType type;
0250 struct _xmlSchemaAttribute *next;
0251 const xmlChar *name;
0252 const xmlChar *id;
0253 const xmlChar *ref;
0254 const xmlChar *refNs;
0255 const xmlChar *typeName;
0256 const xmlChar *typeNs;
0257 xmlSchemaAnnotPtr annot;
0258
0259 xmlSchemaTypePtr base;
0260 int occurs;
0261 const xmlChar *defValue;
0262 xmlSchemaTypePtr subtypes;
0263 xmlNodePtr node;
0264 const xmlChar *targetNamespace;
0265 int flags;
0266 const xmlChar *refPrefix;
0267 xmlSchemaValPtr defVal;
0268 xmlSchemaAttributePtr refDecl;
0269 };
0270
0271
0272
0273
0274
0275
0276 typedef struct _xmlSchemaAttributeLink xmlSchemaAttributeLink;
0277 typedef xmlSchemaAttributeLink *xmlSchemaAttributeLinkPtr;
0278 struct _xmlSchemaAttributeLink {
0279 struct _xmlSchemaAttributeLink *next;
0280 struct _xmlSchemaAttribute *attr;
0281 };
0282
0283
0284
0285
0286
0287
0288 #define XML_SCHEMAS_WILDCARD_COMPLETE 1 << 0
0289
0290
0291
0292
0293
0294 typedef struct _xmlSchemaWildcardNs xmlSchemaWildcardNs;
0295 typedef xmlSchemaWildcardNs *xmlSchemaWildcardNsPtr;
0296 struct _xmlSchemaWildcardNs {
0297 struct _xmlSchemaWildcardNs *next;
0298 const xmlChar *value;
0299 };
0300
0301
0302
0303
0304
0305 typedef struct _xmlSchemaWildcard xmlSchemaWildcard;
0306 typedef xmlSchemaWildcard *xmlSchemaWildcardPtr;
0307 struct _xmlSchemaWildcard {
0308 xmlSchemaTypeType type;
0309 const xmlChar *id;
0310 xmlSchemaAnnotPtr annot;
0311 xmlNodePtr node;
0312 int minOccurs;
0313 int maxOccurs;
0314 int processContents;
0315 int any;
0316 xmlSchemaWildcardNsPtr nsSet;
0317 xmlSchemaWildcardNsPtr negNsSet;
0318 int flags;
0319 };
0320
0321
0322
0323
0324
0325
0326 #define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED 1 << 0
0327
0328
0329
0330
0331
0332 #define XML_SCHEMAS_ATTRGROUP_GLOBAL 1 << 1
0333
0334
0335
0336
0337
0338 #define XML_SCHEMAS_ATTRGROUP_MARKED 1 << 2
0339
0340
0341
0342
0343
0344
0345 #define XML_SCHEMAS_ATTRGROUP_REDEFINED 1 << 3
0346
0347
0348
0349
0350
0351 #define XML_SCHEMAS_ATTRGROUP_HAS_REFS 1 << 4
0352
0353
0354
0355
0356
0357
0358
0359 typedef struct _xmlSchemaAttributeGroup xmlSchemaAttributeGroup;
0360 typedef xmlSchemaAttributeGroup *xmlSchemaAttributeGroupPtr;
0361 struct _xmlSchemaAttributeGroup {
0362 xmlSchemaTypeType type;
0363 struct _xmlSchemaAttribute *next;
0364 const xmlChar *name;
0365 const xmlChar *id;
0366 const xmlChar *ref;
0367 const xmlChar *refNs;
0368 xmlSchemaAnnotPtr annot;
0369
0370 xmlSchemaAttributePtr attributes;
0371 xmlNodePtr node;
0372 int flags;
0373 xmlSchemaWildcardPtr attributeWildcard;
0374 const xmlChar *refPrefix;
0375 xmlSchemaAttributeGroupPtr refItem;
0376 const xmlChar *targetNamespace;
0377 void *attrUses;
0378 };
0379
0380
0381
0382
0383
0384
0385 typedef struct _xmlSchemaTypeLink xmlSchemaTypeLink;
0386 typedef xmlSchemaTypeLink *xmlSchemaTypeLinkPtr;
0387 struct _xmlSchemaTypeLink {
0388 struct _xmlSchemaTypeLink *next;
0389 xmlSchemaTypePtr type;
0390 };
0391
0392
0393
0394
0395
0396 typedef struct _xmlSchemaFacetLink xmlSchemaFacetLink;
0397 typedef xmlSchemaFacetLink *xmlSchemaFacetLinkPtr;
0398 struct _xmlSchemaFacetLink {
0399 struct _xmlSchemaFacetLink *next;
0400 xmlSchemaFacetPtr facet;
0401 };
0402
0403
0404
0405
0406
0407
0408 #define XML_SCHEMAS_TYPE_MIXED 1 << 0
0409
0410
0411
0412
0413
0414 #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION 1 << 1
0415
0416
0417
0418
0419
0420 #define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION 1 << 2
0421
0422
0423
0424
0425
0426 #define XML_SCHEMAS_TYPE_GLOBAL 1 << 3
0427
0428
0429
0430
0431
0432
0433 #define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD 1 << 4
0434
0435
0436
0437
0438
0439
0440
0441
0442 #define XML_SCHEMAS_TYPE_VARIETY_ABSENT 1 << 5
0443
0444
0445
0446
0447
0448 #define XML_SCHEMAS_TYPE_VARIETY_LIST 1 << 6
0449
0450
0451
0452
0453
0454 #define XML_SCHEMAS_TYPE_VARIETY_UNION 1 << 7
0455
0456
0457
0458
0459
0460 #define XML_SCHEMAS_TYPE_VARIETY_ATOMIC 1 << 8
0461
0462
0463
0464
0465
0466 #define XML_SCHEMAS_TYPE_FINAL_EXTENSION 1 << 9
0467
0468
0469
0470
0471
0472 #define XML_SCHEMAS_TYPE_FINAL_RESTRICTION 1 << 10
0473
0474
0475
0476
0477
0478 #define XML_SCHEMAS_TYPE_FINAL_LIST 1 << 11
0479
0480
0481
0482
0483
0484 #define XML_SCHEMAS_TYPE_FINAL_UNION 1 << 12
0485
0486
0487
0488
0489
0490 #define XML_SCHEMAS_TYPE_FINAL_DEFAULT 1 << 13
0491
0492
0493
0494
0495
0496 #define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE 1 << 14
0497
0498
0499
0500
0501
0502 #define XML_SCHEMAS_TYPE_MARKED 1 << 16
0503
0504
0505
0506
0507
0508
0509 #define XML_SCHEMAS_TYPE_BLOCK_DEFAULT 1 << 17
0510
0511
0512
0513
0514
0515 #define XML_SCHEMAS_TYPE_BLOCK_EXTENSION 1 << 18
0516
0517
0518
0519
0520
0521 #define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION 1 << 19
0522
0523
0524
0525
0526
0527 #define XML_SCHEMAS_TYPE_ABSTRACT 1 << 20
0528
0529
0530
0531
0532
0533 #define XML_SCHEMAS_TYPE_FACETSNEEDVALUE 1 << 21
0534
0535
0536
0537
0538
0539 #define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED 1 << 22
0540
0541
0542
0543
0544
0545 #define XML_SCHEMAS_TYPE_INTERNAL_INVALID 1 << 23
0546
0547
0548
0549
0550
0551 #define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE 1 << 24
0552
0553
0554
0555
0556
0557 #define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE 1 << 25
0558
0559
0560
0561
0562
0563 #define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE 1 << 26
0564
0565
0566
0567
0568
0569 #define XML_SCHEMAS_TYPE_HAS_FACETS 1 << 27
0570
0571
0572
0573
0574
0575 #define XML_SCHEMAS_TYPE_NORMVALUENEEDED 1 << 28
0576
0577
0578
0579
0580
0581
0582 #define XML_SCHEMAS_TYPE_FIXUP_1 1 << 29
0583
0584
0585
0586
0587
0588
0589 #define XML_SCHEMAS_TYPE_REDEFINED 1 << 30
0590
0591
0592
0593
0594
0595
0596
0597
0598
0599
0600
0601
0602 struct _xmlSchemaType {
0603 xmlSchemaTypeType type;
0604 struct _xmlSchemaType *next;
0605 const xmlChar *name;
0606 const xmlChar *id ;
0607 const xmlChar *ref;
0608 const xmlChar *refNs;
0609 xmlSchemaAnnotPtr annot;
0610 xmlSchemaTypePtr subtypes;
0611 xmlSchemaAttributePtr attributes;
0612 xmlNodePtr node;
0613 int minOccurs;
0614 int maxOccurs;
0615
0616 int flags;
0617 xmlSchemaContentType contentType;
0618 const xmlChar *base;
0619 const xmlChar *baseNs;
0620 xmlSchemaTypePtr baseType;
0621 xmlSchemaFacetPtr facets;
0622 struct _xmlSchemaType *redef;
0623 int recurse;
0624 xmlSchemaAttributeLinkPtr *attributeUses;
0625 xmlSchemaWildcardPtr attributeWildcard;
0626 int builtInType;
0627 xmlSchemaTypeLinkPtr memberTypes;
0628 xmlSchemaFacetLinkPtr facetSet;
0629 const xmlChar *refPrefix;
0630 xmlSchemaTypePtr contentTypeDef;
0631
0632 xmlRegexpPtr contModel;
0633 const xmlChar *targetNamespace;
0634 void *attrUses;
0635 };
0636
0637
0638
0639
0640
0641
0642
0643
0644
0645
0646
0647
0648
0649 #define XML_SCHEMAS_ELEM_NILLABLE 1 << 0
0650
0651
0652
0653
0654
0655 #define XML_SCHEMAS_ELEM_GLOBAL 1 << 1
0656
0657
0658
0659
0660
0661 #define XML_SCHEMAS_ELEM_DEFAULT 1 << 2
0662
0663
0664
0665
0666
0667 #define XML_SCHEMAS_ELEM_FIXED 1 << 3
0668
0669
0670
0671
0672
0673 #define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4
0674
0675
0676
0677
0678
0679
0680 #define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5
0681
0682
0683
0684
0685
0686 #define XML_SCHEMAS_ELEM_REF 1 << 6
0687
0688
0689
0690
0691
0692
0693 #define XML_SCHEMAS_ELEM_NSDEFAULT 1 << 7
0694
0695
0696
0697
0698
0699
0700 #define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED 1 << 8
0701
0702
0703
0704
0705
0706 #define XML_SCHEMAS_ELEM_CIRCULAR 1 << 9
0707
0708
0709
0710
0711
0712 #define XML_SCHEMAS_ELEM_BLOCK_ABSENT 1 << 10
0713
0714
0715
0716
0717
0718 #define XML_SCHEMAS_ELEM_BLOCK_EXTENSION 1 << 11
0719
0720
0721
0722
0723
0724 #define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION 1 << 12
0725
0726
0727
0728
0729
0730 #define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION 1 << 13
0731
0732
0733
0734
0735
0736 #define XML_SCHEMAS_ELEM_FINAL_ABSENT 1 << 14
0737
0738
0739
0740
0741
0742 #define XML_SCHEMAS_ELEM_FINAL_EXTENSION 1 << 15
0743
0744
0745
0746
0747
0748 #define XML_SCHEMAS_ELEM_FINAL_RESTRICTION 1 << 16
0749
0750
0751
0752
0753
0754 #define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD 1 << 17
0755
0756
0757
0758
0759
0760
0761 #define XML_SCHEMAS_ELEM_INTERNAL_CHECKED 1 << 18
0762
0763 typedef struct _xmlSchemaElement xmlSchemaElement;
0764 typedef xmlSchemaElement *xmlSchemaElementPtr;
0765 struct _xmlSchemaElement {
0766 xmlSchemaTypeType type;
0767 struct _xmlSchemaType *next;
0768 const xmlChar *name;
0769 const xmlChar *id;
0770 const xmlChar *ref;
0771 const xmlChar *refNs;
0772 xmlSchemaAnnotPtr annot;
0773 xmlSchemaTypePtr subtypes;
0774 xmlSchemaAttributePtr attributes;
0775 xmlNodePtr node;
0776 int minOccurs;
0777 int maxOccurs;
0778
0779 int flags;
0780 const xmlChar *targetNamespace;
0781 const xmlChar *namedType;
0782 const xmlChar *namedTypeNs;
0783 const xmlChar *substGroup;
0784 const xmlChar *substGroupNs;
0785 const xmlChar *scope;
0786 const xmlChar *value;
0787 struct _xmlSchemaElement *refDecl;
0788
0789 xmlRegexpPtr contModel;
0790 xmlSchemaContentType contentType;
0791 const xmlChar *refPrefix;
0792 xmlSchemaValPtr defVal;
0793 void *idcs;
0794 };
0795
0796
0797
0798
0799
0800
0801 #define XML_SCHEMAS_FACET_UNKNOWN 0
0802
0803
0804
0805
0806
0807 #define XML_SCHEMAS_FACET_PRESERVE 1
0808
0809
0810
0811
0812
0813 #define XML_SCHEMAS_FACET_REPLACE 2
0814
0815
0816
0817
0818
0819 #define XML_SCHEMAS_FACET_COLLAPSE 3
0820
0821
0822
0823 struct _xmlSchemaFacet {
0824 xmlSchemaTypeType type;
0825 struct _xmlSchemaFacet *next;
0826 const xmlChar *value;
0827 const xmlChar *id;
0828 xmlSchemaAnnotPtr annot;
0829 xmlNodePtr node;
0830 int fixed;
0831 int whitespace;
0832 xmlSchemaValPtr val;
0833 xmlRegexpPtr regexp;
0834 };
0835
0836
0837
0838
0839 typedef struct _xmlSchemaNotation xmlSchemaNotation;
0840 typedef xmlSchemaNotation *xmlSchemaNotationPtr;
0841 struct _xmlSchemaNotation {
0842 xmlSchemaTypeType type;
0843 const xmlChar *name;
0844 xmlSchemaAnnotPtr annot;
0845 const xmlChar *identifier;
0846 const xmlChar *targetNamespace;
0847 };
0848
0849
0850
0851
0852
0853
0854
0855
0856
0857
0858
0859
0860
0861 #define XML_SCHEMAS_QUALIF_ELEM 1 << 0
0862
0863
0864
0865
0866
0867
0868 #define XML_SCHEMAS_QUALIF_ATTR 1 << 1
0869
0870
0871
0872
0873
0874 #define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION 1 << 2
0875
0876
0877
0878
0879
0880 #define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION 1 << 3
0881
0882
0883
0884
0885
0886 #define XML_SCHEMAS_FINAL_DEFAULT_LIST 1 << 4
0887
0888
0889
0890
0891
0892 #define XML_SCHEMAS_FINAL_DEFAULT_UNION 1 << 5
0893
0894
0895
0896
0897
0898 #define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION 1 << 6
0899
0900
0901
0902
0903
0904 #define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION 1 << 7
0905
0906
0907
0908
0909
0910 #define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION 1 << 8
0911
0912
0913
0914
0915
0916
0917 #define XML_SCHEMAS_INCLUDING_CONVERT_NS 1 << 9
0918
0919
0920
0921
0922
0923 struct _xmlSchema {
0924 const xmlChar *name;
0925 const xmlChar *targetNamespace;
0926 const xmlChar *version;
0927 const xmlChar *id;
0928 xmlDocPtr doc;
0929 xmlSchemaAnnotPtr annot;
0930 int flags;
0931
0932 xmlHashTablePtr typeDecl;
0933 xmlHashTablePtr attrDecl;
0934 xmlHashTablePtr attrgrpDecl;
0935 xmlHashTablePtr elemDecl;
0936 xmlHashTablePtr notaDecl;
0937
0938 xmlHashTablePtr schemasImports;
0939
0940 void *_private;
0941 xmlHashTablePtr groupDecl;
0942 xmlDictPtr dict;
0943 void *includes;
0944 int preserve;
0945 int counter;
0946 xmlHashTablePtr idcDef;
0947 void *volatiles;
0948 };
0949
0950 XMLPUBFUN void XMLCALL xmlSchemaFreeType (xmlSchemaTypePtr type);
0951 XMLPUBFUN void XMLCALL xmlSchemaFreeWildcard(xmlSchemaWildcardPtr wildcard);
0952
0953 #ifdef __cplusplus
0954 }
0955 #endif
0956
0957 #endif
0958 #endif