Lines Matching refs:schema
299 #define WXS_SCHEMA(ctx) (ctx)->schema
440 xmlSchemaPtr schema; member
602 xmlSchemaPtr schema; /* The main schema in use */ member
971 xmlSchemaPtr schema; /* The schema in use */ member
1057 xmlSchemaPtr schema,
1060 xmlSchemaPtr schema,
1068 xmlSchemaParseImport(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema,
1078 xmlSchemaParseModelGroup(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema,
1101 xmlSchemaPtr schema,
3540 if (WXS_IMPBUCKET(bucket)->schema != NULL) in xmlSchemaBucketFree()
3541 xmlSchemaFree(WXS_IMPBUCKET(bucket)->schema); in xmlSchemaBucketFree()
3601 WXS_IMPBUCKET(ret)->schema = mainSchema; in xmlSchemaBucketCreate()
3617 WXS_IMPBUCKET(ret)->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaBucketCreate()
3618 if (WXS_IMPBUCKET(ret)->schema == NULL) { in xmlSchemaBucketCreate()
3622 WXS_IMPBUCKET(ret)->schema->targetNamespace = targetNamespace; in xmlSchemaBucketCreate()
4112 xmlSchemaFree(xmlSchemaPtr schema) in xmlSchemaFree() argument
4114 if (schema == NULL) in xmlSchemaFree()
4117 if (schema->volatiles != NULL) in xmlSchemaFree()
4124 if (schema->notaDecl != NULL) in xmlSchemaFree()
4125 xmlHashFree(schema->notaDecl, NULL); in xmlSchemaFree()
4126 if (schema->attrDecl != NULL) in xmlSchemaFree()
4127 xmlHashFree(schema->attrDecl, NULL); in xmlSchemaFree()
4128 if (schema->attrgrpDecl != NULL) in xmlSchemaFree()
4129 xmlHashFree(schema->attrgrpDecl, NULL); in xmlSchemaFree()
4130 if (schema->elemDecl != NULL) in xmlSchemaFree()
4131 xmlHashFree(schema->elemDecl, NULL); in xmlSchemaFree()
4132 if (schema->typeDecl != NULL) in xmlSchemaFree()
4133 xmlHashFree(schema->typeDecl, NULL); in xmlSchemaFree()
4134 if (schema->groupDecl != NULL) in xmlSchemaFree()
4135 xmlHashFree(schema->groupDecl, NULL); in xmlSchemaFree()
4136 if (schema->idcDef != NULL) in xmlSchemaFree()
4137 xmlHashFree(schema->idcDef, NULL); in xmlSchemaFree()
4139 if (schema->schemasImports != NULL) in xmlSchemaFree()
4140 xmlHashFree(schema->schemasImports, in xmlSchemaFree()
4142 if (schema->includes != NULL) { in xmlSchemaFree()
4143 xmlSchemaItemListPtr list = (xmlSchemaItemListPtr) schema->includes; in xmlSchemaFree()
4150 if (schema->annot != NULL) in xmlSchemaFree()
4151 xmlSchemaFreeAnnot(schema->annot); in xmlSchemaFree()
4154 xmlDictFree(schema->dict); in xmlSchemaFree()
4155 xmlFree(schema); in xmlSchemaFree()
4504 xmlSchemaDump(FILE * output, xmlSchemaPtr schema) in xmlSchemaDump() argument
4508 if (schema == NULL) { in xmlSchemaDump()
4513 if (schema->name != NULL) in xmlSchemaDump()
4514 fprintf(output, "%s, ", schema->name); in xmlSchemaDump()
4517 if (schema->targetNamespace != NULL) in xmlSchemaDump()
4518 fprintf(output, "%s", (const char *) schema->targetNamespace); in xmlSchemaDump()
4522 if (schema->annot != NULL) in xmlSchemaDump()
4523 xmlSchemaAnnotDump(output, schema->annot); in xmlSchemaDump()
4524 xmlHashScan(schema->typeDecl, (xmlHashScanner) xmlSchemaTypeDump, in xmlSchemaDump()
4526 xmlHashScanFull(schema->elemDecl, in xmlSchemaDump()
4722 if (xmlStrEqual(nsName, schema->targetNamespace)) { \
4723 ret = xmlHashLookup(schema->slot, name); \
4726 if (xmlHashSize(schema->schemasImports) > 1) { \
4729 import = xmlHashLookup(schema->schemasImports, \
4732 import = xmlHashLookup(schema->schemasImports, nsName); \
4735 ret = xmlHashLookup(import->schema->slot, name); \
4749 xmlSchemaGetElem(xmlSchemaPtr schema, const xmlChar * name, in xmlSchemaGetElem() argument
4754 if ((name == NULL) || (schema == NULL)) in xmlSchemaGetElem()
4756 if (schema != NULL) { in xmlSchemaGetElem()
4783 xmlSchemaGetType(xmlSchemaPtr schema, const xmlChar * name, in xmlSchemaGetType() argument
4802 if (schema != NULL) { in xmlSchemaGetType()
4830 xmlSchemaGetAttributeDecl(xmlSchemaPtr schema, const xmlChar * name, in xmlSchemaGetAttributeDecl() argument
4835 if ((name == NULL) || (schema == NULL)) in xmlSchemaGetAttributeDecl()
4837 if (schema != NULL) { in xmlSchemaGetAttributeDecl()
4864 xmlSchemaGetAttributeGroup(xmlSchemaPtr schema, const xmlChar * name, in xmlSchemaGetAttributeGroup() argument
4869 if ((name == NULL) || (schema == NULL)) in xmlSchemaGetAttributeGroup()
4871 if (schema != NULL) { in xmlSchemaGetAttributeGroup()
4904 xmlSchemaGetGroup(xmlSchemaPtr schema, const xmlChar * name, in xmlSchemaGetGroup() argument
4909 if ((name == NULL) || (schema == NULL)) in xmlSchemaGetGroup()
4911 if (schema != NULL) { in xmlSchemaGetGroup()
4929 xmlSchemaGetNotation(xmlSchemaPtr schema, in xmlSchemaGetNotation() argument
4935 if ((name == NULL) || (schema == NULL)) in xmlSchemaGetNotation()
4937 if (schema != NULL) { in xmlSchemaGetNotation()
4945 xmlSchemaGetIDC(xmlSchemaPtr schema, in xmlSchemaGetIDC() argument
4951 if ((name == NULL) || (schema == NULL)) in xmlSchemaGetIDC()
4953 if (schema != NULL) { in xmlSchemaGetIDC()
4971 xmlSchemaGetNamedComponent(xmlSchemaPtr schema, in xmlSchemaGetNamedComponent() argument
4978 return ((xmlSchemaBasicItemPtr) xmlSchemaGetGroup(schema, in xmlSchemaGetNamedComponent()
4981 return ((xmlSchemaBasicItemPtr) xmlSchemaGetElem(schema, in xmlSchemaGetNamedComponent()
5127 xmlSchemaAddNotation(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaAddNotation() argument
5133 if ((ctxt == NULL) || (schema == NULL) || (name == NULL)) in xmlSchemaAddNotation()
5164 xmlSchemaAddAttribute(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaAddAttribute() argument
5170 if ((ctxt == NULL) || (schema == NULL)) in xmlSchemaAddAttribute()
5276 xmlSchemaPtr schema ATTRIBUTE_UNUSED, in xmlSchemaAddAttributeGroupDefinition()
5368 xmlSchemaAddType(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaAddType() argument
5375 if ((ctxt == NULL) || (schema == NULL)) in xmlSchemaAddType()
5466 xmlSchemaPtr schema, in xmlSchemaAddModelGroup() argument
5472 if ((ctxt == NULL) || (schema == NULL)) in xmlSchemaAddModelGroup()
5554 xmlSchemaPtr schema, in xmlSchemaAddModelGroupDefinition() argument
5561 if ((ctxt == NULL) || (schema == NULL) || (name == NULL)) in xmlSchemaAddModelGroupDefinition()
5615 xmlSchemaAddIDC(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaAddIDC() argument
5621 if ((ctxt == NULL) || (schema == NULL) || (name == NULL)) in xmlSchemaAddIDC()
5657 xmlSchemaAddWildcard(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaAddWildcard() argument
5662 if ((ctxt == NULL) || (schema == NULL)) in xmlSchemaAddWildcard()
5791 xmlSchemaPtr schema, in xmlSchemaPValAttrNodeQNameValue() argument
5820 else if (schema->flags & XML_SCHEMAS_INCLUDING_CONVERT_NS) { in xmlSchemaPValAttrNodeQNameValue()
5872 xmlSchemaPtr schema, in xmlSchemaPValAttrNodeQName() argument
5881 return (xmlSchemaPValAttrNodeQNameValue(ctxt, schema, in xmlSchemaPValAttrNodeQName()
5903 xmlSchemaPtr schema, in xmlSchemaPValAttrQName() argument
5918 return (xmlSchemaPValAttrNodeQName(ctxt, schema, in xmlSchemaPValAttrQName()
6220 ctxt, xmlSchemaPtr schema,
6225 xmlSchemaPtr schema,
6230 xmlSchemaPtr schema,
6235 xmlSchemaPtr schema,
6240 xmlSchemaPtr schema,
6244 xmlSchemaPtr schema, xmlNodePtr node);
6412 xmlSchemaPtr schema ATTRIBUTE_UNUSED, in xmlSchemaCheckReference()
6469 xmlSchemaParseLocalAttributes(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseLocalAttributes() argument
6478 item = xmlSchemaParseLocalAttribute(ctxt, schema, *child, in xmlSchemaParseLocalAttributes()
6481 item = xmlSchemaParseAttributeGroupRef(ctxt, schema, *child); in xmlSchemaParseLocalAttributes()
6632 xmlSchemaParseFacet(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseFacet() argument
6639 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseFacet()
6726 xmlSchemaPtr schema ATTRIBUTE_UNUSED, in xmlSchemaParseWildcardNs()
6892 xmlSchemaParseAny(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseAny() argument
6902 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAny()
6936 wild = xmlSchemaAddWildcard(ctxt, schema, XML_SCHEMA_TYPE_ANY, node); in xmlSchemaParseAny()
6939 xmlSchemaParseWildcardNs(ctxt, schema, wild, node); in xmlSchemaParseAny()
6984 xmlSchemaParseNotation(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseNotation() argument
6991 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseNotation()
6999 ret = xmlSchemaAddNotation(ctxt, schema, name, in xmlSchemaParseNotation()
7033 xmlSchemaPtr schema, xmlNodePtr node) in xmlSchemaParseAnyAttribute() argument
7039 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAnyAttribute()
7042 ret = xmlSchemaAddWildcard(ctxt, schema, XML_SCHEMA_TYPE_ANY_ATTRIBUTE, in xmlSchemaParseAnyAttribute()
7069 if (xmlSchemaParseWildcardNs(ctxt, schema, ret, node) != 0) in xmlSchemaParseAnyAttribute()
7103 xmlSchemaPtr schema, in xmlSchemaParseLocalAttribute() argument
7123 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseLocalAttribute()
7127 if (xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseLocalAttribute()
7131 if (xmlSchemaCheckReference(pctxt, schema, node, attr, tmpNs) != 0) in xmlSchemaParseLocalAttribute()
7156 xmlSchemaPValAttrNodeQName(pctxt, schema, NULL, in xmlSchemaParseLocalAttribute()
7259 if ((! hasForm) && (schema->flags & XML_SCHEMAS_QUALIF_ATTR)) in xmlSchemaParseLocalAttribute()
7307 attrDecl = xmlSchemaAddAttribute(pctxt, schema, name, ns, node, 0); in xmlSchemaParseLocalAttribute()
7480 xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseLocalAttribute()
7495 xmlSchemaPtr schema, in xmlSchemaParseGlobalAttribute() argument
7509 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseGlobalAttribute()
7551 ret = xmlSchemaAddAttribute(pctxt, schema, attrValue, in xmlSchemaParseGlobalAttribute()
7578 xmlSchemaPValAttrQName(pctxt, schema, NULL, in xmlSchemaParseGlobalAttribute()
7622 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseGlobalAttribute()
7648 xmlSchemaPtr schema, in xmlSchemaParseAttributeGroupRef() argument
7656 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupRef()
7666 xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseAttributeGroupRef()
7668 if (xmlSchemaCheckReference(pctxt, schema, node, attr, refNs) != 0) in xmlSchemaParseAttributeGroupRef()
7779 xmlSchemaPtr schema, in xmlSchemaParseAttributeGroupDefinition() argument
7788 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupDefinition()
7806 ret = xmlSchemaAddAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseAttributeGroupDefinition()
7841 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child, in xmlSchemaParseAttributeGroupDefinition()
7852 schema, child); in xmlSchemaParseAttributeGroupDefinition()
8307 xmlSchemaPtr schema, in xmlSchemaParseIDC() argument
8353 item = xmlSchemaAddIDC(ctxt, schema, name, targetNamespace, in xmlSchemaParseIDC()
8377 xmlSchemaPValAttrNodeQName(ctxt, schema, in xmlSchemaParseIDC()
8381 xmlSchemaCheckReference(ctxt, schema, node, attr, in xmlSchemaParseIDC()
8456 xmlSchemaParseElement(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseElement() argument
8470 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseElement()
8524 xmlSchemaPValAttrNodeQName(ctxt, schema, in xmlSchemaParseElement()
8526 xmlSchemaCheckReference(ctxt, schema, node, attr, refNs); in xmlSchemaParseElement()
8617 } else if (schema->flags & XML_SCHEMAS_QUALIF_ELEM) in xmlSchemaParseElement()
8670 xmlSchemaPValAttrQName(ctxt, schema, in xmlSchemaParseElement()
8680 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_EXTENSION) in xmlSchemaParseElement()
8682 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION) in xmlSchemaParseElement()
8706 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION) in xmlSchemaParseElement()
8708 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION) in xmlSchemaParseElement()
8710 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION) in xmlSchemaParseElement()
8732 xmlSchemaPValAttrNodeQName(ctxt, schema, in xmlSchemaParseElement()
8735 xmlSchemaCheckReference(ctxt, schema, node, in xmlSchemaParseElement()
8771 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseComplexType(ctxt, schema, child, 0); in xmlSchemaParseElement()
8786 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseSimpleType(ctxt, schema, child, 0); in xmlSchemaParseElement()
8792 curIDC = xmlSchemaParseIDC(ctxt, schema, child, in xmlSchemaParseElement()
8795 curIDC = xmlSchemaParseIDC(ctxt, schema, child, in xmlSchemaParseElement()
8798 curIDC = xmlSchemaParseIDC(ctxt, schema, child, in xmlSchemaParseElement()
8854 xmlSchemaParseUnion(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseUnion() argument
8862 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseUnion()
8916 if (xmlSchemaPValAttrNodeQNameValue(ctxt, schema, in xmlSchemaParseUnion()
8976 xmlSchemaParseSimpleType(ctxt, schema, child, 0); in xmlSchemaParseUnion()
9023 xmlSchemaParseList(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseList() argument
9030 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseList()
9070 xmlSchemaPValAttrQName(ctxt, schema, NULL, in xmlSchemaParseList()
9094 type->subtypes = xmlSchemaParseSimpleType(ctxt, schema, child, 0); in xmlSchemaParseList()
9134 xmlSchemaParseSimpleType(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseSimpleType() argument
9143 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseSimpleType()
9198 type = xmlSchemaAddType(ctxt, schema, in xmlSchemaParseSimpleType()
9203 type = xmlSchemaAddType(ctxt, schema, in xmlSchemaParseSimpleType()
9233 type = xmlSchemaAddType(ctxt, schema, XML_SCHEMA_TYPE_SIMPLE, in xmlSchemaParseSimpleType()
9263 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION) in xmlSchemaParseSimpleType()
9265 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_LIST) in xmlSchemaParseSimpleType()
9267 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_UNION) in xmlSchemaParseSimpleType()
9303 xmlSchemaParseRestriction(ctxt, schema, child, in xmlSchemaParseSimpleType()
9308 xmlSchemaParseList(ctxt, schema, child); in xmlSchemaParseSimpleType()
9311 xmlSchemaParseUnion(ctxt, schema, child); in xmlSchemaParseSimpleType()
9349 xmlSchemaPtr schema, in xmlSchemaParseModelGroupDefRef() argument
9358 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseModelGroupDefRef()
9367 } else if (xmlSchemaPValAttrNodeQName(ctxt, schema, NULL, in xmlSchemaParseModelGroupDefRef()
9371 xmlSchemaCheckReference(ctxt, schema, node, attr, refNs); in xmlSchemaParseModelGroupDefRef()
9451 xmlSchemaPtr schema, in xmlSchemaParseModelGroupDefinition() argument
9459 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseModelGroupDefinition()
9473 item = xmlSchemaAddModelGroupDefinition(ctxt, schema, name, in xmlSchemaParseModelGroupDefinition()
9504 item->children = xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseModelGroupDefinition()
9508 item->children = xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseModelGroupDefinition()
9512 item->children = xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseModelGroupDefinition()
9605 xmlSchemaClearSchemaDefaults(xmlSchemaPtr schema) in xmlSchemaClearSchemaDefaults() argument
9607 if (schema->flags & XML_SCHEMAS_QUALIF_ELEM) in xmlSchemaClearSchemaDefaults()
9608 schema->flags ^= XML_SCHEMAS_QUALIF_ELEM; in xmlSchemaClearSchemaDefaults()
9610 if (schema->flags & XML_SCHEMAS_QUALIF_ATTR) in xmlSchemaClearSchemaDefaults()
9611 schema->flags ^= XML_SCHEMAS_QUALIF_ATTR; in xmlSchemaClearSchemaDefaults()
9613 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_EXTENSION) in xmlSchemaClearSchemaDefaults()
9614 schema->flags ^= XML_SCHEMAS_FINAL_DEFAULT_EXTENSION; in xmlSchemaClearSchemaDefaults()
9615 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION) in xmlSchemaClearSchemaDefaults()
9616 schema->flags ^= XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION; in xmlSchemaClearSchemaDefaults()
9617 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_LIST) in xmlSchemaClearSchemaDefaults()
9618 schema->flags ^= XML_SCHEMAS_FINAL_DEFAULT_LIST; in xmlSchemaClearSchemaDefaults()
9619 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_UNION) in xmlSchemaClearSchemaDefaults()
9620 schema->flags ^= XML_SCHEMAS_FINAL_DEFAULT_UNION; in xmlSchemaClearSchemaDefaults()
9622 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION) in xmlSchemaClearSchemaDefaults()
9623 schema->flags ^= XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION; in xmlSchemaClearSchemaDefaults()
9624 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION) in xmlSchemaClearSchemaDefaults()
9625 schema->flags ^= XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION; in xmlSchemaClearSchemaDefaults()
9626 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION) in xmlSchemaClearSchemaDefaults()
9627 schema->flags ^= XML_SCHEMAS_BLOCK_DEFAULT_SUBSTITUTION; in xmlSchemaClearSchemaDefaults()
9632 xmlSchemaPtr schema, in xmlSchemaParseSchemaElement() argument
9672 res = xmlSchemaPValAttrFormDefault(val, &schema->flags, in xmlSchemaParseSchemaElement()
9685 res = xmlSchemaPValAttrFormDefault(val, &schema->flags, in xmlSchemaParseSchemaElement()
9698 res = xmlSchemaPValAttrBlockFinal(val, &(schema->flags), -1, in xmlSchemaParseSchemaElement()
9716 res = xmlSchemaPValAttrBlockFinal(val, &(schema->flags), -1, in xmlSchemaParseSchemaElement()
9749 xmlSchemaPtr schema, xmlNodePtr nodes) in xmlSchemaParseSchemaTopLevel() argument
9755 if ((ctxt == NULL) || (schema == NULL) || (nodes == NULL)) in xmlSchemaParseSchemaTopLevel()
9766 if (schema->annot == NULL) in xmlSchemaParseSchemaTopLevel()
9767 schema->annot = annot; in xmlSchemaParseSchemaTopLevel()
9772 res = xmlSchemaParseImport(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9779 res = xmlSchemaParseInclude(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9786 res = xmlSchemaParseRedefine(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9800 xmlSchemaParseComplexType(ctxt, schema, child, 1); in xmlSchemaParseSchemaTopLevel()
9803 xmlSchemaParseSimpleType(ctxt, schema, child, 1); in xmlSchemaParseSchemaTopLevel()
9806 xmlSchemaParseElement(ctxt, schema, child, NULL, 1); in xmlSchemaParseSchemaTopLevel()
9809 xmlSchemaParseGlobalAttribute(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9812 xmlSchemaParseAttributeGroupDefinition(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9815 xmlSchemaParseModelGroupDefinition(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9818 xmlSchemaParseNotation(ctxt, schema, child); in xmlSchemaParseSchemaTopLevel()
9834 if (schema->annot == NULL) in xmlSchemaParseSchemaTopLevel()
9835 schema->annot = annot; in xmlSchemaParseSchemaTopLevel()
9991 if (vctxt->schema != NULL) in xmlSchemaCreatePCtxtOnVCtxt()
9993 xmlSchemaNewParserCtxtUseDict("*", vctxt->schema->dict); in xmlSchemaCreatePCtxtOnVCtxt()
10098 xmlSchemaPtr schema, in xmlSchemaParseNewDocWithContext() argument
10113 oldFlags = schema->flags; in xmlSchemaParseNewDocWithContext()
10114 oldDoc = schema->doc; in xmlSchemaParseNewDocWithContext()
10115 if (schema->flags != 0) in xmlSchemaParseNewDocWithContext()
10116 xmlSchemaClearSchemaDefaults(schema); in xmlSchemaParseNewDocWithContext()
10117 schema->doc = bucket->doc; in xmlSchemaParseNewDocWithContext()
10118 pctxt->schema = schema; in xmlSchemaParseNewDocWithContext()
10137 ret = xmlSchemaParseSchemaElement(pctxt, schema, node); in xmlSchemaParseNewDocWithContext()
10144 ret = xmlSchemaParseSchemaTopLevel(pctxt, schema, node->children); in xmlSchemaParseNewDocWithContext()
10160 schema->doc = oldDoc; in xmlSchemaParseNewDocWithContext()
10161 schema->flags = oldFlags; in xmlSchemaParseNewDocWithContext()
10167 xmlSchemaPtr schema, in xmlSchemaParseNewDoc() argument
10201 newpctxt->schema = schema; in xmlSchemaParseNewDoc()
10209 res = xmlSchemaParseNewDocWithContext(newpctxt, schema, bucket); in xmlSchemaParseNewDoc()
10708 xmlSchemaParseImport(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseImport() argument
10718 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseImport()
10848 ret = xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseImport()
10856 xmlSchemaPtr schema, in xmlSchemaParseIncludeOrRedefineAttrs() argument
10863 if ((pctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchemaParseIncludeOrRedefineAttrs()
10952 xmlSchemaPtr schema, in xmlSchemaParseIncludeOrRedefine() argument
10962 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseIncludeOrRedefine()
10969 res = xmlSchemaParseIncludeOrRedefineAttrs(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11082 if ((schema->flags & XML_SCHEMAS_INCLUDING_CONVERT_NS) == 0) { in xmlSchemaParseIncludeOrRedefine()
11083 schema->flags |= XML_SCHEMAS_INCLUDING_CONVERT_NS; in xmlSchemaParseIncludeOrRedefine()
11087 xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseIncludeOrRedefine()
11090 schema->flags ^= XML_SCHEMAS_INCLUDING_CONVERT_NS; in xmlSchemaParseIncludeOrRedefine()
11115 xmlSchemaParseSimpleType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11117 xmlSchemaParseComplexType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11122 schema, child); in xmlSchemaParseIncludeOrRedefine()
11125 xmlSchemaParseAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11159 xmlSchemaParseRedefine(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseRedefine() argument
11167 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseRedefine()
11175 xmlSchemaParseInclude(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseInclude() argument
11180 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseInclude()
11213 xmlSchemaParseModelGroup(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseModelGroup() argument
11223 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseModelGroup()
11228 item = xmlSchemaAddModelGroup(ctxt, schema, type, node); in xmlSchemaParseModelGroup()
11304 schema, child, &isElemRef, 0); in xmlSchemaParseModelGroup()
11357 xmlSchemaParseElement(ctxt, schema, child, &isElemRef, 0); in xmlSchemaParseModelGroup()
11362 xmlSchemaParseModelGroupDefRef(ctxt, schema, child); in xmlSchemaParseModelGroup()
11429 xmlSchemaParseAny(ctxt, schema, child); in xmlSchemaParseModelGroup()
11431 part = xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseModelGroup()
11434 part = xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseModelGroup()
11479 xmlSchemaParseRestriction(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseRestriction() argument
11486 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseRestriction()
11525 if (xmlSchemaPValAttrQName(ctxt, schema, NULL, node, "base", in xmlSchemaParseRestriction()
11595 xmlSchemaParseSimpleType(ctxt, schema, child, 0); in xmlSchemaParseRestriction()
11614 xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseRestriction()
11620 schema, child, XML_SCHEMA_TYPE_CHOICE, 1); in xmlSchemaParseRestriction()
11624 xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseRestriction()
11632 xmlSchemaParseModelGroupDefRef(ctxt, schema, child); in xmlSchemaParseRestriction()
11652 xmlSchemaParseSimpleType(ctxt, schema, child, 0); in xmlSchemaParseRestriction()
11687 facet = xmlSchemaParseFacet(ctxt, schema, child); in xmlSchemaParseRestriction()
11728 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child, in xmlSchemaParseRestriction()
11737 xmlSchemaParseAnyAttribute(ctxt, schema, child); in xmlSchemaParseRestriction()
11783 xmlSchemaParseExtension(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseExtension() argument
11790 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseExtension()
11819 if ((xmlSchemaPValAttrQName(ctxt, schema, NULL, node, in xmlSchemaParseExtension()
11846 xmlSchemaParseModelGroup(ctxt, schema, in xmlSchemaParseExtension()
11851 xmlSchemaParseModelGroup(ctxt, schema, in xmlSchemaParseExtension()
11856 xmlSchemaParseModelGroup(ctxt, schema, in xmlSchemaParseExtension()
11861 xmlSchemaParseModelGroupDefRef(ctxt, schema, child); in xmlSchemaParseExtension()
11873 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child, in xmlSchemaParseExtension()
11882 xmlSchemaParseAnyAttribute(ctxt, schema, child); in xmlSchemaParseExtension()
11919 xmlSchemaPtr schema, xmlNodePtr node, in xmlSchemaParseSimpleContent() argument
11926 if ((ctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchemaParseSimpleContent()
11977 xmlSchemaParseRestriction(ctxt, schema, child, in xmlSchemaParseSimpleContent()
11982 xmlSchemaParseExtension(ctxt, schema, child, in xmlSchemaParseSimpleContent()
12009 xmlSchemaPtr schema, xmlNodePtr node, in xmlSchemaParseComplexContent() argument
12016 if ((ctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchemaParseComplexContent()
12072 xmlSchemaParseRestriction(ctxt, schema, child, in xmlSchemaParseComplexContent()
12077 xmlSchemaParseExtension(ctxt, schema, child, in xmlSchemaParseComplexContent()
12103 xmlSchemaParseComplexType(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, in xmlSchemaParseComplexType() argument
12117 if ((ctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseComplexType()
12140 type = xmlSchemaAddType(ctxt, schema, in xmlSchemaParseComplexType()
12145 type = xmlSchemaAddType(ctxt, schema, in xmlSchemaParseComplexType()
12161 type = xmlSchemaAddType(ctxt, schema, in xmlSchemaParseComplexType()
12258 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_RESTRICTION) in xmlSchemaParseComplexType()
12260 if (schema->flags & XML_SCHEMAS_BLOCK_DEFAULT_EXTENSION) in xmlSchemaParseComplexType()
12267 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_RESTRICTION) in xmlSchemaParseComplexType()
12269 if (schema->flags & XML_SCHEMAS_FINAL_DEFAULT_EXTENSION) in xmlSchemaParseComplexType()
12290 xmlSchemaParseSimpleContent(ctxt, schema, child, in xmlSchemaParseComplexType()
12298 xmlSchemaParseComplexContent(ctxt, schema, child, in xmlSchemaParseComplexType()
12318 xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseComplexType()
12323 xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseComplexType()
12328 xmlSchemaParseModelGroup(ctxt, schema, child, in xmlSchemaParseComplexType()
12333 xmlSchemaParseModelGroupDefRef(ctxt, schema, child); in xmlSchemaParseComplexType()
12343 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child, in xmlSchemaParseComplexType()
12351 type->attributeWildcard = xmlSchemaParseAnyAttribute(ctxt, schema, child); in xmlSchemaParseComplexType()
13219 type = xmlSchemaGetType(ctxt->schema, elemDecl->namedType, in xmlSchemaResolveElementReferences()
13237 substHead = xmlSchemaGetElem(ctxt->schema, elemDecl->substGroup, in xmlSchemaResolveElementReferences()
13309 memberType = xmlSchemaGetType(ctxt->schema, name, nsName); in xmlSchemaResolveUnionMemberTypes()
15032 typeDef->baseType = xmlSchemaGetType(ctxt->schema, in xmlSchemaResolveTypeReferences()
15056 typeDef->subtypes = xmlSchemaGetType(ctxt->schema, in xmlSchemaResolveTypeReferences()
15097 WXS_MODEL_GROUPDEF_CAST xmlSchemaGetNamedComponent(ctxt->schema, in xmlSchemaResolveTypeReferences()
18228 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18232 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18370 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18495 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18858 pctxt->vctxt->schema = pctxt->schema; in xmlSchemaCheckFacetValues()
18864 pctxt->vctxt->schema = NULL; in xmlSchemaCheckFacetValues()
19232 tmpWild = xmlSchemaAddWildcard(pctxt, pctxt->schema, in xmlSchemaExpandAttributeGroupRefs()
19458 group = xmlSchemaGetAttributeGroup(ctxt->schema, in xmlSchemaResolveAttrGroupReferences()
20043 refItem = xmlSchemaGetNamedComponent(ctxt->schema, in xmlSchemaResolveModelGroupParticleReferences()
20182 ause->attrDecl = xmlSchemaGetAttributeDecl(ctxt->schema, in xmlSchemaResolveAttrUseReferences()
20332 type = xmlSchemaGetType(ctxt->schema, item->typeName, in xmlSchemaResolveAttrTypeReferences()
20371 xmlSchemaGetIDC(pctxt->schema, idc->ref->name, in xmlSchemaResolveIDCKeyReferences()
20429 if (xmlSchemaGetAttributeDecl(pctxt->schema, prohib->name, in xmlSchemaResolveAttrUseProhibReferences()
20714 table = &(WXS_IMPBUCKET((c))->schema->slot); \ in xmlSchemaAddComponents()
20716 table = &(WXS_INCBUCKET((c))->ownerImport->schema->slot); } in xmlSchemaAddComponents()
21365 ctxt->schema = mainSchema; in xmlSchemaParse()
21386 ctxt->schema = NULL; in xmlSchemaParse()
21404 ctxt->schema = NULL; in xmlSchemaParse()
21594 xmlSchemaPtr schema, in xmlSchemaAssembleByLocation() argument
21603 if ((vctxt == NULL) || (schema == NULL)) in xmlSchemaAssembleByLocation()
21663 ret = xmlSchemaParseNewDocWithContext(pctxt, schema, bucket); in xmlSchemaAssembleByLocation()
21771 nsname = xmlDictLookup(vctxt->schema->dict, cur, end - cur); in xmlSchemaAssembleByXSI()
21798 location = xmlDictLookup(vctxt->schema->dict, cur, end - cur); in xmlSchemaAssembleByXSI()
21800 ret = xmlSchemaAssembleByLocation(vctxt, vctxt->schema, in xmlSchemaAssembleByXSI()
21874 xmlSchemaPtr schema, in xmlSchemaValidateNotation() argument
21882 if (vctxt && (vctxt->schema == NULL)) { in xmlSchemaValidateNotation()
21914 if (xmlSchemaGetNotation(schema, localName, nsName) != NULL) { in xmlSchemaValidateNotation()
21926 if (xmlSchemaGetNotation(schema, value, NULL) != NULL) { in xmlSchemaValidateNotation()
22020 if (imported->schema->idcDef != NULL) { in xmlSchemaAugmentImportedIDC()
22021 xmlHashScan(imported->schema->idcDef , in xmlSchemaAugmentImportedIDC()
24555 ((xmlSchemaValidCtxtPtr) actxt)->schema, in xmlSchemaVCheckCVCSimpleType()
24576 ((xmlSchemaParserCtxtPtr) actxt)->schema, node, in xmlSchemaVCheckCVCSimpleType()
24912 *localType = xmlSchemaGetType(vctxt->schema, local, nsName); in xmlSchemaProcessXSIType()
25379 iattr->decl = xmlSchemaGetAttributeDecl(vctxt->schema, in xmlSchemaVAttributesComplex()
25827 decl = xmlSchemaGetElem(vctxt->schema, in xmlSchemaValidateElemWildcard()
26518 vctxt->inode->decl = xmlSchemaGetElem(vctxt->schema, in xmlSchemaValidateChildElem()
26866 … xmlHashScan(vctxt->schema->schemasImports,(xmlHashScanner)xmlSchemaAugmentImportedIDC, vctxt); in xmlSchemaValidateElem()
26895 vctxt->inode->decl = xmlSchemaGetElem(vctxt->schema, in xmlSchemaValidateElem()
27482 xmlSchemaNewValidCtxt(xmlSchemaPtr schema) in xmlSchemaNewValidCtxt() argument
27495 ret->schema = schema; in xmlSchemaNewValidCtxt()
28044 if (vctxt->schema == NULL) { in xmlSchemaPreRun()
28062 vctxt->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaPreRun()
28063 if (vctxt->schema == NULL) in xmlSchemaPreRun()
28071 pctxt->constructor->mainSchema = vctxt->schema; in xmlSchemaPreRun()
28081 xmlHashScan(vctxt->schema->schemasImports,(xmlHashScanner)xmlSchemaAugmentImportedIDC, vctxt); in xmlSchemaPreRun()
28089 if (vctxt->schema != NULL) { in xmlSchemaPostRun()
28090 xmlSchemaFree(vctxt->schema); in xmlSchemaPostRun()
28091 vctxt->schema = NULL; in xmlSchemaPostRun()
28152 if (ctxt->schema == NULL) in xmlSchemaValidateOneElement()