📄 schemasinternals.h
字号:
* XML_SCHEMAS_TYPE_VARIETY_ATOMIC: * * the simpleType has a variety of "union". */#define XML_SCHEMAS_TYPE_VARIETY_ATOMIC 1 << 8/** * XML_SCHEMAS_TYPE_FINAL_EXTENSION: * * the complexType has a final of "extension". */#define XML_SCHEMAS_TYPE_FINAL_EXTENSION 1 << 9/** * XML_SCHEMAS_TYPE_FINAL_RESTRICTION: * * the simpleType/complexType has a final of "restriction". */#define XML_SCHEMAS_TYPE_FINAL_RESTRICTION 1 << 10/** * XML_SCHEMAS_TYPE_FINAL_LIST: * * the simpleType has a final of "list". */#define XML_SCHEMAS_TYPE_FINAL_LIST 1 << 11/** * XML_SCHEMAS_TYPE_FINAL_UNION: * * the simpleType has a final of "union". */#define XML_SCHEMAS_TYPE_FINAL_UNION 1 << 12/** * XML_SCHEMAS_TYPE_FINAL_DEFAULT: * * the simpleType has a final of "default". */#define XML_SCHEMAS_TYPE_FINAL_DEFAULT 1 << 13/** * XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE: * * Marks the item as a builtin primitive. */#define XML_SCHEMAS_TYPE_BUILTIN_PRIMITIVE 1 << 14/** * XML_SCHEMAS_TYPE_MARKED: * * Marks the item as marked; used for circular checks. */#define XML_SCHEMAS_TYPE_MARKED 1 << 16/** * XML_SCHEMAS_TYPE_BLOCK_DEFAULT: * * the complexType did not specify 'block' so use the default of the * <schema> item. */#define XML_SCHEMAS_TYPE_BLOCK_DEFAULT 1 << 17/** * XML_SCHEMAS_TYPE_BLOCK_EXTENSION: * * the complexType has a 'block' of "extension". */#define XML_SCHEMAS_TYPE_BLOCK_EXTENSION 1 << 18/** * XML_SCHEMAS_TYPE_BLOCK_RESTRICTION: * * the complexType has a 'block' of "restriction". */#define XML_SCHEMAS_TYPE_BLOCK_RESTRICTION 1 << 19/** * XML_SCHEMAS_TYPE_ABSTRACT: * * the simple/complexType is abstract. */#define XML_SCHEMAS_TYPE_ABSTRACT 1 << 20/** * XML_SCHEMAS_TYPE_FACETSNEEDVALUE: * * indicates if the facets need a computed value */#define XML_SCHEMAS_TYPE_FACETSNEEDVALUE 1 << 21/** * XML_SCHEMAS_TYPE_INTERNAL_RESOLVED: * * indicates that the type was typefixed */#define XML_SCHEMAS_TYPE_INTERNAL_RESOLVED 1 << 22/** * XML_SCHEMAS_TYPE_INTERNAL_INVALID: * * indicates that the type is invalid */#define XML_SCHEMAS_TYPE_INTERNAL_INVALID 1 << 23/** * _xmlSchemaType: * * Schemas type definition. */struct _xmlSchemaType { xmlSchemaTypeType type; /* The kind of type */ struct _xmlSchemaType *next;/* the next type if in a sequence ... */ const xmlChar *name; const xmlChar *id; const xmlChar *ref; const xmlChar *refNs; xmlSchemaAnnotPtr annot; xmlSchemaTypePtr subtypes; xmlSchemaAttributePtr attributes; xmlNodePtr node; int minOccurs; int maxOccurs; int flags; xmlSchemaContentType contentType; const xmlChar *base; const xmlChar *baseNs; xmlSchemaTypePtr baseType; xmlSchemaFacetPtr facets; struct _xmlSchemaType *redef;/* possible redefinitions for the type */ int recurse; xmlSchemaAttributeLinkPtr attributeUses; xmlSchemaWildcardPtr attributeWildcard; int builtInType; xmlSchemaTypeLinkPtr memberTypes; xmlSchemaFacetLinkPtr facetSet; const xmlChar *refPrefix; xmlSchemaTypePtr contentTypeDef; xmlRegexpPtr contModel; const xmlChar *targetNamespace;};/* * xmlSchemaElement: * An element definition. * * xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of * structures must be kept similar *//** * XML_SCHEMAS_ELEM_NILLABLE: * * the element is nillable */#define XML_SCHEMAS_ELEM_NILLABLE 1 << 0/** * XML_SCHEMAS_ELEM_GLOBAL: * * the element is global */#define XML_SCHEMAS_ELEM_GLOBAL 1 << 1/** * XML_SCHEMAS_ELEM_DEFAULT: * * the element has a default value */#define XML_SCHEMAS_ELEM_DEFAULT 1 << 2/** * XML_SCHEMAS_ELEM_FIXED: * * the element has a fixed value */#define XML_SCHEMAS_ELEM_FIXED 1 << 3/** * XML_SCHEMAS_ELEM_ABSTRACT: * * the element is abstract */#define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4/** * XML_SCHEMAS_ELEM_TOPLEVEL: * * the element is top level * obsolete: use XML_SCHEMAS_ELEM_GLOBAL instead */#define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5/** * XML_SCHEMAS_ELEM_REF: * * the element is a reference to a type */#define XML_SCHEMAS_ELEM_REF 1 << 6/** * XML_SCHEMAS_ELEM_NSDEFAULT: * * allow elements in no namespace * Obsolete, not used anymore. */#define XML_SCHEMAS_ELEM_NSDEFAULT 1 << 7/** * XML_SCHEMAS_ELEM_INTERNAL_RESOLVED: * * this is set when "type", "ref", "substitutionGroup" * references have been resolved. */#define XML_SCHEMAS_ELEM_INTERNAL_RESOLVED 1 << 8 /** * XML_SCHEMAS_ELEM_CIRCULAR: * * a helper flag for the search of circular references. */#define XML_SCHEMAS_ELEM_CIRCULAR 1 << 9/** * XML_SCHEMAS_ELEM_BLOCK_ABSENT: * * the "block" attribute is absent */#define XML_SCHEMAS_ELEM_BLOCK_ABSENT 1 << 10/** * XML_SCHEMAS_ELEM_BLOCK_EXTENSION: * * disallowed substitutions are absent */#define XML_SCHEMAS_ELEM_BLOCK_EXTENSION 1 << 11/** * XML_SCHEMAS_ELEM_BLOCK_RESTRICTION: * * disallowed substitutions: "restriction" */#define XML_SCHEMAS_ELEM_BLOCK_RESTRICTION 1 << 12/** * XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION: * * disallowed substitutions: "substituion" */#define XML_SCHEMAS_ELEM_BLOCK_SUBSTITUTION 1 << 13/** * XML_SCHEMAS_ELEM_FINAL_ABSENT: * * substitution group exclusions are absent */#define XML_SCHEMAS_ELEM_FINAL_ABSENT 1 << 14/** * XML_SCHEMAS_ELEM_FINAL_EXTENSION: * * substitution group exclusions: "extension" */#define XML_SCHEMAS_ELEM_FINAL_EXTENSION 1 << 15/** * XML_SCHEMAS_ELEM_FINAL_RESTRICTION: * * substitution group exclusions: "restriction" */#define XML_SCHEMAS_ELEM_FINAL_RESTRICTION 1 << 16typedef struct _xmlSchemaElement xmlSchemaElement;typedef xmlSchemaElement *xmlSchemaElementPtr;struct _xmlSchemaElement { xmlSchemaTypeType type; /* The kind of type */ struct _xmlSchemaType *next;/* the next type if in a sequence ... */ const xmlChar *name; const xmlChar *id; const xmlChar *ref; /* the local name of the element declaration if a particle */ const xmlChar *refNs; /* the ns URI of the element declaration if a particle */ xmlSchemaAnnotPtr annot; xmlSchemaTypePtr subtypes; /* the type definition */ xmlSchemaAttributePtr attributes; xmlNodePtr node; int minOccurs; int maxOccurs; int flags; const xmlChar *targetNamespace; const xmlChar *namedType; const xmlChar *namedTypeNs; const xmlChar *substGroup; const xmlChar *substGroupNs; const xmlChar *scope; const xmlChar *value; struct _xmlSchemaElement *refDecl; /* the element declaration if a particle */ xmlRegexpPtr contModel; xmlSchemaContentType contentType; const xmlChar *refPrefix; xmlSchemaValPtr defVal; void *idcs;};/* * XML_SCHEMAS_FACET_UNKNOWN: * * unknown facet handling */#define XML_SCHEMAS_FACET_UNKNOWN 0/* * XML_SCHEMAS_FACET_PRESERVE: * * preserve the type of the facet */#define XML_SCHEMAS_FACET_PRESERVE 1/* * XML_SCHEMAS_FACET_REPLACE: * * replace the type of the facet */#define XML_SCHEMAS_FACET_REPLACE 2/* * XML_SCHEMAS_FACET_COLLAPSE: * * collapse the types of the facet */#define XML_SCHEMAS_FACET_COLLAPSE 3/** * A facet definition. */struct _xmlSchemaFacet { xmlSchemaTypeType type; /* The kind of type */ struct _xmlSchemaFacet *next;/* the next type if in a sequence ... */ const xmlChar *value; const xmlChar *id; xmlSchemaAnnotPtr annot; xmlNodePtr node; int fixed; int whitespace; xmlSchemaValPtr val; xmlRegexpPtr regexp;};/** * A notation definition. */typedef struct _xmlSchemaNotation xmlSchemaNotation;typedef xmlSchemaNotation *xmlSchemaNotationPtr;struct _xmlSchemaNotation { xmlSchemaTypeType type; /* The kind of type */ const xmlChar *name; xmlSchemaAnnotPtr annot; const xmlChar *identifier; const xmlChar *targetNamespace;};/** * XML_SCHEMAS_QUALIF_ELEM: * * the schema requires qualified elements */#define XML_SCHEMAS_QUALIF_ELEM 1 << 0/** * XML_SCHEMAS_QUALIF_ATTR: * * the schema requires qualified attributes */#define XML_SCHEMAS_QUALIF_ATTR 1 << 1/** * XML_SCHEMAS_FINAL_DEFAULT_EXTENSION: * * the schema has "extension" in the set of finalDefault. */#define XML_SCHEMAS_FINAL_DEFAULT_EXTENSION 1 << 2/** * XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION: * * the schema has "restriction" in the set of finalDefault. */#define XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION 1 << 3/** * XML_SCHEMAS_FINAL_DEFAULT_LIST: * * the cshema has "list" in the set of finalDefault. */#define XML_SCHEMAS_FINAL_DEFAULT_LIST 1 << 4/** * XML_SCHEMAS_FINAL_DEFAULT_UNION: * * the schema has "union" in the set of finalDefault. */#define XML_SCHEMAS_FINAL_DEFAULT_UNION 1 << 5/** * XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION: * * the schema has "extension" in the set of blockDefault. */#define XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION 1 << 6/** * XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION: * * the schema has "restriction" in the set of blockDefault. */#define XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION 1 << 7/** * XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION: * * the schema has "substitution" in the set of blockDefault. */#define XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION 1 << 8/** * XML_SCHEMAS_INCLUDING_CONVERT_NS: * * the schema is currently including an other schema with * no target namespace. */#define XML_SCHEMAS_INCLUDING_CONVERT_NS 1 << 9/** * _xmlSchema: * * A Schemas definition */struct _xmlSchema { const xmlChar *name; /* schema name */ const xmlChar *targetNamespace; /* the target namespace */ const xmlChar *version; const xmlChar *id; xmlDocPtr doc; xmlSchemaAnnotPtr annot; int flags; xmlHashTablePtr typeDecl; xmlHashTablePtr attrDecl; xmlHashTablePtr attrgrpDecl; xmlHashTablePtr elemDecl; xmlHashTablePtr notaDecl; xmlHashTablePtr schemasImports; void *_private; /* unused by the library for users or bindings */ xmlHashTablePtr groupDecl; xmlDictPtr dict; void *includes; /* the includes, this is opaque for now */ int preserve; /* whether to free the document */ int counter; /* used to give ononymous components unique names */ xmlHashTablePtr idcDef; void *volatiles; /* Misc. helper items (e.g. reference items) */};XMLPUBFUN void XMLCALL xmlSchemaFreeType (xmlSchemaTypePtr type);XMLPUBFUN void XMLCALL xmlSchemaFreeWildcard(xmlSchemaWildcardPtr wildcard);#ifdef __cplusplus}#endif#endif /* LIBXML_SCHEMAS_ENABLED */#endif /* __XML_SCHEMA_INTERNALS_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -