Lines Matching refs:pctxt
1001 xmlSchemaParserCtxtPtr pctxt; member
1108 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt,
2121 xmlSchemaParserCtxtPtr pctxt = (xmlSchemaParserCtxtPtr) ctxt; in xmlSchemaErr4Line() local
2123 pctxt->nberrors++; in xmlSchemaErr4Line()
2124 pctxt->err = error; in xmlSchemaErr4Line()
2125 channel = pctxt->error; in xmlSchemaErr4Line()
2127 channel = pctxt->warning; in xmlSchemaErr4Line()
2129 schannel = pctxt->serror; in xmlSchemaErr4Line()
2130 data = pctxt->errCtxt; in xmlSchemaErr4Line()
2319 xmlSchemaPInternalErr(xmlSchemaParserCtxtPtr pctxt,
2325 xmlSchemaInternalErr2(ACTXT_CAST pctxt, funcName, message,
2774 #define PERROR_INT(func, msg) xmlSchemaInternalErr(ACTXT_CAST pctxt, func, msg);
3575 xmlSchemaBucketCreate(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBucketCreate() argument
3582 if (WXS_CONSTRUCTOR(pctxt)->mainSchema == NULL) { in xmlSchemaBucketCreate()
3587 mainSchema = WXS_CONSTRUCTOR(pctxt)->mainSchema; in xmlSchemaBucketCreate()
3618 if (! WXS_HAS_BUCKETS(pctxt)) { in xmlSchemaBucketCreate()
3628 WXS_CONSTRUCTOR(pctxt)->mainBucket = ret; in xmlSchemaBucketCreate()
3645 WXS_IMPBUCKET(ret)->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaBucketCreate()
3662 WXS_CONSTRUCTOR(pctxt)->dict); in xmlSchemaBucketCreate()
3682 if (WXS_IS_BUCKET_IMPMAIN(WXS_CONSTRUCTOR(pctxt)->bucket->type)) in xmlSchemaBucketCreate()
3684 WXS_IMPBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket); in xmlSchemaBucketCreate()
3687 WXS_INCBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket)->ownerImport; in xmlSchemaBucketCreate()
3703 if (xmlSchemaItemListAdd(WXS_CONSTRUCTOR(pctxt)->buckets, ret) == -1) in xmlSchemaBucketCreate()
5239 xmlSchemaAddAttributeUse(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddAttributeUse() argument
5244 if (pctxt == NULL) in xmlSchemaAddAttributeUse()
5249 xmlSchemaPErrMemory(pctxt, "allocating attribute", NULL); in xmlSchemaAddAttributeUse()
5256 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaAddAttributeUse()
5267 xmlSchemaAddRedef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddRedef() argument
5278 xmlSchemaPErrMemory(pctxt, in xmlSchemaAddRedef()
5287 if (WXS_CONSTRUCTOR(pctxt)->redefs == NULL) in xmlSchemaAddRedef()
5288 WXS_CONSTRUCTOR(pctxt)->redefs = ret; in xmlSchemaAddRedef()
5290 WXS_CONSTRUCTOR(pctxt)->lastRedef->next = ret; in xmlSchemaAddRedef()
5291 WXS_CONSTRUCTOR(pctxt)->lastRedef = ret; in xmlSchemaAddRedef()
5309 xmlSchemaAddAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddAttributeGroupDefinition() argument
5317 if ((pctxt == NULL) || (name == NULL)) in xmlSchemaAddAttributeGroupDefinition()
5323 xmlSchemaPErrMemory(pctxt, "allocating attribute group", NULL); in xmlSchemaAddAttributeGroupDefinition()
5334 if (pctxt->isRedefine) { in xmlSchemaAddAttributeGroupDefinition()
5335 pctxt->redef = xmlSchemaAddRedef(pctxt, pctxt->redefined, in xmlSchemaAddAttributeGroupDefinition()
5337 if (pctxt->redef == NULL) { in xmlSchemaAddAttributeGroupDefinition()
5341 pctxt->redefCounter = 0; in xmlSchemaAddAttributeGroupDefinition()
5343 WXS_ADD_GLOBAL(pctxt, ret); in xmlSchemaAddAttributeGroupDefinition()
5344 WXS_ADD_PENDING(pctxt, ret); in xmlSchemaAddAttributeGroupDefinition()
5440 xmlSchemaNewQNameRef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaNewQNameRef() argument
5450 xmlSchemaPErrMemory(pctxt, in xmlSchemaNewQNameRef()
5463 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaNewQNameRef()
5468 xmlSchemaAddAttributeUseProhib(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaAddAttributeUseProhib() argument
5475 xmlSchemaPErrMemory(pctxt, in xmlSchemaAddAttributeUseProhib()
5481 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaAddAttributeUseProhib()
5728 xmlSchemaSubstGroupAdd(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaSubstGroupAdd() argument
5734 if (WXS_SUBST_GROUPS(pctxt) == NULL) { in xmlSchemaSubstGroupAdd()
5735 WXS_SUBST_GROUPS(pctxt) = xmlHashCreateDict(10, pctxt->dict); in xmlSchemaSubstGroupAdd()
5736 if (WXS_SUBST_GROUPS(pctxt) == NULL) in xmlSchemaSubstGroupAdd()
5755 if (xmlHashAddEntry2(WXS_SUBST_GROUPS(pctxt), in xmlSchemaSubstGroupAdd()
5766 xmlSchemaSubstGroupGet(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaSubstGroupGet() argument
5769 if (WXS_SUBST_GROUPS(pctxt) == NULL) in xmlSchemaSubstGroupGet()
5771 return(xmlHashLookup2(WXS_SUBST_GROUPS(pctxt), in xmlSchemaSubstGroupGet()
5787 xmlSchemaAddElementSubstitutionMember(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddElementSubstitutionMember() argument
5793 if ((pctxt == NULL) || (head == NULL) || (member == NULL)) in xmlSchemaAddElementSubstitutionMember()
5796 substGroup = xmlSchemaSubstGroupGet(pctxt, head); in xmlSchemaAddElementSubstitutionMember()
5798 substGroup = xmlSchemaSubstGroupAdd(pctxt, head); in xmlSchemaAddElementSubstitutionMember()
6274 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt,
6304 xmlSchemaPValAttrNodeValue(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaPValAttrNodeValue() argument
6317 if ((pctxt == NULL) || (type == NULL) || (attr == NULL)) in xmlSchemaPValAttrNodeValue()
6352 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaPValAttrNodeValue()
6451 xmlSchemaCheckReference(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckReference() argument
6458 if (xmlStrEqual(pctxt->targetNamespace, namespaceName)) in xmlSchemaCheckReference()
6465 if (WXS_BUCKET(pctxt)->relations != NULL) { in xmlSchemaCheckReference()
6468 rel = WXS_BUCKET(pctxt)->relations; in xmlSchemaCheckReference()
6483 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckReference()
6489 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckReference()
7142 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseLocalAttribute() argument
7163 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseLocalAttribute()
7167 if (xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseLocalAttribute()
7171 if (xmlSchemaCheckReference(pctxt, schema, node, attr, tmpNs) != 0) in xmlSchemaParseLocalAttribute()
7175 nberrors = pctxt->nberrors; in xmlSchemaParseLocalAttribute()
7184 xmlSchemaPValAttrNodeID(pctxt, attr); in xmlSchemaParseLocalAttribute()
7193 xmlSchemaPValAttrNodeID(pctxt, attr); in xmlSchemaParseLocalAttribute()
7196 xmlSchemaPValAttrNodeQName(pctxt, schema, NULL, in xmlSchemaParseLocalAttribute()
7204 attrValue = xmlSchemaGetNodeContent(pctxt, in xmlSchemaParseLocalAttribute()
7207 ns = pctxt->targetNamespace; in xmlSchemaParseLocalAttribute()
7210 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7221 attrValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7230 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7243 xmlSchemaPMutualExclAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7247 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7257 xmlSchemaPMutualExclAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7261 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7269 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7282 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7293 if (nberrors != pctxt->nberrors) in xmlSchemaParseLocalAttribute()
7300 ns = pctxt->targetNamespace; in xmlSchemaParseLocalAttribute()
7306 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7314 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING, in xmlSchemaParseLocalAttribute()
7318 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseLocalAttribute()
7327 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7340 use = xmlSchemaAddAttributeUse(pctxt, node); in xmlSchemaParseLocalAttribute()
7347 attrDecl = xmlSchemaAddAttribute(pctxt, schema, name, ns, node, 0); in xmlSchemaParseLocalAttribute()
7369 use = xmlSchemaAddAttributeUse(pctxt, node); in xmlSchemaParseLocalAttribute()
7375 WXS_ADD_PENDING(pctxt, use); in xmlSchemaParseLocalAttribute()
7380 ref = xmlSchemaNewQNameRef(pctxt, XML_SCHEMA_TYPE_ATTRIBUTE, in xmlSchemaParseLocalAttribute()
7407 xmlSchemaParseAnnotation(pctxt, child, 0); in xmlSchemaParseLocalAttribute()
7411 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7420 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7428 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7454 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7468 prohib = xmlSchemaAddAttributeUseProhib(pctxt); in xmlSchemaParseLocalAttribute()
7478 WXS_ADD_PENDING(pctxt, prohib); in xmlSchemaParseLocalAttribute()
7486 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseLocalAttribute()
7497 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7502 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7514 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4, in xmlSchemaParseLocalAttribute()
7520 xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseLocalAttribute()
7524 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, in xmlSchemaParseLocalAttribute()
7534 xmlSchemaParseGlobalAttribute(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseGlobalAttribute() argument
7549 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseGlobalAttribute()
7557 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING, in xmlSchemaParseGlobalAttribute()
7561 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseGlobalAttribute()
7570 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseGlobalAttribute()
7584 if (xmlStrEqual(pctxt->targetNamespace, xmlSchemaInstanceNs)) { in xmlSchemaParseGlobalAttribute()
7585 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseGlobalAttribute()
7591 ret = xmlSchemaAddAttribute(pctxt, schema, attrValue, in xmlSchemaParseGlobalAttribute()
7592 pctxt->targetNamespace, node, 1); in xmlSchemaParseGlobalAttribute()
7609 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseGlobalAttribute()
7613 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseGlobalAttribute()
7618 xmlSchemaPValAttrQName(pctxt, schema, NULL, in xmlSchemaParseGlobalAttribute()
7621 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseGlobalAttribute()
7625 ret->defValue = xmlSchemaGetProp(pctxt, node, "fixed"); in xmlSchemaParseGlobalAttribute()
7638 xmlSchemaPMutualExclAttrErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_1, in xmlSchemaParseGlobalAttribute()
7641 ret->defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseGlobalAttribute()
7648 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseGlobalAttribute()
7657 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4, in xmlSchemaParseGlobalAttribute()
7662 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseGlobalAttribute()
7666 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, in xmlSchemaParseGlobalAttribute()
7687 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseAttributeGroupRef() argument
7696 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupRef()
7701 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7706 xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseAttributeGroupRef()
7708 if (xmlSchemaCheckReference(pctxt, schema, node, attr, refNs) != 0) in xmlSchemaParseAttributeGroupRef()
7720 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7724 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7730 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseAttributeGroupRef()
7740 xmlSchemaParseAnnotation(pctxt, child, 0); in xmlSchemaParseAttributeGroupRef()
7744 xmlSchemaPContentErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7753 if (pctxt->isRedefine && pctxt->redef && in xmlSchemaParseAttributeGroupRef()
7754 (pctxt->redef->item->type == in xmlSchemaParseAttributeGroupRef()
7756 (ref == pctxt->redef->refName) && in xmlSchemaParseAttributeGroupRef()
7757 (refNs == pctxt->redef->refTargetNs)) in xmlSchemaParseAttributeGroupRef()
7766 if (pctxt->redefCounter != 0) { in xmlSchemaParseAttributeGroupRef()
7769 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseAttributeGroupRef()
7778 pctxt->redefCounter++; in xmlSchemaParseAttributeGroupRef()
7783 ret = xmlSchemaNewQNameRef(pctxt, in xmlSchemaParseAttributeGroupRef()
7788 pctxt->redef->reference = WXS_BASIC_CAST ret; in xmlSchemaParseAttributeGroupRef()
7795 ret = xmlSchemaNewQNameRef(pctxt, in xmlSchemaParseAttributeGroupRef()
7801 WXS_ADD_PENDING(pctxt, ret); in xmlSchemaParseAttributeGroupRef()
7818 xmlSchemaParseAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseAttributeGroupDefinition() argument
7828 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupDefinition()
7833 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7841 if (xmlSchemaPValAttrNode(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7846 ret = xmlSchemaAddAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseAttributeGroupDefinition()
7847 name, pctxt->targetNamespace, node); in xmlSchemaParseAttributeGroupDefinition()
7859 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7863 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7869 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseAttributeGroupDefinition()
7875 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseAttributeGroupDefinition()
7881 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child, in xmlSchemaParseAttributeGroupDefinition()
7891 ret->attributeWildcard = xmlSchemaParseAnyAttribute(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7896 xmlSchemaPContentErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
10029 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
10031 vctxt->pctxt = in xmlSchemaCreatePCtxtOnVCtxt()
10034 vctxt->pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCreatePCtxtOnVCtxt()
10035 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
10041 xmlSchemaSetParserErrors(vctxt->pctxt, vctxt->error, in xmlSchemaCreatePCtxtOnVCtxt()
10043 xmlSchemaSetParserStructuredErrors(vctxt->pctxt, vctxt->serror, in xmlSchemaCreatePCtxtOnVCtxt()
10060 xmlSchemaGetSchemaBucket(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetSchemaBucket() argument
10066 list = pctxt->constructor->buckets; in xmlSchemaGetSchemaBucket()
10082 xmlSchemaGetChameleonSchemaBucket(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetChameleonSchemaBucket() argument
10089 list = pctxt->constructor->buckets; in xmlSchemaGetChameleonSchemaBucket()
10111 xmlSchemaGetSchemaBucketByTNS(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetSchemaBucketByTNS() argument
10118 list = pctxt->constructor->buckets; in xmlSchemaGetSchemaBucketByTNS()
10136 xmlSchemaParseNewDocWithContext(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseNewDocWithContext() argument
10144 xmlSchemaBucketPtr oldbucket = pctxt->constructor->bucket; in xmlSchemaParseNewDocWithContext()
10157 pctxt->schema = schema; in xmlSchemaParseNewDocWithContext()
10162 pctxt->targetNamespace = bucket->targetNamespace; in xmlSchemaParseNewDocWithContext()
10163 WXS_CONSTRUCTOR(pctxt)->bucket = bucket; in xmlSchemaParseNewDocWithContext()
10170 pctxt->isS4S = 1; in xmlSchemaParseNewDocWithContext()
10176 ret = xmlSchemaParseSchemaElement(pctxt, schema, node); in xmlSchemaParseNewDocWithContext()
10182 oldErrs = pctxt->nberrors; in xmlSchemaParseNewDocWithContext()
10183 ret = xmlSchemaParseSchemaTopLevel(pctxt, schema, node->children); in xmlSchemaParseNewDocWithContext()
10191 if ((ret == 0) && (oldErrs != pctxt->nberrors)) { in xmlSchemaParseNewDocWithContext()
10192 ret = pctxt->err; in xmlSchemaParseNewDocWithContext()
10197 WXS_CONSTRUCTOR(pctxt)->bucket = oldbucket; in xmlSchemaParseNewDocWithContext()
10205 xmlSchemaParseNewDoc(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseNewDoc() argument
10224 if (pctxt->constructor == NULL) { in xmlSchemaParseNewDoc()
10231 (const char *) bucket->schemaLocation, pctxt->dict); in xmlSchemaParseNewDoc()
10234 newpctxt->constructor = pctxt->constructor; in xmlSchemaParseNewDoc()
10241 xmlSchemaSetParserErrors(newpctxt, pctxt->error, pctxt->warning, in xmlSchemaParseNewDoc()
10242 pctxt->errCtxt); in xmlSchemaParseNewDoc()
10243 xmlSchemaSetParserStructuredErrors(newpctxt, pctxt->serror, in xmlSchemaParseNewDoc()
10244 pctxt->errCtxt); in xmlSchemaParseNewDoc()
10245 newpctxt->counter = pctxt->counter; in xmlSchemaParseNewDoc()
10252 pctxt->err = res; in xmlSchemaParseNewDoc()
10253 pctxt->nberrors += newpctxt->nberrors; in xmlSchemaParseNewDoc()
10254 pctxt->counter = newpctxt->counter; in xmlSchemaParseNewDoc()
10323 xmlSchemaAddSchemaDoc(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddSchemaDoc() argument
10361 if ((type == XML_SCHEMA_SCHEMA_MAIN) || (! WXS_HAS_BUCKETS(pctxt))) in xmlSchemaAddSchemaDoc()
10366 bkt = xmlSchemaGetSchemaBucket(pctxt, schemaLocation); in xmlSchemaAddSchemaDoc()
10368 (pctxt->constructor->bucket == bkt)) { in xmlSchemaAddSchemaDoc()
10371 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10384 xmlSchemaSchemaRelationAddChild(pctxt->constructor->bucket, in xmlSchemaAddSchemaDoc()
10415 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10432 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10467 bkt = xmlSchemaGetSchemaBucketByTNS(pctxt, in xmlSchemaAddSchemaDoc()
10486 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaAddSchemaDoc()
10526 chamel = xmlSchemaGetChameleonSchemaBucket(pctxt, in xmlSchemaAddSchemaDoc()
10564 schemaLocation = xmlDictLookup(pctxt->dict, in xmlSchemaAddSchemaDoc()
10577 if ((pctxt->dict != NULL) && (parserCtxt->dict != NULL)) { in xmlSchemaAddSchemaDoc()
10583 parserCtxt->dict = pctxt->dict; in xmlSchemaAddSchemaDoc()
10627 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaAddSchemaDoc()
10637 xmlSchemaPErr(pctxt, NULL, in xmlSchemaAddSchemaDoc()
10653 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOROOT, in xmlSchemaAddSchemaDoc()
10662 xmlSchemaCleanupDoc(pctxt, docElem); in xmlSchemaAddSchemaDoc()
10667 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOT_SCHEMA, in xmlSchemaAddSchemaDoc()
10677 targetNamespace = xmlSchemaGetProp(pctxt, docElem, in xmlSchemaAddSchemaDoc()
10684 bkt = xmlSchemaBucketCreate(pctxt, type, in xmlSchemaAddSchemaDoc()
10723 return(pctxt->err); in xmlSchemaAddSchemaDoc()
10747 xmlSchemaParseImport(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseImport() argument
10757 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseImport()
10769 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseImport()
10773 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseImport()
10781 if (xmlSchemaPValAttr(pctxt, NULL, node, in xmlSchemaParseImport()
10784 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseImport()
10789 return (pctxt->err); in xmlSchemaParseImport()
10792 if (xmlSchemaPValAttr(pctxt, NULL, node, in xmlSchemaParseImport()
10795 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseImport()
10800 return (pctxt->err); in xmlSchemaParseImport()
10814 xmlSchemaPContentErr(pctxt, in xmlSchemaParseImport()
10827 thisTargetNamespace = WXS_BUCKET(pctxt)->origTargetNamespace; in xmlSchemaParseImport()
10835 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseImport()
10841 return (pctxt->err); in xmlSchemaParseImport()
10849 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseImport()
10855 return (pctxt->err); in xmlSchemaParseImport()
10862 schemaLocation = xmlSchemaBuildAbsoluteURI(pctxt->dict, in xmlSchemaParseImport()
10864 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT, in xmlSchemaParseImport()
10879 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseImport()
10887 ret = xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseImport()
10894 xmlSchemaParseIncludeOrRedefineAttrs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseIncludeOrRedefineAttrs() argument
10902 if ((pctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchemaParseIncludeOrRedefineAttrs()
10916 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10920 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10925 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseIncludeOrRedefineAttrs()
10938 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseIncludeOrRedefineAttrs()
10954 (*schemaLocation) = (xmlChar *) xmlDictLookup(pctxt->dict, uri, -1); in xmlSchemaParseIncludeOrRedefineAttrs()
10957 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10965 if (xmlStrEqual(*schemaLocation, pctxt->URL)) { in xmlSchemaParseIncludeOrRedefineAttrs()
10967 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10973 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10984 return(pctxt->err); in xmlSchemaParseIncludeOrRedefineAttrs()
10990 xmlSchemaParseIncludeOrRedefine(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseIncludeOrRedefine() argument
11001 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseIncludeOrRedefine()
11008 res = xmlSchemaParseIncludeOrRedefineAttrs(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11015 res = xmlSchemaAddSchemaDoc(pctxt, type, schemaLocation, NULL, in xmlSchemaParseIncludeOrRedefine()
11016 NULL, 0, node, pctxt->targetNamespace, NULL, &bucket); in xmlSchemaParseIncludeOrRedefine()
11038 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11055 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11073 if (pctxt->targetNamespace == NULL) { in xmlSchemaParseIncludeOrRedefine()
11074 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseIncludeOrRedefine()
11083 pctxt->targetNamespace)) { in xmlSchemaParseIncludeOrRedefine()
11085 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaParseIncludeOrRedefine()
11092 pctxt->targetNamespace); in xmlSchemaParseIncludeOrRedefine()
11095 } else if (pctxt->targetNamespace != NULL) { in xmlSchemaParseIncludeOrRedefine()
11103 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseIncludeOrRedefine()
11112 bucket->targetNamespace = pctxt->targetNamespace; in xmlSchemaParseIncludeOrRedefine()
11126 xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseIncludeOrRedefine()
11139 pctxt->redefined = bucket; in xmlSchemaParseIncludeOrRedefine()
11143 pctxt->isRedefine = 1; in xmlSchemaParseIncludeOrRedefine()
11154 xmlSchemaParseSimpleType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11156 xmlSchemaParseComplexType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11160 xmlSchemaParseModelGroupDefinition(pctxt, in xmlSchemaParseIncludeOrRedefine()
11164 xmlSchemaParseAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11169 pctxt->redefined = NULL; in xmlSchemaParseIncludeOrRedefine()
11170 pctxt->isRedefine = 0; in xmlSchemaParseIncludeOrRedefine()
11182 xmlSchemaPContentErr(pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11186 xmlSchemaPContentErr(pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11194 return(pctxt->err); in xmlSchemaParseIncludeOrRedefine()
11198 xmlSchemaParseRedefine(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseRedefine() argument
11206 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseRedefine()
11214 xmlSchemaParseInclude(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseInclude() argument
11219 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseInclude()
12594 xmlSchemaBuildContentModelForSubstGroup(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBuildContentModelForSubstGroup() argument
12607 start = pctxt->state; in xmlSchemaBuildContentModelForSubstGroup()
12609 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildContentModelForSubstGroup()
12610 substGroup = xmlSchemaSubstGroupGet(pctxt, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12612 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle), in xmlSchemaBuildContentModelForSubstGroup()
12626 tmp = xmlAutomataNewCountedTrans(pctxt->am, start, NULL, counter); in xmlSchemaBuildContentModelForSubstGroup()
12627 xmlAutomataNewTransition2(pctxt->am, tmp, end, in xmlSchemaBuildContentModelForSubstGroup()
12634 xmlAutomataNewTransition2(pctxt->am, tmp, end, in xmlSchemaBuildContentModelForSubstGroup()
12641 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12642 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12663 tmp = xmlAutomataNewTransition2(pctxt->am, start, NULL, in xmlSchemaBuildContentModelForSubstGroup()
12665 xmlAutomataNewEpsilon(pctxt->am, tmp, end); in xmlSchemaBuildContentModelForSubstGroup()
12674 xmlAutomataNewCounter(pctxt->am, minOccurs, in xmlSchemaBuildContentModelForSubstGroup()
12676 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildContentModelForSubstGroup()
12678 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12679 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12688 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12689 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12694 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter); in xmlSchemaBuildContentModelForSubstGroup()
12695 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildContentModelForSubstGroup()
12698 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildContentModelForSubstGroup()
12701 pctxt->state = end; in xmlSchemaBuildContentModelForSubstGroup()
12776 xmlSchemaBuildAContentModel(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBuildAContentModel() argument
12801 start = pctxt->state; in xmlSchemaBuildAContentModel()
12802 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12811 pctxt->state = in xmlSchemaBuildAContentModel()
12812 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12814 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12818 pctxt->state = in xmlSchemaBuildAContentModel()
12819 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12821 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12826 pctxt->state = start; in xmlSchemaBuildAContentModel()
12827 pctxt->state = xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12828 pctxt->state, NULL, BAD_CAST "*", ns->value, wild); in xmlSchemaBuildAContentModel()
12829 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12834 pctxt->state = xmlAutomataNewNegTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12847 counter = xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs); in xmlSchemaBuildAContentModel()
12848 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12850 pctxt->state = in xmlSchemaBuildAContentModel()
12851 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12853 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12854 pctxt->state = in xmlSchemaBuildAContentModel()
12855 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12857 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12861 pctxt->state = in xmlSchemaBuildAContentModel()
12862 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12864 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12869 pctxt->state = xmlAutomataNewNegTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12873 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter); in xmlSchemaBuildAContentModel()
12874 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildAContentModel()
12877 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildAContentModel()
12880 pctxt->state = end; in xmlSchemaBuildAContentModel()
12884 ret = xmlSchemaBuildContentModelForElement(pctxt, particle); in xmlSchemaBuildAContentModel()
12898 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12904 xmlAutomataStatePtr oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12911 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12913 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12915 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
12920 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12925 tmp = pctxt->state; in xmlSchemaBuildAContentModel()
12926 xmlAutomataNewCountedTrans(pctxt->am, tmp, in xmlSchemaBuildAContentModel()
12928 pctxt->state = in xmlSchemaBuildAContentModel()
12929 xmlAutomataNewCounterTrans(pctxt->am, tmp, in xmlSchemaBuildAContentModel()
12932 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12933 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12936 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12938 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12942 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12947 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
12954 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12955 pctxt->state, NULL); in xmlSchemaBuildAContentModel()
12957 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12958 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12967 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12969 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12971 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
12977 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12982 tmp = pctxt->state; in xmlSchemaBuildAContentModel()
12983 xmlAutomataNewCountedTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12985 pctxt->state = in xmlSchemaBuildAContentModel()
12986 xmlAutomataNewCounterTrans(pctxt->am, tmp, NULL, in xmlSchemaBuildAContentModel()
12989 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12990 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12996 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13007 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
13008 pctxt->state, NULL); in xmlSchemaBuildAContentModel()
13011 xmlAutomataNewEpsilon(pctxt->am, oldstate, in xmlSchemaBuildAContentModel()
13012 pctxt->state); in xmlSchemaBuildAContentModel()
13024 start = pctxt->state; in xmlSchemaBuildAContentModel()
13025 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13034 pctxt->state = start; in xmlSchemaBuildAContentModel()
13035 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13038 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
13054 xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs); in xmlSchemaBuildAContentModel()
13055 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13056 base = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13060 pctxt->state = base; in xmlSchemaBuildAContentModel()
13061 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13064 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
13067 xmlAutomataNewEpsilon(pctxt->am, start, base); in xmlSchemaBuildAContentModel()
13068 xmlAutomataNewCountedTrans(pctxt->am, hop, base, counter); in xmlSchemaBuildAContentModel()
13069 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildAContentModel()
13071 xmlAutomataNewEpsilon(pctxt->am, base, end); in xmlSchemaBuildAContentModel()
13074 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildAContentModel()
13077 pctxt->state = end; in xmlSchemaBuildAContentModel()
13093 start = pctxt->state; in xmlSchemaBuildAContentModel()
13094 tmp = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13095 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, tmp); in xmlSchemaBuildAContentModel()
13096 pctxt->state = tmp; in xmlSchemaBuildAContentModel()
13098 pctxt->state = tmp; in xmlSchemaBuildAContentModel()
13120 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
13122 xmlSchemaBuildContentModelForSubstGroup(pctxt, in xmlSchemaBuildAContentModel()
13123 sub, counter, pctxt->state); in xmlSchemaBuildAContentModel()
13127 xmlAutomataNewOnceTrans2(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
13128 pctxt->state, in xmlSchemaBuildAContentModel()
13135 xmlAutomataNewCountTrans2(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
13136 pctxt->state, in xmlSchemaBuildAContentModel()
13146 pctxt->state = in xmlSchemaBuildAContentModel()
13147 xmlAutomataNewAllTrans(pctxt->am, pctxt->state, NULL, 0); in xmlSchemaBuildAContentModel()
13149 xmlAutomataNewEpsilon(pctxt->am, start, pctxt->state); in xmlSchemaBuildAContentModel()
13165 xmlSchemaInternalErr2(ACTXT_CAST pctxt, in xmlSchemaBuildAContentModel()
14149 xmlSchemaCheckDerivationOKRestriction2to4(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckDerivationOKRestriction2to4() argument
14193 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14204 } else if (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14216 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14267 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14300 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14343 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14371 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14381 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14392 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14402 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14414 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14424 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14432 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt,
14452 xmlSchemaFixupTypeAttributeUses(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupTypeAttributeUses() argument
14466 if (xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt) == -1) in xmlSchemaFixupTypeAttributeUses()
14482 if (xmlSchemaExpandAttributeGroupRefs(pctxt, in xmlSchemaFixupTypeAttributeUses()
14484 pctxt->attrProhibs) == -1) in xmlSchemaFixupTypeAttributeUses()
14489 if (pctxt->attrProhibs->nbItems != 0) in xmlSchemaFixupTypeAttributeUses()
14490 prohibs = pctxt->attrProhibs; in xmlSchemaFixupTypeAttributeUses()
14492 if (xmlSchemaExpandAttributeGroupRefs(pctxt, in xmlSchemaFixupTypeAttributeUses()
14605 if (xmlSchemaUnionWildcards(pctxt, type->attributeWildcard, in xmlSchemaFixupTypeAttributeUses()
14941 xmlSchemaCheckTypeDefCircularInternal(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckTypeDefCircularInternal() argument
14951 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckTypeDefCircularInternal()
14964 ret = xmlSchemaCheckTypeDefCircularInternal(pctxt, ctxtType, in xmlSchemaCheckTypeDefCircularInternal()
15004 xmlSchemaCheckUnionTypeDefCircularRecur(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur() argument
15017 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur()
15028 res = xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur()
15043 xmlSchemaCheckUnionTypeDefCircular(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckUnionTypeDefCircular() argument
15048 return(xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, type, in xmlSchemaCheckUnionTypeDefCircular()
15295 xmlSchemaCheckCOSSTRestricts(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckCOSSTRestricts() argument
15313 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15327 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15355 xmlSchemaPIllegalFacetAtomicErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15383 xmlSchemaTypeFixup(itemType, ACTXT_CAST pctxt); in xmlSchemaCheckCOSSTRestricts()
15391 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15404 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15429 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15447 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15472 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15486 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15509 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, itemType, in xmlSchemaCheckCOSSTRestricts()
15512 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckCOSSTRestricts()
15550 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15582 xmlSchemaTypeFixup(member->type, ACTXT_CAST pctxt); in xmlSchemaCheckCOSSTRestricts()
15586 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15609 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15623 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15635 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15648 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15689 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, in xmlSchemaCheckCOSSTRestricts()
15693 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckCOSSTRestricts()
15725 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15844 xmlSchemaParseCheckCOSValidDefault(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseCheckCOSValidDefault() argument
15871 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseCheckCOSValidDefault()
15892 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node, in xmlSchemaParseCheckCOSValidDefault()
15895 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node, in xmlSchemaParseCheckCOSValidDefault()
15922 xmlSchemaCheckCTPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckCTPropsCorrect() argument
15940 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
15986 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
16015 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
16271 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCOSCTExtends()
16284 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCOSCTExtends()
17193 xmlSchemaPCustomErrExt(pctxt, \
17202 xmlSchemaPCustomErr(pctxt, \
17208 xmlSchemaPCustomErr(pctxt, \
17215 xmlSchemaDeriveFacetErr(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDeriveFacetErr() argument
17243 xmlSchemaPCustomErr(pctxt, in xmlSchemaDeriveFacetErr()
17259 xmlSchemaDeriveAndValidateFacets(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDeriveAndValidateFacets() argument
17390 xmlSchemaDeriveFacetErr(pctxt, flength, bflength, 0, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17405 xmlSchemaDeriveFacetErr(pctxt, fminlen, bfminlen, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17419 xmlSchemaDeriveFacetErr(pctxt, fmaxlen, bfmaxlen, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17438 xmlSchemaDeriveFacetErr(pctxt, flength, fminlen, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17448 xmlSchemaDeriveFacetErr(pctxt, flength, fmaxlen, -1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17461 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, fmininc, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17473 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17484 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17493 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17502 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17515 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, fminexc, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17527 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxexc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17539 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17548 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmininc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17557 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17570 xmlSchemaDeriveFacetErr(pctxt, fminexc, fmaxinc, -1, 0, 0); in xmlSchemaDeriveAndValidateFacets()
17582 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfminexc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17594 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17603 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17612 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17625 xmlSchemaDeriveFacetErr(pctxt, fmininc, fmaxexc, -1, 0, 0); in xmlSchemaDeriveAndValidateFacets()
17637 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17649 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17658 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17666 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17678 xmlSchemaDeriveFacetErr(pctxt, ftotdig, bftotdig, in xmlSchemaDeriveAndValidateFacets()
17693 xmlSchemaDeriveFacetErr(pctxt, ffracdig, bffracdig, in xmlSchemaDeriveAndValidateFacets()
17711 xmlSchemaDeriveFacetErr(pctxt, ffracdig, ftotdig, in xmlSchemaDeriveAndValidateFacets()
17775 xmlSchemaPErrMemory(pctxt, in xmlSchemaDeriveAndValidateFacets()
17798 xmlSchemaFinishMemberTypeDefinitionsProperty(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFinishMemberTypeDefinitionsProperty() argument
17815 xmlSchemaTypeFixup(link->type, ACTXT_CAST pctxt); in xmlSchemaFinishMemberTypeDefinitionsProperty()
17829 xmlSchemaPErrMemory(pctxt, "allocating a type link", in xmlSchemaFinishMemberTypeDefinitionsProperty()
17967 xmlSchemaFixupSimpleTypeStageOne(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupSimpleTypeStageOne() argument
18010 if (xmlSchemaFixupSimpleTypeStageOne(pctxt, type->baseType) == -1) in xmlSchemaFixupSimpleTypeStageOne()
18039 xmlSchemaDebugFixedType(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDebugFixedType() argument
18094 xmlSchemaFixupSimpleTypeStageTwo(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupSimpleTypeStageTwo() argument
18097 int res, olderrs = pctxt->nberrors; in xmlSchemaFixupSimpleTypeStageTwo()
18114 xmlSchemaTypeFixup(type->baseType, ACTXT_CAST pctxt); in xmlSchemaFixupSimpleTypeStageTwo()
18122 (xmlSchemaFinishMemberTypeDefinitionsProperty(pctxt, type) == -1)) in xmlSchemaFixupSimpleTypeStageTwo()
18134 res = xmlSchemaCheckSTPropsCorrect(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18140 res = xmlSchemaCheckCOSSTRestricts(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18157 res = xmlSchemaCheckFacetValues(type, pctxt); in xmlSchemaFixupSimpleTypeStageTwo()
18161 res = xmlSchemaDeriveAndValidateFacets(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18173 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18175 if (olderrs != pctxt->nberrors) in xmlSchemaFixupSimpleTypeStageTwo()
18176 return(pctxt->err); in xmlSchemaFixupSimpleTypeStageTwo()
18181 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18187 xmlSchemaFixupComplexType(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupComplexType() argument
18190 int res = 0, olderrs = pctxt->nberrors; in xmlSchemaFixupComplexType()
18205 xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt); in xmlSchemaFixupComplexType()
18216 res = xmlSchemaCheckSRCCT(pctxt, type); in xmlSchemaFixupComplexType()
18265 snprintf(buf, 29, "#scST%d", ++(pctxt->counter)); in xmlSchemaFixupComplexType()
18266 tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1); in xmlSchemaFixupComplexType()
18267 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18271 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18294 xmlSchemaTypeFixup(contentBase, ACTXT_CAST pctxt); in xmlSchemaFixupComplexType()
18299 res = xmlSchemaFixupSimpleTypeStageOne(pctxt, content); in xmlSchemaFixupComplexType()
18301 res = xmlSchemaFixupSimpleTypeStageTwo(pctxt, content); in xmlSchemaFixupComplexType()
18317 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18337 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18357 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18401 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18409 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18488 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaFixupComplexType()
18508 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaFixupComplexType()
18526 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18534 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18546 (xmlSchemaTreeItemPtr) xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18594 res = xmlSchemaFixupTypeAttributeUses(pctxt, type); in xmlSchemaFixupComplexType()
18601 res = xmlSchemaCheckCTComponent(pctxt, type); in xmlSchemaFixupComplexType()
18605 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18607 if (olderrs != pctxt->nberrors) in xmlSchemaFixupComplexType()
18608 return(pctxt->err); in xmlSchemaFixupComplexType()
18615 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18617 return(pctxt->err); in xmlSchemaFixupComplexType()
18622 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18671 xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckFacet() argument
18682 if (pctxt == NULL) in xmlSchemaCheckFacet()
18731 pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCheckFacet()
18732 if (pctxt == NULL) in xmlSchemaCheckFacet()
18743 ACTXT_CAST pctxt, facet->node, base, in xmlSchemaCheckFacet()
18749 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18763 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18788 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18824 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18849 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18860 if ((! ctxtGiven) && (pctxt != NULL)) in xmlSchemaCheckFacet()
18861 xmlSchemaFreeParserCtxt(pctxt); in xmlSchemaCheckFacet()
18864 if ((! ctxtGiven) && (pctxt != NULL)) in xmlSchemaCheckFacet()
18865 xmlSchemaFreeParserCtxt(pctxt); in xmlSchemaCheckFacet()
18878 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckFacetValues() argument
18880 int res, olderrs = pctxt->nberrors; in xmlSchemaCheckFacetValues()
18893 if (pctxt->vctxt == NULL) { in xmlSchemaCheckFacetValues()
18894 if (xmlSchemaCreateVCtxtOnPCtxt(pctxt) == -1) in xmlSchemaCheckFacetValues()
18897 pctxt->vctxt->schema = pctxt->schema; in xmlSchemaCheckFacetValues()
18899 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name); in xmlSchemaCheckFacetValues()
18903 pctxt->vctxt->schema = NULL; in xmlSchemaCheckFacetValues()
18905 if (olderrs != pctxt->nberrors) in xmlSchemaCheckFacetValues()
18906 return(pctxt->err); in xmlSchemaCheckFacetValues()
19179 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt,
19197 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaExpandAttributeGroupRefs() argument
19249 if (xmlSchemaAttributeGroupExpandRefs(pctxt, gr) == -1) in xmlSchemaExpandAttributeGroupRefs()
19271 tmpWild = xmlSchemaAddWildcard(pctxt, pctxt->schema, in xmlSchemaExpandAttributeGroupRefs()
19276 if (xmlSchemaCloneWildcardNsConstraints(pctxt, in xmlSchemaExpandAttributeGroupRefs()
19284 if (xmlSchemaIntersectWildcards(pctxt, *completeWild, in xmlSchemaExpandAttributeGroupRefs()
19331 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaExpandAttributeGroupRefs()
19367 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAttributeGroupExpandRefs() argument
19375 if (xmlSchemaExpandAttributeGroupRefs(pctxt, WXS_BASIC_CAST attrGr, in xmlSchemaAttributeGroupExpandRefs()
19393 xmlSchemaCheckAGPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckAGPropsCorrect() argument
19429 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAGPropsCorrect()
19459 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAGPropsCorrect()
19527 xmlSchemaCheckAttrPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckAttrPropsCorrect() argument
19553 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19559 return(pctxt->err); in xmlSchemaCheckAttrPropsCorrect()
19569 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19579 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19584 return(pctxt->err); in xmlSchemaCheckAttrPropsCorrect()
19625 xmlSchemaCheckElemPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckElemPropsCorrect() argument
19639 xmlSchemaCheckElementDeclComponent(head, pctxt); in xmlSchemaCheckElemPropsCorrect()
19645 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckElemPropsCorrect()
19667 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckElemPropsCorrect()
19702 if (xmlSchemaCheckCOSDerivedOK(ACTXT_CAST pctxt, typeDef, in xmlSchemaCheckElemPropsCorrect()
19707 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckElemPropsCorrect()
19739 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckElemPropsCorrect()
19756 xmlSchemaPErr(pctxt, elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19771 vcret = xmlSchemaParseCheckCOSValidDefault(pctxt, node, in xmlSchemaCheckElemPropsCorrect()
19916 xmlSchemaCheckElementDeclConsistent(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckElementDeclConsistent() argument
19943 ret = xmlSchemaCheckElementDeclConsistent(pctxt, in xmlSchemaCheckElementDeclConsistent()
19967 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckElementDeclConsistent()
20008 xmlSchemaInternalErr2(ACTXT_CAST pctxt, in xmlSchemaCheckElementDeclConsistent()
20404 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaResolveIDCKeyReferences() argument
20410 xmlSchemaGetIDC(pctxt->schema, idc->ref->name, in xmlSchemaResolveIDCKeyReferences()
20417 xmlSchemaPResCompAttrErr(pctxt, in xmlSchemaResolveIDCKeyReferences()
20423 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20428 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaResolveIDCKeyReferences()
20434 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20448 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaResolveIDCKeyReferences()
20457 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20466 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaResolveAttrUseProhibReferences() argument
20468 if (xmlSchemaGetAttributeDecl(pctxt->schema, prohib->name, in xmlSchemaResolveAttrUseProhibReferences()
20471 xmlSchemaPResCompAttrErr(pctxt, in xmlSchemaResolveAttrUseProhibReferences()
20491 xmlSchemaCheckSRCRedefineFirst(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckSRCRedefineFirst() argument
20494 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs; in xmlSchemaCheckSRCRedefineFirst()
20542 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckSRCRedefineFirst()
20555 err = pctxt->err; in xmlSchemaCheckSRCRedefineFirst()
20646 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckSRCRedefineFirst()
20655 err = pctxt->err; in xmlSchemaCheckSRCRedefineFirst()
20666 xmlSchemaCheckSRCRedefineSecond(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckSRCRedefineSecond() argument
20669 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs; in xmlSchemaCheckSRCRedefineSecond()
20722 err = xmlSchemaCheckDerivationOKRestriction2to4(pctxt, in xmlSchemaCheckSRCRedefineSecond()
20742 xmlSchemaAddComponents(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddComponents() argument
20822 *table = xmlHashCreateDict(10, pctxt->dict); in xmlSchemaAddComponents()
20833 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaAddComponents()
20851 if (xmlSchemaAddComponents(pctxt, rel->bucket) == -1) in xmlSchemaAddComponents()
20861 xmlSchemaFixupComponents(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupComponents() argument
20864 xmlSchemaConstructionCtxtPtr con = pctxt->constructor; in xmlSchemaFixupComponents()
20870 #define FIXHFAILURE if (pctxt->err == XML_SCHEMAP_INTERNAL) goto exit_failure; in xmlSchemaFixupComponents()
20897 xmlSchemaCheckSRCRedefineFirst(pctxt); in xmlSchemaFixupComponents()
20902 xmlSchemaAddComponents(pctxt, rootBucket); in xmlSchemaFixupComponents()
20904 pctxt->ctxtType = NULL; in xmlSchemaFixupComponents()
20938 (xmlSchemaElementPtr) item, pctxt); in xmlSchemaFixupComponents()
20944 (xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
20949 (xmlSchemaAttributePtr) item, pctxt); in xmlSchemaFixupComponents()
20954 (xmlSchemaAttributeUsePtr) item, pctxt); in xmlSchemaFixupComponents()
20962 WXS_QNAME_CAST item, pctxt); in xmlSchemaFixupComponents()
20969 xmlSchemaResolveModelGroupParticleReferences(pctxt, in xmlSchemaFixupComponents()
20977 (xmlSchemaIDCPtr) item, pctxt); in xmlSchemaFixupComponents()
20986 WXS_ATTR_PROHIB_CAST item, pctxt); in xmlSchemaFixupComponents()
20993 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21013 (xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
21015 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21020 (xmlSchemaModelGroupDefPtr) item, pctxt); in xmlSchemaFixupComponents()
21022 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21027 (xmlSchemaAttributeGroupPtr) item, pctxt); in xmlSchemaFixupComponents()
21029 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21036 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21051 xmlSchemaModelGroupToModelGroupDefFixup(pctxt, in xmlSchemaFixupComponents()
21058 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21070 xmlSchemaAttributeGroupExpandRefs(pctxt, in xmlSchemaFixupComponents()
21079 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21091 xmlSchemaFixupSimpleTypeStageOne(pctxt, in xmlSchemaFixupComponents()
21100 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21111 xmlSchemaCheckUnionTypeDefCircular(pctxt, in xmlSchemaFixupComponents()
21120 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21131 xmlSchemaFixupSimpleTypeStageTwo(pctxt, WXS_TYPE_CAST item); in xmlSchemaFixupComponents()
21139 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21151 xmlSchemaCheckAttrPropsCorrect(pctxt, WXS_ATTR_CAST item); in xmlSchemaFixupComponents()
21158 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21168 xmlSchemaCheckAttrUsePropsCorrect(pctxt, in xmlSchemaFixupComponents()
21177 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21190 xmlSchemaCheckAGPropsCorrect(pctxt, WXS_ATTR_GROUP_CAST item); in xmlSchemaFixupComponents()
21198 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21204 if (WXS_CONSTRUCTOR(pctxt)->redefs != NULL) in xmlSchemaFixupComponents()
21205 xmlSchemaCheckSRCRedefineSecond(pctxt); in xmlSchemaFixupComponents()
21206 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21217 xmlSchemaFixupComplexType(pctxt, WXS_TYPE_CAST item); in xmlSchemaFixupComponents()
21225 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21247 (xmlSchemaElementPtr) elemDecl, pctxt); in xmlSchemaFixupComponents()
21260 xmlSchemaCheckElementDeclConsistent(pctxt, in xmlSchemaFixupComponents()
21271 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21283 xmlSchemaBuildContentModel((xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
21290 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21298 ret = pctxt->err; in xmlSchemaFixupComponents()
21638 xmlSchemaParserCtxtPtr pctxt; in xmlSchemaAssembleByLocation() local
21644 if (vctxt->pctxt == NULL) { in xmlSchemaAssembleByLocation()
21649 pctxt = vctxt->pctxt; in xmlSchemaAssembleByLocation()
21650 if (pctxt->constructor == NULL) { in xmlSchemaAssembleByLocation()
21658 location = xmlSchemaBuildAbsoluteURI(pctxt->dict, in xmlSchemaAssembleByLocation()
21665 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT, in xmlSchemaAssembleByLocation()
21685 (WXS_CONSTRUCTOR(pctxt)->bucket == NULL)) in xmlSchemaAssembleByLocation()
21686 WXS_CONSTRUCTOR(pctxt)->bucket = bucket; in xmlSchemaAssembleByLocation()
21697 pctxt->nberrors = 0; in xmlSchemaAssembleByLocation()
21698 pctxt->err = 0; in xmlSchemaAssembleByLocation()
21699 pctxt->doc = bucket->doc; in xmlSchemaAssembleByLocation()
21701 ret = xmlSchemaParseNewDocWithContext(pctxt, schema, bucket); in xmlSchemaAssembleByLocation()
21703 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
21707 if ((ret == 0) && (pctxt->nberrors != 0)) in xmlSchemaAssembleByLocation()
21708 ret = pctxt->err; in xmlSchemaAssembleByLocation()
21709 if (pctxt->nberrors == 0) { in xmlSchemaAssembleByLocation()
21716 xmlSchemaFixupComponents(pctxt, bucket); in xmlSchemaAssembleByLocation()
21717 ret = pctxt->err; in xmlSchemaAssembleByLocation()
21724 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21727 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21729 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
21732 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
27722 if (ctxt->pctxt != NULL) in xmlSchemaFreeValidCtxt()
27723 xmlSchemaFreeParserCtxt(ctxt->pctxt); in xmlSchemaFreeValidCtxt()
27833 if (ctxt->pctxt != NULL) in xmlSchemaSetValidErrors()
27834 xmlSchemaSetParserErrors(ctxt->pctxt, err, warn, ctx); in xmlSchemaSetValidErrors()
27855 if (ctxt->pctxt != NULL) in xmlSchemaSetValidStructuredErrors()
27856 xmlSchemaSetParserStructuredErrors(ctxt->pctxt, serror, ctx); in xmlSchemaSetValidStructuredErrors()
28125 xmlSchemaParserCtxtPtr pctxt; in xmlSchemaPreRun() local
28134 if ((vctxt->pctxt == NULL) && in xmlSchemaPreRun()
28137 pctxt = vctxt->pctxt; in xmlSchemaPreRun()
28138 pctxt->xsiAssemble = 1; in xmlSchemaPreRun()
28142 vctxt->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaPreRun()
28148 pctxt->constructor = xmlSchemaConstructionCtxtCreate(pctxt->dict); in xmlSchemaPreRun()
28149 if (pctxt->constructor == NULL) in xmlSchemaPreRun()
28151 pctxt->constructor->mainSchema = vctxt->schema; in xmlSchemaPreRun()
28155 pctxt->ownsConstructor = 1; in xmlSchemaPreRun()
28870 xmlParserCtxtPtr pctxt = NULL; in xmlSchemaValidateStream() local
28880 pctxt = xmlNewParserCtxt(); in xmlSchemaValidateStream()
28881 if (pctxt == NULL) in xmlSchemaValidateStream()
28883 old_sax = pctxt->sax; in xmlSchemaValidateStream()
28884 pctxt->sax = sax; in xmlSchemaValidateStream()
28885 pctxt->userData = user_data; in xmlSchemaValidateStream()
28888 xmlCtxtUseOptions(pctxt, options); in xmlSchemaValidateStream()
28890 pctxt->linenumbers = 1; in xmlSchemaValidateStream()
28891 xmlSchemaValidateSetLocator(ctxt, xmlSchemaValidateStreamLocator, pctxt); in xmlSchemaValidateStream()
28893 inputStream = xmlNewIOInputStream(pctxt, input, enc);; in xmlSchemaValidateStream()
28898 inputPush(pctxt, inputStream); in xmlSchemaValidateStream()
28899 ctxt->parserCtxt = pctxt; in xmlSchemaValidateStream()
28905 plug = xmlSchemaSAXPlug(ctxt, &(pctxt->sax), &(pctxt->userData)); in xmlSchemaValidateStream()
28912 ctxt->sax = pctxt->sax; in xmlSchemaValidateStream()
28930 if (pctxt != NULL) { in xmlSchemaValidateStream()
28931 pctxt->sax = old_sax; in xmlSchemaValidateStream()
28932 xmlFreeParserCtxt(pctxt); in xmlSchemaValidateStream()