Lines Matching refs:pctxt

1002     xmlSchemaParserCtxtPtr pctxt;  member
1121 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt,
2166 xmlSchemaParserCtxtPtr pctxt = (xmlSchemaParserCtxtPtr) ctxt; in xmlSchemaErr4Line() local
2168 pctxt->nberrors++; in xmlSchemaErr4Line()
2169 pctxt->err = error; in xmlSchemaErr4Line()
2170 channel = pctxt->error; in xmlSchemaErr4Line()
2172 channel = pctxt->warning; in xmlSchemaErr4Line()
2174 schannel = pctxt->serror; in xmlSchemaErr4Line()
2175 data = pctxt->errCtxt; in xmlSchemaErr4Line()
2364 xmlSchemaPInternalErr(xmlSchemaParserCtxtPtr pctxt,
2370 xmlSchemaInternalErr2(ACTXT_CAST pctxt, funcName, message,
2819 #define PERROR_INT(func, msg) xmlSchemaInternalErr(ACTXT_CAST pctxt, func, msg);
3614 xmlSchemaBucketCreate(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBucketCreate() argument
3621 if (WXS_CONSTRUCTOR(pctxt)->mainSchema == NULL) { in xmlSchemaBucketCreate()
3626 mainSchema = WXS_CONSTRUCTOR(pctxt)->mainSchema; in xmlSchemaBucketCreate()
3657 if (! WXS_HAS_BUCKETS(pctxt)) { in xmlSchemaBucketCreate()
3667 WXS_CONSTRUCTOR(pctxt)->mainBucket = ret; in xmlSchemaBucketCreate()
3684 WXS_IMPBUCKET(ret)->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaBucketCreate()
3701 WXS_CONSTRUCTOR(pctxt)->dict); in xmlSchemaBucketCreate()
3721 if (WXS_IS_BUCKET_IMPMAIN(WXS_CONSTRUCTOR(pctxt)->bucket->type)) in xmlSchemaBucketCreate()
3723 WXS_IMPBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket); in xmlSchemaBucketCreate()
3726 WXS_INCBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket)->ownerImport; in xmlSchemaBucketCreate()
3742 if (xmlSchemaItemListAdd(WXS_CONSTRUCTOR(pctxt)->buckets, ret) == -1) in xmlSchemaBucketCreate()
5278 xmlSchemaAddAttributeUse(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddAttributeUse() argument
5283 if (pctxt == NULL) in xmlSchemaAddAttributeUse()
5288 xmlSchemaPErrMemory(pctxt, "allocating attribute", NULL); in xmlSchemaAddAttributeUse()
5295 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaAddAttributeUse()
5306 xmlSchemaAddRedef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddRedef() argument
5317 xmlSchemaPErrMemory(pctxt, in xmlSchemaAddRedef()
5326 if (WXS_CONSTRUCTOR(pctxt)->redefs == NULL) in xmlSchemaAddRedef()
5327 WXS_CONSTRUCTOR(pctxt)->redefs = ret; in xmlSchemaAddRedef()
5329 WXS_CONSTRUCTOR(pctxt)->lastRedef->next = ret; in xmlSchemaAddRedef()
5330 WXS_CONSTRUCTOR(pctxt)->lastRedef = ret; in xmlSchemaAddRedef()
5348 xmlSchemaAddAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddAttributeGroupDefinition() argument
5356 if ((pctxt == NULL) || (name == NULL)) in xmlSchemaAddAttributeGroupDefinition()
5362 xmlSchemaPErrMemory(pctxt, "allocating attribute group", NULL); in xmlSchemaAddAttributeGroupDefinition()
5373 if (pctxt->isRedefine) { in xmlSchemaAddAttributeGroupDefinition()
5374 pctxt->redef = xmlSchemaAddRedef(pctxt, pctxt->redefined, in xmlSchemaAddAttributeGroupDefinition()
5376 if (pctxt->redef == NULL) { in xmlSchemaAddAttributeGroupDefinition()
5380 pctxt->redefCounter = 0; in xmlSchemaAddAttributeGroupDefinition()
5382 WXS_ADD_GLOBAL(pctxt, ret); in xmlSchemaAddAttributeGroupDefinition()
5383 WXS_ADD_PENDING(pctxt, ret); in xmlSchemaAddAttributeGroupDefinition()
5479 xmlSchemaNewQNameRef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaNewQNameRef() argument
5489 xmlSchemaPErrMemory(pctxt, in xmlSchemaNewQNameRef()
5502 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaNewQNameRef()
5507 xmlSchemaAddAttributeUseProhib(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaAddAttributeUseProhib() argument
5514 xmlSchemaPErrMemory(pctxt, in xmlSchemaAddAttributeUseProhib()
5520 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaAddAttributeUseProhib()
5767 xmlSchemaSubstGroupAdd(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaSubstGroupAdd() argument
5773 if (WXS_SUBST_GROUPS(pctxt) == NULL) { in xmlSchemaSubstGroupAdd()
5774 WXS_SUBST_GROUPS(pctxt) = xmlHashCreateDict(10, pctxt->dict); in xmlSchemaSubstGroupAdd()
5775 if (WXS_SUBST_GROUPS(pctxt) == NULL) in xmlSchemaSubstGroupAdd()
5794 if (xmlHashAddEntry2(WXS_SUBST_GROUPS(pctxt), in xmlSchemaSubstGroupAdd()
5805 xmlSchemaSubstGroupGet(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaSubstGroupGet() argument
5808 if (WXS_SUBST_GROUPS(pctxt) == NULL) in xmlSchemaSubstGroupGet()
5810 return(xmlHashLookup2(WXS_SUBST_GROUPS(pctxt), in xmlSchemaSubstGroupGet()
5826 xmlSchemaAddElementSubstitutionMember(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddElementSubstitutionMember() argument
5832 if ((pctxt == NULL) || (head == NULL) || (member == NULL)) in xmlSchemaAddElementSubstitutionMember()
5835 substGroup = xmlSchemaSubstGroupGet(pctxt, head); in xmlSchemaAddElementSubstitutionMember()
5837 substGroup = xmlSchemaSubstGroupAdd(pctxt, head); in xmlSchemaAddElementSubstitutionMember()
6322 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt,
6351 xmlSchemaPValAttrNodeValue(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaPValAttrNodeValue() argument
6364 if ((pctxt == NULL) || (type == NULL) || (attr == NULL)) in xmlSchemaPValAttrNodeValue()
6399 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaPValAttrNodeValue()
6496 xmlSchemaCheckReference(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckReference() argument
6503 if (xmlStrEqual(pctxt->targetNamespace, namespaceName)) in xmlSchemaCheckReference()
6510 if (WXS_BUCKET(pctxt)->relations != NULL) { in xmlSchemaCheckReference()
6513 rel = WXS_BUCKET(pctxt)->relations; in xmlSchemaCheckReference()
6528 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckReference()
6534 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckReference()
7187 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseLocalAttribute() argument
7208 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseLocalAttribute()
7212 if (xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseLocalAttribute()
7216 if (xmlSchemaCheckReference(pctxt, schema, node, attr, tmpNs) != 0) in xmlSchemaParseLocalAttribute()
7220 nberrors = pctxt->nberrors; in xmlSchemaParseLocalAttribute()
7229 xmlSchemaPValAttrNodeID(pctxt, attr); in xmlSchemaParseLocalAttribute()
7238 xmlSchemaPValAttrNodeID(pctxt, attr); in xmlSchemaParseLocalAttribute()
7241 xmlSchemaPValAttrNodeQName(pctxt, schema, NULL, in xmlSchemaParseLocalAttribute()
7249 attrValue = xmlSchemaGetNodeContent(pctxt, in xmlSchemaParseLocalAttribute()
7252 ns = pctxt->targetNamespace; in xmlSchemaParseLocalAttribute()
7255 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7266 attrValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7275 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7288 xmlSchemaPMutualExclAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7292 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7302 xmlSchemaPMutualExclAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7306 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7314 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7327 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7338 if (nberrors != pctxt->nberrors) in xmlSchemaParseLocalAttribute()
7345 ns = pctxt->targetNamespace; in xmlSchemaParseLocalAttribute()
7351 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7359 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING, in xmlSchemaParseLocalAttribute()
7363 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseLocalAttribute()
7372 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7385 use = xmlSchemaAddAttributeUse(pctxt, node); in xmlSchemaParseLocalAttribute()
7392 attrDecl = xmlSchemaAddAttribute(pctxt, schema, name, ns, node, 0); in xmlSchemaParseLocalAttribute()
7414 use = xmlSchemaAddAttributeUse(pctxt, node); in xmlSchemaParseLocalAttribute()
7420 WXS_ADD_PENDING(pctxt, use); in xmlSchemaParseLocalAttribute()
7425 ref = xmlSchemaNewQNameRef(pctxt, XML_SCHEMA_TYPE_ATTRIBUTE, in xmlSchemaParseLocalAttribute()
7452 xmlSchemaParseAnnotation(pctxt, child, 0); in xmlSchemaParseLocalAttribute()
7456 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7465 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7473 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7499 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7513 prohib = xmlSchemaAddAttributeUseProhib(pctxt); in xmlSchemaParseLocalAttribute()
7523 WXS_ADD_PENDING(pctxt, prohib); in xmlSchemaParseLocalAttribute()
7531 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseLocalAttribute()
7542 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7547 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7559 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4, in xmlSchemaParseLocalAttribute()
7565 xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseLocalAttribute()
7569 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, in xmlSchemaParseLocalAttribute()
7579 xmlSchemaParseGlobalAttribute(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseGlobalAttribute() argument
7594 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseGlobalAttribute()
7602 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING, in xmlSchemaParseGlobalAttribute()
7606 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseGlobalAttribute()
7615 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseGlobalAttribute()
7629 if (xmlStrEqual(pctxt->targetNamespace, xmlSchemaInstanceNs)) { in xmlSchemaParseGlobalAttribute()
7630 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseGlobalAttribute()
7636 ret = xmlSchemaAddAttribute(pctxt, schema, attrValue, in xmlSchemaParseGlobalAttribute()
7637 pctxt->targetNamespace, node, 1); in xmlSchemaParseGlobalAttribute()
7654 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseGlobalAttribute()
7658 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseGlobalAttribute()
7663 xmlSchemaPValAttrQName(pctxt, schema, NULL, in xmlSchemaParseGlobalAttribute()
7666 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseGlobalAttribute()
7670 ret->defValue = xmlSchemaGetProp(pctxt, node, "fixed"); in xmlSchemaParseGlobalAttribute()
7683 xmlSchemaPMutualExclAttrErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_1, in xmlSchemaParseGlobalAttribute()
7686 ret->defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseGlobalAttribute()
7693 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseGlobalAttribute()
7702 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4, in xmlSchemaParseGlobalAttribute()
7707 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseGlobalAttribute()
7711 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, in xmlSchemaParseGlobalAttribute()
7732 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseAttributeGroupRef() argument
7741 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupRef()
7746 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7751 xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseAttributeGroupRef()
7753 if (xmlSchemaCheckReference(pctxt, schema, node, attr, refNs) != 0) in xmlSchemaParseAttributeGroupRef()
7765 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7769 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7775 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseAttributeGroupRef()
7785 xmlSchemaParseAnnotation(pctxt, child, 0); in xmlSchemaParseAttributeGroupRef()
7789 xmlSchemaPContentErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7798 if (pctxt->isRedefine && pctxt->redef && in xmlSchemaParseAttributeGroupRef()
7799 (pctxt->redef->item->type == in xmlSchemaParseAttributeGroupRef()
7801 (ref == pctxt->redef->refName) && in xmlSchemaParseAttributeGroupRef()
7802 (refNs == pctxt->redef->refTargetNs)) in xmlSchemaParseAttributeGroupRef()
7811 if (pctxt->redefCounter != 0) { in xmlSchemaParseAttributeGroupRef()
7814 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseAttributeGroupRef()
7823 pctxt->redefCounter++; in xmlSchemaParseAttributeGroupRef()
7828 ret = xmlSchemaNewQNameRef(pctxt, in xmlSchemaParseAttributeGroupRef()
7833 pctxt->redef->reference = WXS_BASIC_CAST ret; in xmlSchemaParseAttributeGroupRef()
7840 ret = xmlSchemaNewQNameRef(pctxt, in xmlSchemaParseAttributeGroupRef()
7846 WXS_ADD_PENDING(pctxt, ret); in xmlSchemaParseAttributeGroupRef()
7863 xmlSchemaParseAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseAttributeGroupDefinition() argument
7873 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupDefinition()
7878 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7886 if (xmlSchemaPValAttrNode(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7891 ret = xmlSchemaAddAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseAttributeGroupDefinition()
7892 name, pctxt->targetNamespace, node); in xmlSchemaParseAttributeGroupDefinition()
7904 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7908 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7914 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseAttributeGroupDefinition()
7920 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseAttributeGroupDefinition()
7926 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child, in xmlSchemaParseAttributeGroupDefinition()
7936 ret->attributeWildcard = xmlSchemaParseAnyAttribute(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7941 xmlSchemaPContentErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
10074 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
10076 vctxt->pctxt = in xmlSchemaCreatePCtxtOnVCtxt()
10079 vctxt->pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCreatePCtxtOnVCtxt()
10080 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
10086 xmlSchemaSetParserErrors(vctxt->pctxt, vctxt->error, in xmlSchemaCreatePCtxtOnVCtxt()
10088 xmlSchemaSetParserStructuredErrors(vctxt->pctxt, vctxt->serror, in xmlSchemaCreatePCtxtOnVCtxt()
10105 xmlSchemaGetSchemaBucket(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetSchemaBucket() argument
10111 list = pctxt->constructor->buckets; in xmlSchemaGetSchemaBucket()
10127 xmlSchemaGetChameleonSchemaBucket(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetChameleonSchemaBucket() argument
10134 list = pctxt->constructor->buckets; in xmlSchemaGetChameleonSchemaBucket()
10156 xmlSchemaGetSchemaBucketByTNS(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetSchemaBucketByTNS() argument
10163 list = pctxt->constructor->buckets; in xmlSchemaGetSchemaBucketByTNS()
10181 xmlSchemaParseNewDocWithContext(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseNewDocWithContext() argument
10189 xmlSchemaBucketPtr oldbucket = pctxt->constructor->bucket; in xmlSchemaParseNewDocWithContext()
10202 pctxt->schema = schema; in xmlSchemaParseNewDocWithContext()
10207 pctxt->targetNamespace = bucket->targetNamespace; in xmlSchemaParseNewDocWithContext()
10208 WXS_CONSTRUCTOR(pctxt)->bucket = bucket; in xmlSchemaParseNewDocWithContext()
10215 pctxt->isS4S = 1; in xmlSchemaParseNewDocWithContext()
10221 ret = xmlSchemaParseSchemaElement(pctxt, schema, node); in xmlSchemaParseNewDocWithContext()
10227 oldErrs = pctxt->nberrors; in xmlSchemaParseNewDocWithContext()
10228 ret = xmlSchemaParseSchemaTopLevel(pctxt, schema, node->children); in xmlSchemaParseNewDocWithContext()
10236 if ((ret == 0) && (oldErrs != pctxt->nberrors)) { in xmlSchemaParseNewDocWithContext()
10237 ret = pctxt->err; in xmlSchemaParseNewDocWithContext()
10242 WXS_CONSTRUCTOR(pctxt)->bucket = oldbucket; in xmlSchemaParseNewDocWithContext()
10250 xmlSchemaParseNewDoc(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseNewDoc() argument
10269 if (pctxt->constructor == NULL) { in xmlSchemaParseNewDoc()
10276 (const char *) bucket->schemaLocation, pctxt->dict); in xmlSchemaParseNewDoc()
10279 newpctxt->constructor = pctxt->constructor; in xmlSchemaParseNewDoc()
10286 xmlSchemaSetParserErrors(newpctxt, pctxt->error, pctxt->warning, in xmlSchemaParseNewDoc()
10287 pctxt->errCtxt); in xmlSchemaParseNewDoc()
10288 xmlSchemaSetParserStructuredErrors(newpctxt, pctxt->serror, in xmlSchemaParseNewDoc()
10289 pctxt->errCtxt); in xmlSchemaParseNewDoc()
10290 newpctxt->counter = pctxt->counter; in xmlSchemaParseNewDoc()
10297 pctxt->err = res; in xmlSchemaParseNewDoc()
10298 pctxt->nberrors += newpctxt->nberrors; in xmlSchemaParseNewDoc()
10299 pctxt->counter = newpctxt->counter; in xmlSchemaParseNewDoc()
10368 xmlSchemaAddSchemaDoc(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddSchemaDoc() argument
10406 if ((type == XML_SCHEMA_SCHEMA_MAIN) || (! WXS_HAS_BUCKETS(pctxt))) in xmlSchemaAddSchemaDoc()
10411 bkt = xmlSchemaGetSchemaBucket(pctxt, schemaLocation); in xmlSchemaAddSchemaDoc()
10413 (pctxt->constructor->bucket == bkt)) { in xmlSchemaAddSchemaDoc()
10416 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10429 xmlSchemaSchemaRelationAddChild(pctxt->constructor->bucket, in xmlSchemaAddSchemaDoc()
10460 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10477 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10512 bkt = xmlSchemaGetSchemaBucketByTNS(pctxt, in xmlSchemaAddSchemaDoc()
10531 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaAddSchemaDoc()
10571 chamel = xmlSchemaGetChameleonSchemaBucket(pctxt, in xmlSchemaAddSchemaDoc()
10609 schemaLocation = xmlDictLookup(pctxt->dict, in xmlSchemaAddSchemaDoc()
10622 if ((pctxt->dict != NULL) && (parserCtxt->dict != NULL)) { in xmlSchemaAddSchemaDoc()
10628 parserCtxt->dict = pctxt->dict; in xmlSchemaAddSchemaDoc()
10672 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaAddSchemaDoc()
10682 xmlSchemaPErr(pctxt, NULL, in xmlSchemaAddSchemaDoc()
10698 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOROOT, in xmlSchemaAddSchemaDoc()
10707 xmlSchemaCleanupDoc(pctxt, docElem); in xmlSchemaAddSchemaDoc()
10712 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOT_SCHEMA, in xmlSchemaAddSchemaDoc()
10722 targetNamespace = xmlSchemaGetProp(pctxt, docElem, in xmlSchemaAddSchemaDoc()
10729 bkt = xmlSchemaBucketCreate(pctxt, type, in xmlSchemaAddSchemaDoc()
10768 return(pctxt->err); in xmlSchemaAddSchemaDoc()
10792 xmlSchemaParseImport(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseImport() argument
10802 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseImport()
10814 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseImport()
10818 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseImport()
10826 if (xmlSchemaPValAttr(pctxt, NULL, node, in xmlSchemaParseImport()
10829 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseImport()
10834 return (pctxt->err); in xmlSchemaParseImport()
10837 if (xmlSchemaPValAttr(pctxt, NULL, node, in xmlSchemaParseImport()
10840 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseImport()
10845 return (pctxt->err); in xmlSchemaParseImport()
10859 xmlSchemaPContentErr(pctxt, in xmlSchemaParseImport()
10872 thisTargetNamespace = WXS_BUCKET(pctxt)->origTargetNamespace; in xmlSchemaParseImport()
10880 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseImport()
10886 return (pctxt->err); in xmlSchemaParseImport()
10894 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseImport()
10900 return (pctxt->err); in xmlSchemaParseImport()
10907 schemaLocation = xmlSchemaBuildAbsoluteURI(pctxt->dict, in xmlSchemaParseImport()
10909 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT, in xmlSchemaParseImport()
10924 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseImport()
10932 ret = xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseImport()
10939 xmlSchemaParseIncludeOrRedefineAttrs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseIncludeOrRedefineAttrs() argument
10947 if ((pctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchemaParseIncludeOrRedefineAttrs()
10961 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10965 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10970 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseIncludeOrRedefineAttrs()
10983 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseIncludeOrRedefineAttrs()
10999 (*schemaLocation) = (xmlChar *) xmlDictLookup(pctxt->dict, uri, -1); in xmlSchemaParseIncludeOrRedefineAttrs()
11002 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
11010 if (xmlStrEqual(*schemaLocation, pctxt->URL)) { in xmlSchemaParseIncludeOrRedefineAttrs()
11012 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
11018 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
11029 return(pctxt->err); in xmlSchemaParseIncludeOrRedefineAttrs()
11035 xmlSchemaParseIncludeOrRedefine(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseIncludeOrRedefine() argument
11046 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseIncludeOrRedefine()
11053 res = xmlSchemaParseIncludeOrRedefineAttrs(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11060 res = xmlSchemaAddSchemaDoc(pctxt, type, schemaLocation, NULL, in xmlSchemaParseIncludeOrRedefine()
11061 NULL, 0, node, pctxt->targetNamespace, NULL, &bucket); in xmlSchemaParseIncludeOrRedefine()
11083 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11100 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11118 if (pctxt->targetNamespace == NULL) { in xmlSchemaParseIncludeOrRedefine()
11119 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseIncludeOrRedefine()
11128 pctxt->targetNamespace)) { in xmlSchemaParseIncludeOrRedefine()
11130 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaParseIncludeOrRedefine()
11137 pctxt->targetNamespace); in xmlSchemaParseIncludeOrRedefine()
11140 } else if (pctxt->targetNamespace != NULL) { in xmlSchemaParseIncludeOrRedefine()
11148 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseIncludeOrRedefine()
11157 bucket->targetNamespace = pctxt->targetNamespace; in xmlSchemaParseIncludeOrRedefine()
11171 xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseIncludeOrRedefine()
11184 pctxt->redefined = bucket; in xmlSchemaParseIncludeOrRedefine()
11188 pctxt->isRedefine = 1; in xmlSchemaParseIncludeOrRedefine()
11199 xmlSchemaParseSimpleType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11201 xmlSchemaParseComplexType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11205 xmlSchemaParseModelGroupDefinition(pctxt, in xmlSchemaParseIncludeOrRedefine()
11209 xmlSchemaParseAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11214 pctxt->redefined = NULL; in xmlSchemaParseIncludeOrRedefine()
11215 pctxt->isRedefine = 0; in xmlSchemaParseIncludeOrRedefine()
11227 xmlSchemaPContentErr(pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11231 xmlSchemaPContentErr(pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11239 return(pctxt->err); in xmlSchemaParseIncludeOrRedefine()
11243 xmlSchemaParseRedefine(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseRedefine() argument
11251 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseRedefine()
11259 xmlSchemaParseInclude(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseInclude() argument
11264 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseInclude()
12639 xmlSchemaBuildContentModelForSubstGroup(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBuildContentModelForSubstGroup() argument
12652 start = pctxt->state; in xmlSchemaBuildContentModelForSubstGroup()
12654 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildContentModelForSubstGroup()
12655 substGroup = xmlSchemaSubstGroupGet(pctxt, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12657 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle), in xmlSchemaBuildContentModelForSubstGroup()
12671 tmp = xmlAutomataNewCountedTrans(pctxt->am, start, NULL, counter); in xmlSchemaBuildContentModelForSubstGroup()
12672 xmlAutomataNewTransition2(pctxt->am, tmp, end, in xmlSchemaBuildContentModelForSubstGroup()
12679 xmlAutomataNewTransition2(pctxt->am, tmp, end, in xmlSchemaBuildContentModelForSubstGroup()
12686 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12687 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12708 tmp = xmlAutomataNewTransition2(pctxt->am, start, NULL, in xmlSchemaBuildContentModelForSubstGroup()
12710 xmlAutomataNewEpsilon(pctxt->am, tmp, end); in xmlSchemaBuildContentModelForSubstGroup()
12719 xmlAutomataNewCounter(pctxt->am, minOccurs, in xmlSchemaBuildContentModelForSubstGroup()
12721 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildContentModelForSubstGroup()
12723 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12724 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12733 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12734 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12739 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter); in xmlSchemaBuildContentModelForSubstGroup()
12740 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildContentModelForSubstGroup()
12743 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildContentModelForSubstGroup()
12746 pctxt->state = end; in xmlSchemaBuildContentModelForSubstGroup()
12821 xmlSchemaBuildAContentModel(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBuildAContentModel() argument
12846 start = pctxt->state; in xmlSchemaBuildAContentModel()
12847 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12856 pctxt->state = in xmlSchemaBuildAContentModel()
12857 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12859 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12863 pctxt->state = in xmlSchemaBuildAContentModel()
12864 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12866 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12871 pctxt->state = start; in xmlSchemaBuildAContentModel()
12872 pctxt->state = xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12873 pctxt->state, NULL, BAD_CAST "*", ns->value, wild); in xmlSchemaBuildAContentModel()
12874 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12879 pctxt->state = xmlAutomataNewNegTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12892 counter = xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs); in xmlSchemaBuildAContentModel()
12893 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12895 pctxt->state = in xmlSchemaBuildAContentModel()
12896 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12898 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12899 pctxt->state = in xmlSchemaBuildAContentModel()
12900 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12902 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12906 pctxt->state = in xmlSchemaBuildAContentModel()
12907 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12909 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12914 pctxt->state = xmlAutomataNewNegTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12918 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter); in xmlSchemaBuildAContentModel()
12919 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildAContentModel()
12922 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildAContentModel()
12925 pctxt->state = end; in xmlSchemaBuildAContentModel()
12929 ret = xmlSchemaBuildContentModelForElement(pctxt, particle); in xmlSchemaBuildAContentModel()
12943 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12949 xmlAutomataStatePtr oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12956 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12958 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12960 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
12965 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12970 tmp = pctxt->state; in xmlSchemaBuildAContentModel()
12971 xmlAutomataNewCountedTrans(pctxt->am, tmp, in xmlSchemaBuildAContentModel()
12973 pctxt->state = in xmlSchemaBuildAContentModel()
12974 xmlAutomataNewCounterTrans(pctxt->am, tmp, in xmlSchemaBuildAContentModel()
12977 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12978 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12981 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12983 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12987 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12992 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
12999 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
13000 pctxt->state, NULL); in xmlSchemaBuildAContentModel()
13002 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
13003 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
13012 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
13014 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
13016 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
13022 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13027 tmp = pctxt->state; in xmlSchemaBuildAContentModel()
13028 xmlAutomataNewCountedTrans(pctxt->am, in xmlSchemaBuildAContentModel()
13030 pctxt->state = in xmlSchemaBuildAContentModel()
13031 xmlAutomataNewCounterTrans(pctxt->am, tmp, NULL, in xmlSchemaBuildAContentModel()
13034 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
13035 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
13041 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13052 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
13053 pctxt->state, NULL); in xmlSchemaBuildAContentModel()
13056 xmlAutomataNewEpsilon(pctxt->am, oldstate, in xmlSchemaBuildAContentModel()
13057 pctxt->state); in xmlSchemaBuildAContentModel()
13069 start = pctxt->state; in xmlSchemaBuildAContentModel()
13070 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13079 pctxt->state = start; in xmlSchemaBuildAContentModel()
13080 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13083 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
13099 xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs); in xmlSchemaBuildAContentModel()
13100 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13101 base = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13105 pctxt->state = base; in xmlSchemaBuildAContentModel()
13106 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
13109 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
13112 xmlAutomataNewEpsilon(pctxt->am, start, base); in xmlSchemaBuildAContentModel()
13113 xmlAutomataNewCountedTrans(pctxt->am, hop, base, counter); in xmlSchemaBuildAContentModel()
13114 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildAContentModel()
13116 xmlAutomataNewEpsilon(pctxt->am, base, end); in xmlSchemaBuildAContentModel()
13119 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildAContentModel()
13122 pctxt->state = end; in xmlSchemaBuildAContentModel()
13138 start = pctxt->state; in xmlSchemaBuildAContentModel()
13139 tmp = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13140 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, tmp); in xmlSchemaBuildAContentModel()
13141 pctxt->state = tmp; in xmlSchemaBuildAContentModel()
13143 pctxt->state = tmp; in xmlSchemaBuildAContentModel()
13165 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
13167 xmlSchemaBuildContentModelForSubstGroup(pctxt, in xmlSchemaBuildAContentModel()
13168 sub, counter, pctxt->state); in xmlSchemaBuildAContentModel()
13172 xmlAutomataNewOnceTrans2(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
13173 pctxt->state, in xmlSchemaBuildAContentModel()
13180 xmlAutomataNewCountTrans2(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
13181 pctxt->state, in xmlSchemaBuildAContentModel()
13191 pctxt->state = in xmlSchemaBuildAContentModel()
13192 xmlAutomataNewAllTrans(pctxt->am, pctxt->state, NULL, 0); in xmlSchemaBuildAContentModel()
13194 xmlAutomataNewEpsilon(pctxt->am, start, pctxt->state); in xmlSchemaBuildAContentModel()
13210 xmlSchemaInternalErr2(ACTXT_CAST pctxt, in xmlSchemaBuildAContentModel()
14194 xmlSchemaCheckDerivationOKRestriction2to4(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckDerivationOKRestriction2to4() argument
14238 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14249 } else if (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14261 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14312 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14345 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14388 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14416 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14426 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14437 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14447 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14459 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14469 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14477 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt,
14497 xmlSchemaFixupTypeAttributeUses(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupTypeAttributeUses() argument
14511 if (xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt) == -1) in xmlSchemaFixupTypeAttributeUses()
14527 if (xmlSchemaExpandAttributeGroupRefs(pctxt, in xmlSchemaFixupTypeAttributeUses()
14529 pctxt->attrProhibs) == -1) in xmlSchemaFixupTypeAttributeUses()
14534 if (pctxt->attrProhibs->nbItems != 0) in xmlSchemaFixupTypeAttributeUses()
14535 prohibs = pctxt->attrProhibs; in xmlSchemaFixupTypeAttributeUses()
14537 if (xmlSchemaExpandAttributeGroupRefs(pctxt, in xmlSchemaFixupTypeAttributeUses()
14650 if (xmlSchemaUnionWildcards(pctxt, type->attributeWildcard, in xmlSchemaFixupTypeAttributeUses()
15026 xmlSchemaCheckTypeDefCircularInternal(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckTypeDefCircularInternal() argument
15036 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckTypeDefCircularInternal()
15049 ret = xmlSchemaCheckTypeDefCircularInternal(pctxt, ctxtType, in xmlSchemaCheckTypeDefCircularInternal()
15089 xmlSchemaCheckUnionTypeDefCircularRecur(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur() argument
15102 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur()
15113 res = xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur()
15128 xmlSchemaCheckUnionTypeDefCircular(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckUnionTypeDefCircular() argument
15133 return(xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, type, in xmlSchemaCheckUnionTypeDefCircular()
15380 xmlSchemaCheckCOSSTRestricts(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckCOSSTRestricts() argument
15398 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15412 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15440 xmlSchemaPIllegalFacetAtomicErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15468 xmlSchemaTypeFixup(itemType, ACTXT_CAST pctxt); in xmlSchemaCheckCOSSTRestricts()
15476 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15489 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15514 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15532 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15557 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15571 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15594 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, itemType, in xmlSchemaCheckCOSSTRestricts()
15597 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckCOSSTRestricts()
15635 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15667 xmlSchemaTypeFixup(member->type, ACTXT_CAST pctxt); in xmlSchemaCheckCOSSTRestricts()
15671 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15694 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15708 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15720 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15733 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15774 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, in xmlSchemaCheckCOSSTRestricts()
15778 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckCOSSTRestricts()
15810 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15929 xmlSchemaParseCheckCOSValidDefault(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseCheckCOSValidDefault() argument
15956 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseCheckCOSValidDefault()
15977 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node, in xmlSchemaParseCheckCOSValidDefault()
15980 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node, in xmlSchemaParseCheckCOSValidDefault()
16007 xmlSchemaCheckCTPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckCTPropsCorrect() argument
16025 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
16071 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
16100 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
16356 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCOSCTExtends()
16369 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCOSCTExtends()
17278 xmlSchemaPCustomErrExt(pctxt, \
17287 xmlSchemaPCustomErr(pctxt, \
17293 xmlSchemaPCustomErr(pctxt, \
17300 xmlSchemaDeriveFacetErr(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDeriveFacetErr() argument
17328 xmlSchemaPCustomErr(pctxt, in xmlSchemaDeriveFacetErr()
17344 xmlSchemaDeriveAndValidateFacets(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDeriveAndValidateFacets() argument
17475 xmlSchemaDeriveFacetErr(pctxt, flength, bflength, 0, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17490 xmlSchemaDeriveFacetErr(pctxt, fminlen, bfminlen, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17504 xmlSchemaDeriveFacetErr(pctxt, fmaxlen, bfmaxlen, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17523 xmlSchemaDeriveFacetErr(pctxt, flength, fminlen, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17533 xmlSchemaDeriveFacetErr(pctxt, flength, fmaxlen, -1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17546 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, fmininc, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17558 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17569 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17578 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17587 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17600 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, fminexc, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17612 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxexc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17624 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17633 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmininc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17642 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17655 xmlSchemaDeriveFacetErr(pctxt, fminexc, fmaxinc, -1, 0, 0); in xmlSchemaDeriveAndValidateFacets()
17667 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfminexc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17679 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17688 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17697 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17710 xmlSchemaDeriveFacetErr(pctxt, fmininc, fmaxexc, -1, 0, 0); in xmlSchemaDeriveAndValidateFacets()
17722 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17734 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17743 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17751 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17763 xmlSchemaDeriveFacetErr(pctxt, ftotdig, bftotdig, in xmlSchemaDeriveAndValidateFacets()
17778 xmlSchemaDeriveFacetErr(pctxt, ffracdig, bffracdig, in xmlSchemaDeriveAndValidateFacets()
17796 xmlSchemaDeriveFacetErr(pctxt, ffracdig, ftotdig, in xmlSchemaDeriveAndValidateFacets()
17860 xmlSchemaPErrMemory(pctxt, in xmlSchemaDeriveAndValidateFacets()
17883 xmlSchemaFinishMemberTypeDefinitionsProperty(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFinishMemberTypeDefinitionsProperty() argument
17900 xmlSchemaTypeFixup(link->type, ACTXT_CAST pctxt); in xmlSchemaFinishMemberTypeDefinitionsProperty()
17914 xmlSchemaPErrMemory(pctxt, "allocating a type link", in xmlSchemaFinishMemberTypeDefinitionsProperty()
18052 xmlSchemaFixupSimpleTypeStageOne(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupSimpleTypeStageOne() argument
18095 if (xmlSchemaFixupSimpleTypeStageOne(pctxt, type->baseType) == -1) in xmlSchemaFixupSimpleTypeStageOne()
18124 xmlSchemaDebugFixedType(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDebugFixedType() argument
18179 xmlSchemaFixupSimpleTypeStageTwo(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupSimpleTypeStageTwo() argument
18182 int res, olderrs = pctxt->nberrors; in xmlSchemaFixupSimpleTypeStageTwo()
18199 xmlSchemaTypeFixup(type->baseType, ACTXT_CAST pctxt); in xmlSchemaFixupSimpleTypeStageTwo()
18207 (xmlSchemaFinishMemberTypeDefinitionsProperty(pctxt, type) == -1)) in xmlSchemaFixupSimpleTypeStageTwo()
18219 res = xmlSchemaCheckSTPropsCorrect(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18225 res = xmlSchemaCheckCOSSTRestricts(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18242 res = xmlSchemaCheckFacetValues(type, pctxt); in xmlSchemaFixupSimpleTypeStageTwo()
18246 res = xmlSchemaDeriveAndValidateFacets(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18258 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18260 if (olderrs != pctxt->nberrors) in xmlSchemaFixupSimpleTypeStageTwo()
18261 return(pctxt->err); in xmlSchemaFixupSimpleTypeStageTwo()
18266 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18272 xmlSchemaFixupComplexType(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupComplexType() argument
18275 int res = 0, olderrs = pctxt->nberrors; in xmlSchemaFixupComplexType()
18290 xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt); in xmlSchemaFixupComplexType()
18301 res = xmlSchemaCheckSRCCT(pctxt, type); in xmlSchemaFixupComplexType()
18350 snprintf(buf, 29, "#scST%d", ++(pctxt->counter)); in xmlSchemaFixupComplexType()
18351 tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1); in xmlSchemaFixupComplexType()
18352 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18356 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18379 xmlSchemaTypeFixup(contentBase, ACTXT_CAST pctxt); in xmlSchemaFixupComplexType()
18384 res = xmlSchemaFixupSimpleTypeStageOne(pctxt, content); in xmlSchemaFixupComplexType()
18386 res = xmlSchemaFixupSimpleTypeStageTwo(pctxt, content); in xmlSchemaFixupComplexType()
18402 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18422 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18442 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18486 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18494 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18573 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaFixupComplexType()
18593 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaFixupComplexType()
18611 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18619 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18631 (xmlSchemaTreeItemPtr) xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18679 res = xmlSchemaFixupTypeAttributeUses(pctxt, type); in xmlSchemaFixupComplexType()
18686 res = xmlSchemaCheckCTComponent(pctxt, type); in xmlSchemaFixupComplexType()
18690 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18692 if (olderrs != pctxt->nberrors) in xmlSchemaFixupComplexType()
18693 return(pctxt->err); in xmlSchemaFixupComplexType()
18700 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18702 return(pctxt->err); in xmlSchemaFixupComplexType()
18707 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18756 xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckFacet() argument
18767 if (pctxt == NULL) in xmlSchemaCheckFacet()
18816 pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCheckFacet()
18817 if (pctxt == NULL) in xmlSchemaCheckFacet()
18828 ACTXT_CAST pctxt, facet->node, base, in xmlSchemaCheckFacet()
18834 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18848 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18873 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18909 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18934 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18945 if ((! ctxtGiven) && (pctxt != NULL)) in xmlSchemaCheckFacet()
18946 xmlSchemaFreeParserCtxt(pctxt); in xmlSchemaCheckFacet()
18949 if ((! ctxtGiven) && (pctxt != NULL)) in xmlSchemaCheckFacet()
18950 xmlSchemaFreeParserCtxt(pctxt); in xmlSchemaCheckFacet()
18963 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckFacetValues() argument
18965 int res, olderrs = pctxt->nberrors; in xmlSchemaCheckFacetValues()
18978 if (pctxt->vctxt == NULL) { in xmlSchemaCheckFacetValues()
18979 if (xmlSchemaCreateVCtxtOnPCtxt(pctxt) == -1) in xmlSchemaCheckFacetValues()
18982 pctxt->vctxt->schema = pctxt->schema; in xmlSchemaCheckFacetValues()
18984 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name); in xmlSchemaCheckFacetValues()
18988 pctxt->vctxt->schema = NULL; in xmlSchemaCheckFacetValues()
18990 if (olderrs != pctxt->nberrors) in xmlSchemaCheckFacetValues()
18991 return(pctxt->err); in xmlSchemaCheckFacetValues()
19264 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt,
19282 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaExpandAttributeGroupRefs() argument
19334 if (xmlSchemaAttributeGroupExpandRefs(pctxt, gr) == -1) in xmlSchemaExpandAttributeGroupRefs()
19356 tmpWild = xmlSchemaAddWildcard(pctxt, pctxt->schema, in xmlSchemaExpandAttributeGroupRefs()
19361 if (xmlSchemaCloneWildcardNsConstraints(pctxt, in xmlSchemaExpandAttributeGroupRefs()
19369 if (xmlSchemaIntersectWildcards(pctxt, *completeWild, in xmlSchemaExpandAttributeGroupRefs()
19416 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaExpandAttributeGroupRefs()
19452 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAttributeGroupExpandRefs() argument
19460 if (xmlSchemaExpandAttributeGroupRefs(pctxt, WXS_BASIC_CAST attrGr, in xmlSchemaAttributeGroupExpandRefs()
19478 xmlSchemaCheckAGPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckAGPropsCorrect() argument
19514 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAGPropsCorrect()
19544 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAGPropsCorrect()
19612 xmlSchemaCheckAttrPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckAttrPropsCorrect() argument
19638 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19644 return(pctxt->err); in xmlSchemaCheckAttrPropsCorrect()
19654 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19664 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19669 return(pctxt->err); in xmlSchemaCheckAttrPropsCorrect()
19710 xmlSchemaCheckElemPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckElemPropsCorrect() argument
19724 xmlSchemaCheckElementDeclComponent(head, pctxt); in xmlSchemaCheckElemPropsCorrect()
19730 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckElemPropsCorrect()
19752 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckElemPropsCorrect()
19787 if (xmlSchemaCheckCOSDerivedOK(ACTXT_CAST pctxt, typeDef, in xmlSchemaCheckElemPropsCorrect()
19792 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckElemPropsCorrect()
19824 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckElemPropsCorrect()
19841 xmlSchemaPErr(pctxt, elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19856 vcret = xmlSchemaParseCheckCOSValidDefault(pctxt, node, in xmlSchemaCheckElemPropsCorrect()
20001 xmlSchemaCheckElementDeclConsistent(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckElementDeclConsistent() argument
20028 ret = xmlSchemaCheckElementDeclConsistent(pctxt, in xmlSchemaCheckElementDeclConsistent()
20052 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckElementDeclConsistent()
20093 xmlSchemaInternalErr2(ACTXT_CAST pctxt, in xmlSchemaCheckElementDeclConsistent()
20489 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaResolveIDCKeyReferences() argument
20495 xmlSchemaGetIDC(pctxt->schema, idc->ref->name, in xmlSchemaResolveIDCKeyReferences()
20502 xmlSchemaPResCompAttrErr(pctxt, in xmlSchemaResolveIDCKeyReferences()
20508 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20513 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaResolveIDCKeyReferences()
20519 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20533 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaResolveIDCKeyReferences()
20542 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20551 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaResolveAttrUseProhibReferences() argument
20553 if (xmlSchemaGetAttributeDecl(pctxt->schema, prohib->name, in xmlSchemaResolveAttrUseProhibReferences()
20556 xmlSchemaPResCompAttrErr(pctxt, in xmlSchemaResolveAttrUseProhibReferences()
20576 xmlSchemaCheckSRCRedefineFirst(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckSRCRedefineFirst() argument
20579 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs; in xmlSchemaCheckSRCRedefineFirst()
20627 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckSRCRedefineFirst()
20640 err = pctxt->err; in xmlSchemaCheckSRCRedefineFirst()
20731 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckSRCRedefineFirst()
20740 err = pctxt->err; in xmlSchemaCheckSRCRedefineFirst()
20751 xmlSchemaCheckSRCRedefineSecond(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckSRCRedefineSecond() argument
20754 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs; in xmlSchemaCheckSRCRedefineSecond()
20807 err = xmlSchemaCheckDerivationOKRestriction2to4(pctxt, in xmlSchemaCheckSRCRedefineSecond()
20827 xmlSchemaAddComponents(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddComponents() argument
20907 *table = xmlHashCreateDict(10, pctxt->dict); in xmlSchemaAddComponents()
20918 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaAddComponents()
20936 if (xmlSchemaAddComponents(pctxt, rel->bucket) == -1) in xmlSchemaAddComponents()
20946 xmlSchemaFixupComponents(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupComponents() argument
20949 xmlSchemaConstructionCtxtPtr con = pctxt->constructor; in xmlSchemaFixupComponents()
20955 #define FIXHFAILURE if (pctxt->err == XML_SCHEMAP_INTERNAL) goto exit_failure; in xmlSchemaFixupComponents()
20982 xmlSchemaCheckSRCRedefineFirst(pctxt); in xmlSchemaFixupComponents()
20987 xmlSchemaAddComponents(pctxt, rootBucket); in xmlSchemaFixupComponents()
20989 pctxt->ctxtType = NULL; in xmlSchemaFixupComponents()
21023 (xmlSchemaElementPtr) item, pctxt); in xmlSchemaFixupComponents()
21029 (xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
21034 (xmlSchemaAttributePtr) item, pctxt); in xmlSchemaFixupComponents()
21039 (xmlSchemaAttributeUsePtr) item, pctxt); in xmlSchemaFixupComponents()
21047 WXS_QNAME_CAST item, pctxt); in xmlSchemaFixupComponents()
21054 xmlSchemaResolveModelGroupParticleReferences(pctxt, in xmlSchemaFixupComponents()
21062 (xmlSchemaIDCPtr) item, pctxt); in xmlSchemaFixupComponents()
21071 WXS_ATTR_PROHIB_CAST item, pctxt); in xmlSchemaFixupComponents()
21078 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21098 (xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
21100 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21105 (xmlSchemaModelGroupDefPtr) item, pctxt); in xmlSchemaFixupComponents()
21107 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21112 (xmlSchemaAttributeGroupPtr) item, pctxt); in xmlSchemaFixupComponents()
21114 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21121 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21136 xmlSchemaModelGroupToModelGroupDefFixup(pctxt, in xmlSchemaFixupComponents()
21143 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21155 xmlSchemaAttributeGroupExpandRefs(pctxt, in xmlSchemaFixupComponents()
21164 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21176 xmlSchemaFixupSimpleTypeStageOne(pctxt, in xmlSchemaFixupComponents()
21185 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21196 xmlSchemaCheckUnionTypeDefCircular(pctxt, in xmlSchemaFixupComponents()
21205 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21216 xmlSchemaFixupSimpleTypeStageTwo(pctxt, WXS_TYPE_CAST item); in xmlSchemaFixupComponents()
21224 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21236 xmlSchemaCheckAttrPropsCorrect(pctxt, WXS_ATTR_CAST item); in xmlSchemaFixupComponents()
21243 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21253 xmlSchemaCheckAttrUsePropsCorrect(pctxt, in xmlSchemaFixupComponents()
21262 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21275 xmlSchemaCheckAGPropsCorrect(pctxt, WXS_ATTR_GROUP_CAST item); in xmlSchemaFixupComponents()
21283 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21289 if (WXS_CONSTRUCTOR(pctxt)->redefs != NULL) in xmlSchemaFixupComponents()
21290 xmlSchemaCheckSRCRedefineSecond(pctxt); in xmlSchemaFixupComponents()
21291 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21302 xmlSchemaFixupComplexType(pctxt, WXS_TYPE_CAST item); in xmlSchemaFixupComponents()
21310 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21332 (xmlSchemaElementPtr) elemDecl, pctxt); in xmlSchemaFixupComponents()
21345 xmlSchemaCheckElementDeclConsistent(pctxt, in xmlSchemaFixupComponents()
21356 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21368 xmlSchemaBuildContentModel((xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
21375 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21383 ret = pctxt->err; in xmlSchemaFixupComponents()
21723 xmlSchemaParserCtxtPtr pctxt; in xmlSchemaAssembleByLocation() local
21729 if (vctxt->pctxt == NULL) { in xmlSchemaAssembleByLocation()
21734 pctxt = vctxt->pctxt; in xmlSchemaAssembleByLocation()
21735 if (pctxt->constructor == NULL) { in xmlSchemaAssembleByLocation()
21743 location = xmlSchemaBuildAbsoluteURI(pctxt->dict, in xmlSchemaAssembleByLocation()
21750 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT, in xmlSchemaAssembleByLocation()
21770 (WXS_CONSTRUCTOR(pctxt)->bucket == NULL)) in xmlSchemaAssembleByLocation()
21771 WXS_CONSTRUCTOR(pctxt)->bucket = bucket; in xmlSchemaAssembleByLocation()
21782 pctxt->nberrors = 0; in xmlSchemaAssembleByLocation()
21783 pctxt->err = 0; in xmlSchemaAssembleByLocation()
21784 pctxt->doc = bucket->doc; in xmlSchemaAssembleByLocation()
21786 ret = xmlSchemaParseNewDocWithContext(pctxt, schema, bucket); in xmlSchemaAssembleByLocation()
21788 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
21792 if ((ret == 0) && (pctxt->nberrors != 0)) in xmlSchemaAssembleByLocation()
21793 ret = pctxt->err; in xmlSchemaAssembleByLocation()
21794 if (pctxt->nberrors == 0) { in xmlSchemaAssembleByLocation()
21801 xmlSchemaFixupComponents(pctxt, bucket); in xmlSchemaAssembleByLocation()
21802 ret = pctxt->err; in xmlSchemaAssembleByLocation()
21809 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21812 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21814 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
21817 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
27904 if (ctxt->pctxt != NULL) in xmlSchemaFreeValidCtxt()
27905 xmlSchemaFreeParserCtxt(ctxt->pctxt); in xmlSchemaFreeValidCtxt()
28015 if (ctxt->pctxt != NULL) in xmlSchemaSetValidErrors()
28016 xmlSchemaSetParserErrors(ctxt->pctxt, err, warn, ctx); in xmlSchemaSetValidErrors()
28037 if (ctxt->pctxt != NULL) in xmlSchemaSetValidStructuredErrors()
28038 xmlSchemaSetParserStructuredErrors(ctxt->pctxt, serror, ctx); in xmlSchemaSetValidStructuredErrors()
28310 xmlSchemaParserCtxtPtr pctxt; in xmlSchemaPreRun() local
28319 if ((vctxt->pctxt == NULL) && in xmlSchemaPreRun()
28322 pctxt = vctxt->pctxt; in xmlSchemaPreRun()
28323 pctxt->xsiAssemble = 1; in xmlSchemaPreRun()
28327 vctxt->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaPreRun()
28333 pctxt->constructor = xmlSchemaConstructionCtxtCreate(pctxt->dict); in xmlSchemaPreRun()
28334 if (pctxt->constructor == NULL) in xmlSchemaPreRun()
28336 pctxt->constructor->mainSchema = vctxt->schema; in xmlSchemaPreRun()
28340 pctxt->ownsConstructor = 1; in xmlSchemaPreRun()
29055 xmlParserCtxtPtr pctxt = NULL; in xmlSchemaValidateStream() local
29065 pctxt = xmlNewParserCtxt(); in xmlSchemaValidateStream()
29066 if (pctxt == NULL) in xmlSchemaValidateStream()
29068 old_sax = pctxt->sax; in xmlSchemaValidateStream()
29069 pctxt->sax = sax; in xmlSchemaValidateStream()
29070 pctxt->userData = user_data; in xmlSchemaValidateStream()
29073 xmlCtxtUseOptions(pctxt, options); in xmlSchemaValidateStream()
29075 pctxt->linenumbers = 1; in xmlSchemaValidateStream()
29076 xmlSchemaValidateSetLocator(ctxt, xmlSchemaValidateStreamLocator, pctxt); in xmlSchemaValidateStream()
29078 inputStream = xmlNewIOInputStream(pctxt, input, enc);; in xmlSchemaValidateStream()
29083 inputPush(pctxt, inputStream); in xmlSchemaValidateStream()
29084 ctxt->parserCtxt = pctxt; in xmlSchemaValidateStream()
29090 plug = xmlSchemaSAXPlug(ctxt, &(pctxt->sax), &(pctxt->userData)); in xmlSchemaValidateStream()
29097 ctxt->sax = pctxt->sax; in xmlSchemaValidateStream()
29115 if (pctxt != NULL) { in xmlSchemaValidateStream()
29116 pctxt->sax = old_sax; in xmlSchemaValidateStream()
29117 xmlFreeParserCtxt(pctxt); in xmlSchemaValidateStream()