14#ifndef __XML_SCHEMA_INTERNALS_H__
15#define __XML_SCHEMA_INTERNALS_H__
19#ifdef LIBXML_SCHEMAS_ENABLED
30 XML_SCHEMAS_UNKNOWN = 0,
31 XML_SCHEMAS_STRING = 1,
32 XML_SCHEMAS_NORMSTRING = 2,
33 XML_SCHEMAS_DECIMAL = 3,
36 XML_SCHEMAS_GMONTH = 6,
37 XML_SCHEMAS_GMONTHDAY = 7,
38 XML_SCHEMAS_GYEAR = 8,
39 XML_SCHEMAS_GYEARMONTH = 9,
40 XML_SCHEMAS_DATE = 10,
41 XML_SCHEMAS_DATETIME = 11,
42 XML_SCHEMAS_DURATION = 12,
43 XML_SCHEMAS_FLOAT = 13,
44 XML_SCHEMAS_DOUBLE = 14,
45 XML_SCHEMAS_BOOLEAN = 15,
46 XML_SCHEMAS_TOKEN = 16,
47 XML_SCHEMAS_LANGUAGE = 17,
48 XML_SCHEMAS_NMTOKEN = 18,
49 XML_SCHEMAS_NMTOKENS = 19,
50 XML_SCHEMAS_NAME = 20,
51 XML_SCHEMAS_QNAME = 21,
52 XML_SCHEMAS_NCNAME = 22,
54 XML_SCHEMAS_IDREF = 24,
55 XML_SCHEMAS_IDREFS = 25,
56 XML_SCHEMAS_ENTITY = 26,
57 XML_SCHEMAS_ENTITIES = 27,
58 XML_SCHEMAS_NOTATION = 28,
59 XML_SCHEMAS_ANYURI = 29,
60 XML_SCHEMAS_INTEGER = 30,
61 XML_SCHEMAS_NPINTEGER = 31,
62 XML_SCHEMAS_NINTEGER = 32,
63 XML_SCHEMAS_NNINTEGER = 33,
64 XML_SCHEMAS_PINTEGER = 34,
66 XML_SCHEMAS_UINT = 36,
67 XML_SCHEMAS_LONG = 37,
68 XML_SCHEMAS_ULONG = 38,
69 XML_SCHEMAS_SHORT = 39,
70 XML_SCHEMAS_USHORT = 40,
71 XML_SCHEMAS_BYTE = 41,
72 XML_SCHEMAS_UBYTE = 42,
73 XML_SCHEMAS_HEXBINARY = 43,
74 XML_SCHEMAS_BASE64BINARY = 44,
75 XML_SCHEMAS_ANYTYPE = 45,
76 XML_SCHEMAS_ANYSIMPLETYPE = 46
83 XML_SCHEMA_TYPE_BASIC = 1,
85 XML_SCHEMA_TYPE_FACET,
86 XML_SCHEMA_TYPE_SIMPLE,
87 XML_SCHEMA_TYPE_COMPLEX,
88 XML_SCHEMA_TYPE_SEQUENCE = 6,
89 XML_SCHEMA_TYPE_CHOICE,
91 XML_SCHEMA_TYPE_SIMPLE_CONTENT,
92 XML_SCHEMA_TYPE_COMPLEX_CONTENT,
94 XML_SCHEMA_TYPE_RESTRICTION,
95 XML_SCHEMA_TYPE_EXTENSION,
96 XML_SCHEMA_TYPE_ELEMENT,
97 XML_SCHEMA_TYPE_ATTRIBUTE,
98 XML_SCHEMA_TYPE_ATTRIBUTEGROUP,
99 XML_SCHEMA_TYPE_GROUP,
100 XML_SCHEMA_TYPE_NOTATION,
101 XML_SCHEMA_TYPE_LIST,
102 XML_SCHEMA_TYPE_UNION,
103 XML_SCHEMA_TYPE_ANY_ATTRIBUTE,
104 XML_SCHEMA_TYPE_IDC_UNIQUE,
105 XML_SCHEMA_TYPE_IDC_KEY,
106 XML_SCHEMA_TYPE_IDC_KEYREF,
107 XML_SCHEMA_TYPE_PARTICLE = 25,
108 XML_SCHEMA_TYPE_ATTRIBUTE_USE,
109 XML_SCHEMA_FACET_MININCLUSIVE = 1000,
110 XML_SCHEMA_FACET_MINEXCLUSIVE,
111 XML_SCHEMA_FACET_MAXINCLUSIVE,
112 XML_SCHEMA_FACET_MAXEXCLUSIVE,
113 XML_SCHEMA_FACET_TOTALDIGITS,
114 XML_SCHEMA_FACET_FRACTIONDIGITS,
115 XML_SCHEMA_FACET_PATTERN,
116 XML_SCHEMA_FACET_ENUMERATION,
117 XML_SCHEMA_FACET_WHITESPACE,
118 XML_SCHEMA_FACET_LENGTH,
119 XML_SCHEMA_FACET_MAXLENGTH,
120 XML_SCHEMA_FACET_MINLENGTH,
121 XML_SCHEMA_EXTRA_QNAMEREF = 2000,
122 XML_SCHEMA_EXTRA_ATTR_USE_PROHIB
126 XML_SCHEMA_CONTENT_UNKNOWN = 0,
127 XML_SCHEMA_CONTENT_EMPTY = 1,
128 XML_SCHEMA_CONTENT_ELEMENTS,
129 XML_SCHEMA_CONTENT_MIXED,
130 XML_SCHEMA_CONTENT_SIMPLE,
131 XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS,
132 XML_SCHEMA_CONTENT_BASIC,
133 XML_SCHEMA_CONTENT_ANY
134} xmlSchemaContentType;
136typedef struct _xmlSchemaVal xmlSchemaVal;
137typedef xmlSchemaVal *xmlSchemaValPtr;
139typedef struct _xmlSchemaType xmlSchemaType;
140typedef xmlSchemaType *xmlSchemaTypePtr;
142typedef struct _xmlSchemaFacet xmlSchemaFacet;
143typedef xmlSchemaFacet *xmlSchemaFacetPtr;
148typedef struct _xmlSchemaAnnot xmlSchemaAnnot;
149typedef xmlSchemaAnnot *xmlSchemaAnnotPtr;
150struct _xmlSchemaAnnot {
151 struct _xmlSchemaAnnot *
next;
161#define XML_SCHEMAS_ANYATTR_SKIP 1
168#define XML_SCHEMAS_ANYATTR_LAX 2
175#define XML_SCHEMAS_ANYATTR_STRICT 3
181#define XML_SCHEMAS_ANY_SKIP 1
188#define XML_SCHEMAS_ANY_LAX 2
195#define XML_SCHEMAS_ANY_STRICT 3
202#define XML_SCHEMAS_ATTR_USE_PROHIBITED 0
208#define XML_SCHEMAS_ATTR_USE_REQUIRED 1
214#define XML_SCHEMAS_ATTR_USE_OPTIONAL 2
220#define XML_SCHEMAS_ATTR_GLOBAL 1 << 0
226#define XML_SCHEMAS_ATTR_NSDEFAULT 1 << 7
233#define XML_SCHEMAS_ATTR_INTERNAL_RESOLVED 1 << 8
239#define XML_SCHEMAS_ATTR_FIXED 1 << 9
246typedef struct _xmlSchemaAttribute xmlSchemaAttribute;
247typedef xmlSchemaAttribute *xmlSchemaAttributePtr;
248struct _xmlSchemaAttribute {
249 xmlSchemaTypeType
type;
250 struct _xmlSchemaAttribute *
next;
257 xmlSchemaAnnotPtr annot;
259 xmlSchemaTypePtr
base;
262 xmlSchemaTypePtr subtypes;
264 const xmlChar *targetNamespace;
267 xmlSchemaValPtr defVal;
268 xmlSchemaAttributePtr refDecl;
276typedef struct _xmlSchemaAttributeLink xmlSchemaAttributeLink;
277typedef xmlSchemaAttributeLink *xmlSchemaAttributeLinkPtr;
278struct _xmlSchemaAttributeLink {
279 struct _xmlSchemaAttributeLink *
next;
280 struct _xmlSchemaAttribute *
attr;
288#define XML_SCHEMAS_WILDCARD_COMPLETE 1 << 0
294typedef struct _xmlSchemaWildcardNs xmlSchemaWildcardNs;
295typedef xmlSchemaWildcardNs *xmlSchemaWildcardNsPtr;
296struct _xmlSchemaWildcardNs {
297 struct _xmlSchemaWildcardNs *
next;
305typedef struct _xmlSchemaWildcard xmlSchemaWildcard;
306typedef xmlSchemaWildcard *xmlSchemaWildcardPtr;
307struct _xmlSchemaWildcard {
308 xmlSchemaTypeType
type;
310 xmlSchemaAnnotPtr annot;
316 xmlSchemaWildcardNsPtr nsSet;
317 xmlSchemaWildcardNsPtr negNsSet;
326#define XML_SCHEMAS_ATTRGROUP_WILDCARD_BUILDED 1 << 0
332#define XML_SCHEMAS_ATTRGROUP_GLOBAL 1 << 1
338#define XML_SCHEMAS_ATTRGROUP_MARKED 1 << 2
345#define XML_SCHEMAS_ATTRGROUP_REDEFINED 1 << 3
351#define XML_SCHEMAS_ATTRGROUP_HAS_REFS 1 << 4
359typedef struct _xmlSchemaAttributeGroup xmlSchemaAttributeGroup;
360typedef xmlSchemaAttributeGroup *xmlSchemaAttributeGroupPtr;
361struct _xmlSchemaAttributeGroup {
362 xmlSchemaTypeType
type;
363 struct _xmlSchemaAttribute *
next;
368 xmlSchemaAnnotPtr annot;
370 xmlSchemaAttributePtr attributes;
373 xmlSchemaWildcardPtr attributeWildcard;
375 xmlSchemaAttributeGroupPtr refItem;
376 const xmlChar *targetNamespace;
385typedef struct _xmlSchemaTypeLink xmlSchemaTypeLink;
386typedef xmlSchemaTypeLink *xmlSchemaTypeLinkPtr;
387struct _xmlSchemaTypeLink {
388 struct _xmlSchemaTypeLink *
next;
389 xmlSchemaTypePtr
type;
396typedef struct _xmlSchemaFacetLink xmlSchemaFacetLink;
397typedef xmlSchemaFacetLink *xmlSchemaFacetLinkPtr;
398struct _xmlSchemaFacetLink {
399 struct _xmlSchemaFacetLink *
next;
400 xmlSchemaFacetPtr facet;
408#define XML_SCHEMAS_TYPE_MIXED 1 << 0
414#define XML_SCHEMAS_TYPE_DERIVATION_METHOD_EXTENSION 1 << 1
420#define XML_SCHEMAS_TYPE_DERIVATION_METHOD_RESTRICTION 1 << 2
426#define XML_SCHEMAS_TYPE_GLOBAL 1 << 3
433#define XML_SCHEMAS_TYPE_OWNED_ATTR_WILDCARD 1 << 4
442#define XML_SCHEMAS_TYPE_VARIETY_ABSENT 1 << 5
448#define XML_SCHEMAS_TYPE_VARIETY_LIST 1 << 6
454#define XML_SCHEMAS_TYPE_VARIETY_UNION 1 << 7
460#define XML_SCHEMAS_TYPE_VARIETY_ATOMIC 1 << 8
466#define XML_SCHEMAS_TYPE_FINAL_EXTENSION 1 << 9
472#define XML_SCHEMAS_TYPE_FINAL_RESTRICTION 1 << 10
478#define XML_SCHEMAS_TYPE_FINAL_LIST 1 << 11
484#define XML_SCHEMAS_TYPE_FINAL_UNION 1 << 12
490#define XML_SCHEMAS_TYPE_FINAL_DEFAULT 1 << 13
496#define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE 1 << 14
502#define XML_SCHEMAS_TYPE_MARKED 1 << 16
509#define XML_SCHEMAS_TYPE_BLOCK_DEFAULT 1 << 17
515#define XML_SCHEMAS_TYPE_BLOCK_EXTENSION 1 << 18
521#define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION 1 << 19
527#define XML_SCHEMAS_TYPE_ABSTRACT 1 << 20
533#define XML_SCHEMAS_TYPE_FACETSNEEDVALUE 1 << 21
539#define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED 1 << 22
545#define XML_SCHEMAS_TYPE_INTERNAL_INVALID 1 << 23
551#define XML_SCHEMAS_TYPE_WHITESPACE_PRESERVE 1 << 24
557#define XML_SCHEMAS_TYPE_WHITESPACE_REPLACE 1 << 25
563#define XML_SCHEMAS_TYPE_WHITESPACE_COLLAPSE 1 << 26
569#define XML_SCHEMAS_TYPE_HAS_FACETS 1 << 27
575#define XML_SCHEMAS_TYPE_NORMVALUENEEDED 1 << 28
582#define XML_SCHEMAS_TYPE_FIXUP_1 1 << 29
589#define XML_SCHEMAS_TYPE_REDEFINED 1 << 30
602struct _xmlSchemaType {
603 xmlSchemaTypeType
type;
604 struct _xmlSchemaType *
next;
609 xmlSchemaAnnotPtr annot;
610 xmlSchemaTypePtr subtypes;
611 xmlSchemaAttributePtr attributes;
617 xmlSchemaContentType contentType;
620 xmlSchemaTypePtr baseType;
621 xmlSchemaFacetPtr facets;
622 struct _xmlSchemaType *redef;
624 xmlSchemaAttributeLinkPtr *attributeUses;
625 xmlSchemaWildcardPtr attributeWildcard;
627 xmlSchemaTypeLinkPtr memberTypes;
628 xmlSchemaFacetLinkPtr facetSet;
630 xmlSchemaTypePtr contentTypeDef;
632 xmlRegexpPtr contModel;
633 const xmlChar *targetNamespace;
649#define XML_SCHEMAS_ELEM_NILLABLE 1 << 0
655#define XML_SCHEMAS_ELEM_GLOBAL 1 << 1
661#define XML_SCHEMAS_ELEM_DEFAULT 1 << 2
667#define XML_SCHEMAS_ELEM_FIXED 1 << 3
673#define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4
680#define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5
686#define XML_SCHEMAS_ELEM_REF 1 << 6
693#define XML_SCHEMAS_ELEM_NSDEFAULT 1 << 7
700#define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED 1 << 8
706#define XML_SCHEMAS_ELEM_CIRCULAR 1 << 9
712#define XML_SCHEMAS_ELEM_BLOCK_ABSENT 1 << 10
718#define XML_SCHEMAS_ELEM_BLOCK_EXTENSION 1 << 11
724#define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION 1 << 12
730#define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION 1 << 13
736#define XML_SCHEMAS_ELEM_FINAL_ABSENT 1 << 14
742#define XML_SCHEMAS_ELEM_FINAL_EXTENSION 1 << 15
748#define XML_SCHEMAS_ELEM_FINAL_RESTRICTION 1 << 16
754#define XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD 1 << 17
761#define XML_SCHEMAS_ELEM_INTERNAL_CHECKED 1 << 18
763typedef struct _xmlSchemaElement xmlSchemaElement;
764typedef xmlSchemaElement *xmlSchemaElementPtr;
765struct _xmlSchemaElement {
766 xmlSchemaTypeType
type;
767 struct _xmlSchemaType *
next;
772 xmlSchemaAnnotPtr annot;
773 xmlSchemaTypePtr subtypes;
774 xmlSchemaAttributePtr attributes;
780 const xmlChar *targetNamespace;
787 struct _xmlSchemaElement *refDecl;
789 xmlRegexpPtr contModel;
790 xmlSchemaContentType contentType;
792 xmlSchemaValPtr defVal;
801#define XML_SCHEMAS_FACET_UNKNOWN 0
807#define XML_SCHEMAS_FACET_PRESERVE 1
813#define XML_SCHEMAS_FACET_REPLACE 2
819#define XML_SCHEMAS_FACET_COLLAPSE 3
823struct _xmlSchemaFacet {
824 xmlSchemaTypeType
type;
825 struct _xmlSchemaFacet *
next;
828 xmlSchemaAnnotPtr annot;
839typedef struct _xmlSchemaNotation xmlSchemaNotation;
840typedef xmlSchemaNotation *xmlSchemaNotationPtr;
841struct _xmlSchemaNotation {
842 xmlSchemaTypeType
type;
844 xmlSchemaAnnotPtr annot;
846 const xmlChar *targetNamespace;
861#define XML_SCHEMAS_QUALIF_ELEM 1 << 0
868#define XML_SCHEMAS_QUALIF_ATTR 1 << 1
874#define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION 1 << 2
880#define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION 1 << 3
886#define XML_SCHEMAS_FINAL_DEFAULT_LIST 1 << 4
892#define XML_SCHEMAS_FINAL_DEFAULT_UNION 1 << 5
898#define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION 1 << 6
904#define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION 1 << 7
910#define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION 1 << 8
917#define XML_SCHEMAS_INCLUDING_CONVERT_NS 1 << 9
925 const xmlChar *targetNamespace;
929 xmlSchemaAnnotPtr annot;
static struct loaded_include * includes
static const WCHAR version[]
GLuint GLuint GLsizei GLenum type
GLuint GLsizei const GLvoid GLenum preserve
static const char whitespace[]
static unsigned __int64 next