• Home
  • Raw
  • Download

Lines Matching refs:pctxt

992     xmlSchemaParserCtxtPtr pctxt;  member
1095 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt,
2088 xmlSchemaParserCtxtPtr pctxt = (xmlSchemaParserCtxtPtr) ctxt; in xmlSchemaErr4Line() local
2090 pctxt->nberrors++; in xmlSchemaErr4Line()
2091 pctxt->err = error; in xmlSchemaErr4Line()
2092 channel = pctxt->error; in xmlSchemaErr4Line()
2094 channel = pctxt->warning; in xmlSchemaErr4Line()
2096 schannel = pctxt->serror; in xmlSchemaErr4Line()
2097 data = pctxt->errCtxt; in xmlSchemaErr4Line()
2282 xmlSchemaPInternalErr(xmlSchemaParserCtxtPtr pctxt,
2288 xmlSchemaInternalErr2(ACTXT_CAST pctxt, funcName, message,
2735 #define PERROR_INT(func, msg) xmlSchemaInternalErr(ACTXT_CAST pctxt, func, msg);
3526 xmlSchemaBucketCreate(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBucketCreate() argument
3533 if (WXS_CONSTRUCTOR(pctxt)->mainSchema == NULL) { in xmlSchemaBucketCreate()
3538 mainSchema = WXS_CONSTRUCTOR(pctxt)->mainSchema; in xmlSchemaBucketCreate()
3569 if (! WXS_HAS_BUCKETS(pctxt)) { in xmlSchemaBucketCreate()
3579 WXS_CONSTRUCTOR(pctxt)->mainBucket = ret; in xmlSchemaBucketCreate()
3596 WXS_IMPBUCKET(ret)->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaBucketCreate()
3613 WXS_CONSTRUCTOR(pctxt)->dict); in xmlSchemaBucketCreate()
3633 if (WXS_IS_BUCKET_IMPMAIN(WXS_CONSTRUCTOR(pctxt)->bucket->type)) in xmlSchemaBucketCreate()
3635 WXS_IMPBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket); in xmlSchemaBucketCreate()
3638 WXS_INCBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket)->ownerImport; in xmlSchemaBucketCreate()
3654 if (xmlSchemaItemListAdd(WXS_CONSTRUCTOR(pctxt)->buckets, ret) == -1) in xmlSchemaBucketCreate()
5184 xmlSchemaAddAttributeUse(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddAttributeUse() argument
5189 if (pctxt == NULL) in xmlSchemaAddAttributeUse()
5194 xmlSchemaPErrMemory(pctxt, "allocating attribute", NULL); in xmlSchemaAddAttributeUse()
5201 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaAddAttributeUse()
5212 xmlSchemaAddRedef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddRedef() argument
5223 xmlSchemaPErrMemory(pctxt, in xmlSchemaAddRedef()
5232 if (WXS_CONSTRUCTOR(pctxt)->redefs == NULL) in xmlSchemaAddRedef()
5233 WXS_CONSTRUCTOR(pctxt)->redefs = ret; in xmlSchemaAddRedef()
5235 WXS_CONSTRUCTOR(pctxt)->lastRedef->next = ret; in xmlSchemaAddRedef()
5236 WXS_CONSTRUCTOR(pctxt)->lastRedef = ret; in xmlSchemaAddRedef()
5254 xmlSchemaAddAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddAttributeGroupDefinition() argument
5262 if ((pctxt == NULL) || (name == NULL)) in xmlSchemaAddAttributeGroupDefinition()
5268 xmlSchemaPErrMemory(pctxt, "allocating attribute group", NULL); in xmlSchemaAddAttributeGroupDefinition()
5279 if (pctxt->isRedefine) { in xmlSchemaAddAttributeGroupDefinition()
5280 pctxt->redef = xmlSchemaAddRedef(pctxt, pctxt->redefined, in xmlSchemaAddAttributeGroupDefinition()
5282 if (pctxt->redef == NULL) { in xmlSchemaAddAttributeGroupDefinition()
5286 pctxt->redefCounter = 0; in xmlSchemaAddAttributeGroupDefinition()
5288 WXS_ADD_GLOBAL(pctxt, ret); in xmlSchemaAddAttributeGroupDefinition()
5289 WXS_ADD_PENDING(pctxt, ret); in xmlSchemaAddAttributeGroupDefinition()
5385 xmlSchemaNewQNameRef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaNewQNameRef() argument
5395 xmlSchemaPErrMemory(pctxt, in xmlSchemaNewQNameRef()
5408 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaNewQNameRef()
5413 xmlSchemaAddAttributeUseProhib(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaAddAttributeUseProhib() argument
5420 xmlSchemaPErrMemory(pctxt, in xmlSchemaAddAttributeUseProhib()
5426 WXS_ADD_LOCAL(pctxt, ret); in xmlSchemaAddAttributeUseProhib()
5667 xmlSchemaSubstGroupAdd(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaSubstGroupAdd() argument
5673 if (WXS_SUBST_GROUPS(pctxt) == NULL) { in xmlSchemaSubstGroupAdd()
5674 WXS_SUBST_GROUPS(pctxt) = xmlHashCreateDict(10, pctxt->dict); in xmlSchemaSubstGroupAdd()
5675 if (WXS_SUBST_GROUPS(pctxt) == NULL) in xmlSchemaSubstGroupAdd()
5694 if (xmlHashAddEntry2(WXS_SUBST_GROUPS(pctxt), in xmlSchemaSubstGroupAdd()
5705 xmlSchemaSubstGroupGet(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaSubstGroupGet() argument
5708 if (WXS_SUBST_GROUPS(pctxt) == NULL) in xmlSchemaSubstGroupGet()
5710 return(xmlHashLookup2(WXS_SUBST_GROUPS(pctxt), in xmlSchemaSubstGroupGet()
5726 xmlSchemaAddElementSubstitutionMember(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddElementSubstitutionMember() argument
5732 if ((pctxt == NULL) || (head == NULL) || (member == NULL)) in xmlSchemaAddElementSubstitutionMember()
5735 substGroup = xmlSchemaSubstGroupGet(pctxt, head); in xmlSchemaAddElementSubstitutionMember()
5737 substGroup = xmlSchemaSubstGroupAdd(pctxt, head); in xmlSchemaAddElementSubstitutionMember()
6213 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt,
6243 xmlSchemaPValAttrNodeValue(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaPValAttrNodeValue() argument
6256 if ((pctxt == NULL) || (type == NULL) || (attr == NULL)) in xmlSchemaPValAttrNodeValue()
6291 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaPValAttrNodeValue()
6390 xmlSchemaCheckReference(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckReference() argument
6397 if (xmlStrEqual(pctxt->targetNamespace, namespaceName)) in xmlSchemaCheckReference()
6404 if (WXS_BUCKET(pctxt)->relations != NULL) { in xmlSchemaCheckReference()
6407 rel = WXS_BUCKET(pctxt)->relations; in xmlSchemaCheckReference()
6422 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckReference()
6428 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckReference()
7081 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseLocalAttribute() argument
7102 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseLocalAttribute()
7106 if (xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseLocalAttribute()
7110 if (xmlSchemaCheckReference(pctxt, schema, node, attr, tmpNs) != 0) in xmlSchemaParseLocalAttribute()
7114 nberrors = pctxt->nberrors; in xmlSchemaParseLocalAttribute()
7123 xmlSchemaPValAttrNodeID(pctxt, attr); in xmlSchemaParseLocalAttribute()
7132 xmlSchemaPValAttrNodeID(pctxt, attr); in xmlSchemaParseLocalAttribute()
7135 xmlSchemaPValAttrNodeQName(pctxt, schema, NULL, in xmlSchemaParseLocalAttribute()
7143 attrValue = xmlSchemaGetNodeContent(pctxt, in xmlSchemaParseLocalAttribute()
7146 ns = pctxt->targetNamespace; in xmlSchemaParseLocalAttribute()
7149 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7160 attrValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7169 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7182 xmlSchemaPMutualExclAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7186 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7196 xmlSchemaPMutualExclAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7200 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseLocalAttribute()
7208 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseLocalAttribute()
7221 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7232 if (nberrors != pctxt->nberrors) in xmlSchemaParseLocalAttribute()
7239 ns = pctxt->targetNamespace; in xmlSchemaParseLocalAttribute()
7245 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7253 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING, in xmlSchemaParseLocalAttribute()
7257 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseLocalAttribute()
7266 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseLocalAttribute()
7279 use = xmlSchemaAddAttributeUse(pctxt, node); in xmlSchemaParseLocalAttribute()
7286 attrDecl = xmlSchemaAddAttribute(pctxt, schema, name, ns, node, 0); in xmlSchemaParseLocalAttribute()
7308 use = xmlSchemaAddAttributeUse(pctxt, node); in xmlSchemaParseLocalAttribute()
7314 WXS_ADD_PENDING(pctxt, use); in xmlSchemaParseLocalAttribute()
7319 ref = xmlSchemaNewQNameRef(pctxt, XML_SCHEMA_TYPE_ATTRIBUTE, in xmlSchemaParseLocalAttribute()
7346 xmlSchemaParseAnnotation(pctxt, child, 0); in xmlSchemaParseLocalAttribute()
7350 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7359 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7367 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7393 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseLocalAttribute()
7407 prohib = xmlSchemaAddAttributeUseProhib(pctxt); in xmlSchemaParseLocalAttribute()
7417 WXS_ADD_PENDING(pctxt, prohib); in xmlSchemaParseLocalAttribute()
7425 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseLocalAttribute()
7436 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7441 xmlSchemaPContentErr(pctxt, in xmlSchemaParseLocalAttribute()
7453 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4, in xmlSchemaParseLocalAttribute()
7459 xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseLocalAttribute()
7463 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, in xmlSchemaParseLocalAttribute()
7473 xmlSchemaParseGlobalAttribute(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseGlobalAttribute() argument
7488 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseGlobalAttribute()
7496 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING, in xmlSchemaParseGlobalAttribute()
7500 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseGlobalAttribute()
7509 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseGlobalAttribute()
7523 if (xmlStrEqual(pctxt->targetNamespace, xmlSchemaInstanceNs)) { in xmlSchemaParseGlobalAttribute()
7524 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseGlobalAttribute()
7530 ret = xmlSchemaAddAttribute(pctxt, schema, attrValue, in xmlSchemaParseGlobalAttribute()
7531 pctxt->targetNamespace, node, 1); in xmlSchemaParseGlobalAttribute()
7548 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseGlobalAttribute()
7552 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseGlobalAttribute()
7557 xmlSchemaPValAttrQName(pctxt, schema, NULL, in xmlSchemaParseGlobalAttribute()
7560 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseGlobalAttribute()
7564 ret->defValue = xmlSchemaGetProp(pctxt, node, "fixed"); in xmlSchemaParseGlobalAttribute()
7577 xmlSchemaPMutualExclAttrErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_1, in xmlSchemaParseGlobalAttribute()
7580 ret->defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr); in xmlSchemaParseGlobalAttribute()
7587 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseGlobalAttribute()
7596 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4, in xmlSchemaParseGlobalAttribute()
7601 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0); in xmlSchemaParseGlobalAttribute()
7605 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, in xmlSchemaParseGlobalAttribute()
7626 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseAttributeGroupRef() argument
7635 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupRef()
7640 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7645 xmlSchemaPValAttrNodeQName(pctxt, schema, in xmlSchemaParseAttributeGroupRef()
7647 if (xmlSchemaCheckReference(pctxt, schema, node, attr, refNs) != 0) in xmlSchemaParseAttributeGroupRef()
7659 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7663 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7669 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseAttributeGroupRef()
7679 xmlSchemaParseAnnotation(pctxt, child, 0); in xmlSchemaParseAttributeGroupRef()
7683 xmlSchemaPContentErr(pctxt, in xmlSchemaParseAttributeGroupRef()
7692 if (pctxt->isRedefine && pctxt->redef && in xmlSchemaParseAttributeGroupRef()
7693 (pctxt->redef->item->type == in xmlSchemaParseAttributeGroupRef()
7695 (ref == pctxt->redef->refName) && in xmlSchemaParseAttributeGroupRef()
7696 (refNs == pctxt->redef->refTargetNs)) in xmlSchemaParseAttributeGroupRef()
7705 if (pctxt->redefCounter != 0) { in xmlSchemaParseAttributeGroupRef()
7708 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseAttributeGroupRef()
7717 pctxt->redefCounter++; in xmlSchemaParseAttributeGroupRef()
7722 ret = xmlSchemaNewQNameRef(pctxt, in xmlSchemaParseAttributeGroupRef()
7727 pctxt->redef->reference = WXS_BASIC_CAST ret; in xmlSchemaParseAttributeGroupRef()
7734 ret = xmlSchemaNewQNameRef(pctxt, in xmlSchemaParseAttributeGroupRef()
7740 WXS_ADD_PENDING(pctxt, ret); in xmlSchemaParseAttributeGroupRef()
7757 xmlSchemaParseAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseAttributeGroupDefinition() argument
7767 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseAttributeGroupDefinition()
7772 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7780 if (xmlSchemaPValAttrNode(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7785 ret = xmlSchemaAddAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseAttributeGroupDefinition()
7786 name, pctxt->targetNamespace, node); in xmlSchemaParseAttributeGroupDefinition()
7798 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7802 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7808 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseAttributeGroupDefinition()
7814 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1); in xmlSchemaParseAttributeGroupDefinition()
7820 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child, in xmlSchemaParseAttributeGroupDefinition()
7830 ret->attributeWildcard = xmlSchemaParseAnyAttribute(pctxt, in xmlSchemaParseAttributeGroupDefinition()
7835 xmlSchemaPContentErr(pctxt, in xmlSchemaParseAttributeGroupDefinition()
9969 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
9971 vctxt->pctxt = in xmlSchemaCreatePCtxtOnVCtxt()
9974 vctxt->pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCreatePCtxtOnVCtxt()
9975 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
9981 xmlSchemaSetParserErrors(vctxt->pctxt, vctxt->error, in xmlSchemaCreatePCtxtOnVCtxt()
9983 xmlSchemaSetParserStructuredErrors(vctxt->pctxt, vctxt->serror, in xmlSchemaCreatePCtxtOnVCtxt()
10000 xmlSchemaGetSchemaBucket(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetSchemaBucket() argument
10006 list = pctxt->constructor->buckets; in xmlSchemaGetSchemaBucket()
10022 xmlSchemaGetChameleonSchemaBucket(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetChameleonSchemaBucket() argument
10029 list = pctxt->constructor->buckets; in xmlSchemaGetChameleonSchemaBucket()
10051 xmlSchemaGetSchemaBucketByTNS(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaGetSchemaBucketByTNS() argument
10058 list = pctxt->constructor->buckets; in xmlSchemaGetSchemaBucketByTNS()
10076 xmlSchemaParseNewDocWithContext(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseNewDocWithContext() argument
10084 xmlSchemaBucketPtr oldbucket = pctxt->constructor->bucket; in xmlSchemaParseNewDocWithContext()
10097 pctxt->schema = schema; in xmlSchemaParseNewDocWithContext()
10102 pctxt->targetNamespace = bucket->targetNamespace; in xmlSchemaParseNewDocWithContext()
10103 WXS_CONSTRUCTOR(pctxt)->bucket = bucket; in xmlSchemaParseNewDocWithContext()
10110 pctxt->isS4S = 1; in xmlSchemaParseNewDocWithContext()
10116 ret = xmlSchemaParseSchemaElement(pctxt, schema, node); in xmlSchemaParseNewDocWithContext()
10122 oldErrs = pctxt->nberrors; in xmlSchemaParseNewDocWithContext()
10123 ret = xmlSchemaParseSchemaTopLevel(pctxt, schema, node->children); in xmlSchemaParseNewDocWithContext()
10131 if ((ret == 0) && (oldErrs != pctxt->nberrors)) { in xmlSchemaParseNewDocWithContext()
10132 ret = pctxt->err; in xmlSchemaParseNewDocWithContext()
10137 WXS_CONSTRUCTOR(pctxt)->bucket = oldbucket; in xmlSchemaParseNewDocWithContext()
10145 xmlSchemaParseNewDoc(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseNewDoc() argument
10164 if (pctxt->constructor == NULL) { in xmlSchemaParseNewDoc()
10171 (const char *) bucket->schemaLocation, pctxt->dict); in xmlSchemaParseNewDoc()
10174 newpctxt->constructor = pctxt->constructor; in xmlSchemaParseNewDoc()
10181 xmlSchemaSetParserErrors(newpctxt, pctxt->error, pctxt->warning, in xmlSchemaParseNewDoc()
10182 pctxt->errCtxt); in xmlSchemaParseNewDoc()
10183 xmlSchemaSetParserStructuredErrors(newpctxt, pctxt->serror, in xmlSchemaParseNewDoc()
10184 pctxt->errCtxt); in xmlSchemaParseNewDoc()
10185 newpctxt->counter = pctxt->counter; in xmlSchemaParseNewDoc()
10192 pctxt->err = res; in xmlSchemaParseNewDoc()
10193 pctxt->nberrors += newpctxt->nberrors; in xmlSchemaParseNewDoc()
10194 pctxt->counter = newpctxt->counter; in xmlSchemaParseNewDoc()
10263 xmlSchemaAddSchemaDoc(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddSchemaDoc() argument
10301 if ((type == XML_SCHEMA_SCHEMA_MAIN) || (! WXS_HAS_BUCKETS(pctxt))) in xmlSchemaAddSchemaDoc()
10306 bkt = xmlSchemaGetSchemaBucket(pctxt, schemaLocation); in xmlSchemaAddSchemaDoc()
10308 (pctxt->constructor->bucket == bkt)) { in xmlSchemaAddSchemaDoc()
10311 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10324 xmlSchemaSchemaRelationAddChild(pctxt->constructor->bucket, in xmlSchemaAddSchemaDoc()
10355 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10372 xmlSchemaCustomErr(ACTXT_CAST pctxt, err, in xmlSchemaAddSchemaDoc()
10407 bkt = xmlSchemaGetSchemaBucketByTNS(pctxt, in xmlSchemaAddSchemaDoc()
10426 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaAddSchemaDoc()
10466 chamel = xmlSchemaGetChameleonSchemaBucket(pctxt, in xmlSchemaAddSchemaDoc()
10504 schemaLocation = xmlDictLookup(pctxt->dict, in xmlSchemaAddSchemaDoc()
10517 if ((pctxt->dict != NULL) && (parserCtxt->dict != NULL)) { in xmlSchemaAddSchemaDoc()
10523 parserCtxt->dict = pctxt->dict; in xmlSchemaAddSchemaDoc()
10567 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaAddSchemaDoc()
10577 xmlSchemaPErr(pctxt, NULL, in xmlSchemaAddSchemaDoc()
10593 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOROOT, in xmlSchemaAddSchemaDoc()
10602 xmlSchemaCleanupDoc(pctxt, docElem); in xmlSchemaAddSchemaDoc()
10607 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOT_SCHEMA, in xmlSchemaAddSchemaDoc()
10617 targetNamespace = xmlSchemaGetProp(pctxt, docElem, in xmlSchemaAddSchemaDoc()
10624 bkt = xmlSchemaBucketCreate(pctxt, type, in xmlSchemaAddSchemaDoc()
10663 return(pctxt->err); in xmlSchemaAddSchemaDoc()
10687 xmlSchemaParseImport(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseImport() argument
10697 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseImport()
10709 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseImport()
10713 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseImport()
10721 if (xmlSchemaPValAttr(pctxt, NULL, node, in xmlSchemaParseImport()
10724 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseImport()
10729 return (pctxt->err); in xmlSchemaParseImport()
10732 if (xmlSchemaPValAttr(pctxt, NULL, node, in xmlSchemaParseImport()
10735 xmlSchemaPSimpleTypeErr(pctxt, in xmlSchemaParseImport()
10740 return (pctxt->err); in xmlSchemaParseImport()
10754 xmlSchemaPContentErr(pctxt, in xmlSchemaParseImport()
10767 thisTargetNamespace = WXS_BUCKET(pctxt)->origTargetNamespace; in xmlSchemaParseImport()
10775 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseImport()
10781 return (pctxt->err); in xmlSchemaParseImport()
10789 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseImport()
10795 return (pctxt->err); in xmlSchemaParseImport()
10802 schemaLocation = xmlSchemaBuildAbsoluteURI(pctxt->dict, in xmlSchemaParseImport()
10804 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT, in xmlSchemaParseImport()
10819 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaParseImport()
10827 ret = xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseImport()
10834 xmlSchemaParseIncludeOrRedefineAttrs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseIncludeOrRedefineAttrs() argument
10842 if ((pctxt == NULL) || (schema == NULL) || (node == NULL) || in xmlSchemaParseIncludeOrRedefineAttrs()
10856 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10860 xmlSchemaPIllegalAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10865 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id"); in xmlSchemaParseIncludeOrRedefineAttrs()
10878 if (xmlSchemaPValAttrNode(pctxt, NULL, attr, in xmlSchemaParseIncludeOrRedefineAttrs()
10894 (*schemaLocation) = (xmlChar *) xmlDictLookup(pctxt->dict, uri, -1); in xmlSchemaParseIncludeOrRedefineAttrs()
10897 xmlSchemaPMissingAttrErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10905 if (xmlStrEqual(*schemaLocation, pctxt->URL)) { in xmlSchemaParseIncludeOrRedefineAttrs()
10907 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10913 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseIncludeOrRedefineAttrs()
10924 return(pctxt->err); in xmlSchemaParseIncludeOrRedefineAttrs()
10930 xmlSchemaParseIncludeOrRedefine(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseIncludeOrRedefine() argument
10941 if ((pctxt == NULL) || (schema == NULL) || (node == NULL)) in xmlSchemaParseIncludeOrRedefine()
10948 res = xmlSchemaParseIncludeOrRedefineAttrs(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
10955 res = xmlSchemaAddSchemaDoc(pctxt, type, schemaLocation, NULL, in xmlSchemaParseIncludeOrRedefine()
10956 NULL, 0, node, pctxt->targetNamespace, NULL, &bucket); in xmlSchemaParseIncludeOrRedefine()
10978 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaParseIncludeOrRedefine()
10995 xmlSchemaCustomErr(ACTXT_CAST pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11013 if (pctxt->targetNamespace == NULL) { in xmlSchemaParseIncludeOrRedefine()
11014 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseIncludeOrRedefine()
11023 pctxt->targetNamespace)) { in xmlSchemaParseIncludeOrRedefine()
11025 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaParseIncludeOrRedefine()
11032 pctxt->targetNamespace); in xmlSchemaParseIncludeOrRedefine()
11035 } else if (pctxt->targetNamespace != NULL) { in xmlSchemaParseIncludeOrRedefine()
11043 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaParseIncludeOrRedefine()
11052 bucket->targetNamespace = pctxt->targetNamespace; in xmlSchemaParseIncludeOrRedefine()
11066 xmlSchemaParseNewDoc(pctxt, schema, bucket); in xmlSchemaParseIncludeOrRedefine()
11079 pctxt->redefined = bucket; in xmlSchemaParseIncludeOrRedefine()
11083 pctxt->isRedefine = 1; in xmlSchemaParseIncludeOrRedefine()
11094 xmlSchemaParseSimpleType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11096 xmlSchemaParseComplexType(pctxt, schema, child, 1); in xmlSchemaParseIncludeOrRedefine()
11100 xmlSchemaParseModelGroupDefinition(pctxt, in xmlSchemaParseIncludeOrRedefine()
11104 xmlSchemaParseAttributeGroupDefinition(pctxt, schema, in xmlSchemaParseIncludeOrRedefine()
11109 pctxt->redefined = NULL; in xmlSchemaParseIncludeOrRedefine()
11110 pctxt->isRedefine = 0; in xmlSchemaParseIncludeOrRedefine()
11122 xmlSchemaPContentErr(pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11126 xmlSchemaPContentErr(pctxt, res, in xmlSchemaParseIncludeOrRedefine()
11134 return(pctxt->err); in xmlSchemaParseIncludeOrRedefine()
11138 xmlSchemaParseRedefine(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseRedefine() argument
11146 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseRedefine()
11154 xmlSchemaParseInclude(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, in xmlSchemaParseInclude() argument
11159 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node, in xmlSchemaParseInclude()
12534 xmlSchemaBuildContentModelForSubstGroup(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBuildContentModelForSubstGroup() argument
12547 start = pctxt->state; in xmlSchemaBuildContentModelForSubstGroup()
12549 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildContentModelForSubstGroup()
12550 substGroup = xmlSchemaSubstGroupGet(pctxt, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12552 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle), in xmlSchemaBuildContentModelForSubstGroup()
12566 tmp = xmlAutomataNewCountedTrans(pctxt->am, start, NULL, counter); in xmlSchemaBuildContentModelForSubstGroup()
12567 xmlAutomataNewTransition2(pctxt->am, tmp, end, in xmlSchemaBuildContentModelForSubstGroup()
12574 xmlAutomataNewTransition2(pctxt->am, tmp, end, in xmlSchemaBuildContentModelForSubstGroup()
12581 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12582 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12603 tmp = xmlAutomataNewTransition2(pctxt->am, start, NULL, in xmlSchemaBuildContentModelForSubstGroup()
12605 xmlAutomataNewEpsilon(pctxt->am, tmp, end); in xmlSchemaBuildContentModelForSubstGroup()
12614 xmlAutomataNewCounter(pctxt->am, minOccurs, in xmlSchemaBuildContentModelForSubstGroup()
12616 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildContentModelForSubstGroup()
12618 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12619 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12628 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12629 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildContentModelForSubstGroup()
12634 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter); in xmlSchemaBuildContentModelForSubstGroup()
12635 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildContentModelForSubstGroup()
12638 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildContentModelForSubstGroup()
12641 pctxt->state = end; in xmlSchemaBuildContentModelForSubstGroup()
12716 xmlSchemaBuildAContentModel(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaBuildAContentModel() argument
12741 start = pctxt->state; in xmlSchemaBuildAContentModel()
12742 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12751 pctxt->state = in xmlSchemaBuildAContentModel()
12752 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12754 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12758 pctxt->state = in xmlSchemaBuildAContentModel()
12759 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12761 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12766 pctxt->state = start; in xmlSchemaBuildAContentModel()
12767 pctxt->state = xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12768 pctxt->state, NULL, BAD_CAST "*", ns->value, wild); in xmlSchemaBuildAContentModel()
12769 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12774 pctxt->state = xmlAutomataNewNegTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12787 counter = xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs); in xmlSchemaBuildAContentModel()
12788 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12790 pctxt->state = in xmlSchemaBuildAContentModel()
12791 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12793 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12794 pctxt->state = in xmlSchemaBuildAContentModel()
12795 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12797 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12801 pctxt->state = in xmlSchemaBuildAContentModel()
12802 xmlAutomataNewTransition2(pctxt->am, in xmlSchemaBuildAContentModel()
12804 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12809 pctxt->state = xmlAutomataNewNegTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12813 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter); in xmlSchemaBuildAContentModel()
12814 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildAContentModel()
12817 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildAContentModel()
12820 pctxt->state = end; in xmlSchemaBuildAContentModel()
12824 ret = xmlSchemaBuildContentModelForElement(pctxt, particle); in xmlSchemaBuildAContentModel()
12838 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12844 xmlAutomataStatePtr oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12851 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12853 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12855 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
12860 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12865 tmp = pctxt->state; in xmlSchemaBuildAContentModel()
12866 xmlAutomataNewCountedTrans(pctxt->am, tmp, in xmlSchemaBuildAContentModel()
12868 pctxt->state = in xmlSchemaBuildAContentModel()
12869 xmlAutomataNewCounterTrans(pctxt->am, tmp, in xmlSchemaBuildAContentModel()
12872 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12873 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12876 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12878 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12882 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12887 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
12894 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12895 pctxt->state, NULL); in xmlSchemaBuildAContentModel()
12897 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12898 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12907 pctxt->state = xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12909 oldstate = pctxt->state; in xmlSchemaBuildAContentModel()
12911 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
12917 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12922 tmp = pctxt->state; in xmlSchemaBuildAContentModel()
12923 xmlAutomataNewCountedTrans(pctxt->am, in xmlSchemaBuildAContentModel()
12925 pctxt->state = in xmlSchemaBuildAContentModel()
12926 xmlAutomataNewCounterTrans(pctxt->am, tmp, NULL, in xmlSchemaBuildAContentModel()
12929 xmlAutomataNewEpsilon(pctxt->am, in xmlSchemaBuildAContentModel()
12930 oldstate, pctxt->state); in xmlSchemaBuildAContentModel()
12936 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12942 xmlAutomataNewEpsilon(pctxt->am, oldstate, in xmlSchemaBuildAContentModel()
12943 pctxt->state); in xmlSchemaBuildAContentModel()
12955 start = pctxt->state; in xmlSchemaBuildAContentModel()
12956 end = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12965 pctxt->state = start; in xmlSchemaBuildAContentModel()
12966 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12969 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end); in xmlSchemaBuildAContentModel()
12985 xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs); in xmlSchemaBuildAContentModel()
12986 hop = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12987 base = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
12991 pctxt->state = base; in xmlSchemaBuildAContentModel()
12992 tmp2 = xmlSchemaBuildAContentModel(pctxt, in xmlSchemaBuildAContentModel()
12995 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop); in xmlSchemaBuildAContentModel()
12998 xmlAutomataNewEpsilon(pctxt->am, start, base); in xmlSchemaBuildAContentModel()
12999 xmlAutomataNewCountedTrans(pctxt->am, hop, base, counter); in xmlSchemaBuildAContentModel()
13000 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter); in xmlSchemaBuildAContentModel()
13002 xmlAutomataNewEpsilon(pctxt->am, base, end); in xmlSchemaBuildAContentModel()
13005 xmlAutomataNewEpsilon(pctxt->am, start, end); in xmlSchemaBuildAContentModel()
13008 pctxt->state = end; in xmlSchemaBuildAContentModel()
13024 start = pctxt->state; in xmlSchemaBuildAContentModel()
13025 tmp = xmlAutomataNewState(pctxt->am); in xmlSchemaBuildAContentModel()
13026 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, tmp); in xmlSchemaBuildAContentModel()
13027 pctxt->state = tmp; in xmlSchemaBuildAContentModel()
13029 pctxt->state = tmp; in xmlSchemaBuildAContentModel()
13051 counter = xmlAutomataNewCounter(pctxt->am, in xmlSchemaBuildAContentModel()
13053 xmlSchemaBuildContentModelForSubstGroup(pctxt, in xmlSchemaBuildAContentModel()
13054 sub, counter, pctxt->state); in xmlSchemaBuildAContentModel()
13058 xmlAutomataNewOnceTrans2(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
13059 pctxt->state, in xmlSchemaBuildAContentModel()
13066 xmlAutomataNewCountTrans2(pctxt->am, pctxt->state, in xmlSchemaBuildAContentModel()
13067 pctxt->state, in xmlSchemaBuildAContentModel()
13077 pctxt->state = in xmlSchemaBuildAContentModel()
13078 xmlAutomataNewAllTrans(pctxt->am, pctxt->state, NULL, 0); in xmlSchemaBuildAContentModel()
13080 xmlAutomataNewEpsilon(pctxt->am, start, pctxt->state); in xmlSchemaBuildAContentModel()
13096 xmlSchemaInternalErr2(ACTXT_CAST pctxt, in xmlSchemaBuildAContentModel()
14080 xmlSchemaCheckDerivationOKRestriction2to4(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckDerivationOKRestriction2to4() argument
14124 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14135 } else if (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14147 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14198 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14231 xmlSchemaPAttrUseErr4(pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14274 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14302 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14312 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14323 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14333 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14345 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckDerivationOKRestriction2to4()
14355 return(pctxt->err); in xmlSchemaCheckDerivationOKRestriction2to4()
14363 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt,
14383 xmlSchemaFixupTypeAttributeUses(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupTypeAttributeUses() argument
14397 if (xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt) == -1) in xmlSchemaFixupTypeAttributeUses()
14413 if (xmlSchemaExpandAttributeGroupRefs(pctxt, in xmlSchemaFixupTypeAttributeUses()
14415 pctxt->attrProhibs) == -1) in xmlSchemaFixupTypeAttributeUses()
14420 if (pctxt->attrProhibs->nbItems != 0) in xmlSchemaFixupTypeAttributeUses()
14421 prohibs = pctxt->attrProhibs; in xmlSchemaFixupTypeAttributeUses()
14423 if (xmlSchemaExpandAttributeGroupRefs(pctxt, in xmlSchemaFixupTypeAttributeUses()
14536 if (xmlSchemaUnionWildcards(pctxt, type->attributeWildcard, in xmlSchemaFixupTypeAttributeUses()
14872 xmlSchemaCheckTypeDefCircularInternal(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckTypeDefCircularInternal() argument
14882 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckTypeDefCircularInternal()
14895 ret = xmlSchemaCheckTypeDefCircularInternal(pctxt, ctxtType, in xmlSchemaCheckTypeDefCircularInternal()
14935 xmlSchemaCheckUnionTypeDefCircularRecur(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur() argument
14948 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur()
14959 res = xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, in xmlSchemaCheckUnionTypeDefCircularRecur()
14974 xmlSchemaCheckUnionTypeDefCircular(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckUnionTypeDefCircular() argument
14979 return(xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, type, in xmlSchemaCheckUnionTypeDefCircular()
15226 xmlSchemaCheckCOSSTRestricts(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckCOSSTRestricts() argument
15244 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15258 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15286 xmlSchemaPIllegalFacetAtomicErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15314 xmlSchemaTypeFixup(itemType, ACTXT_CAST pctxt); in xmlSchemaCheckCOSSTRestricts()
15322 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15335 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15360 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15378 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15403 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15417 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15440 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, itemType, in xmlSchemaCheckCOSSTRestricts()
15443 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckCOSSTRestricts()
15481 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15513 xmlSchemaTypeFixup(member->type, ACTXT_CAST pctxt); in xmlSchemaCheckCOSSTRestricts()
15517 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15540 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15554 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15566 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15579 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15620 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, in xmlSchemaCheckCOSSTRestricts()
15624 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckCOSSTRestricts()
15656 xmlSchemaPIllegalFacetListUnionErr(pctxt, in xmlSchemaCheckCOSSTRestricts()
15775 xmlSchemaParseCheckCOSValidDefault(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaParseCheckCOSValidDefault() argument
15802 xmlSchemaPCustomErr(pctxt, in xmlSchemaParseCheckCOSValidDefault()
15823 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node, in xmlSchemaParseCheckCOSValidDefault()
15826 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node, in xmlSchemaParseCheckCOSValidDefault()
15853 xmlSchemaCheckCTPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckCTPropsCorrect() argument
15871 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
15917 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
15946 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCTPropsCorrect()
16202 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCOSCTExtends()
16215 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckCOSCTExtends()
17124 xmlSchemaPCustomErrExt(pctxt, \
17133 xmlSchemaPCustomErr(pctxt, \
17139 xmlSchemaPCustomErr(pctxt, \
17146 xmlSchemaDeriveFacetErr(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDeriveFacetErr() argument
17174 xmlSchemaPCustomErr(pctxt, in xmlSchemaDeriveFacetErr()
17190 xmlSchemaDeriveAndValidateFacets(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDeriveAndValidateFacets() argument
17321 xmlSchemaDeriveFacetErr(pctxt, flength, bflength, 0, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17336 xmlSchemaDeriveFacetErr(pctxt, fminlen, bfminlen, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17350 xmlSchemaDeriveFacetErr(pctxt, fmaxlen, bfmaxlen, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17369 xmlSchemaDeriveFacetErr(pctxt, flength, fminlen, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17379 xmlSchemaDeriveFacetErr(pctxt, flength, fmaxlen, -1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17392 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, fmininc, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17404 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17415 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17424 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17433 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17446 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, fminexc, 1, 1, 0); in xmlSchemaDeriveAndValidateFacets()
17458 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxexc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17470 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17479 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmininc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17488 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17501 xmlSchemaDeriveFacetErr(pctxt, fminexc, fmaxinc, -1, 0, 0); in xmlSchemaDeriveAndValidateFacets()
17513 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfminexc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17525 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17534 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17543 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17556 xmlSchemaDeriveFacetErr(pctxt, fmininc, fmaxexc, -1, 0, 0); in xmlSchemaDeriveAndValidateFacets()
17568 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmininc, 1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17580 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxinc, -1, 1, 1); in xmlSchemaDeriveAndValidateFacets()
17589 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfminexc, 1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17597 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxexc, -1, 0, 1); in xmlSchemaDeriveAndValidateFacets()
17609 xmlSchemaDeriveFacetErr(pctxt, ftotdig, bftotdig, in xmlSchemaDeriveAndValidateFacets()
17624 xmlSchemaDeriveFacetErr(pctxt, ffracdig, bffracdig, in xmlSchemaDeriveAndValidateFacets()
17642 xmlSchemaDeriveFacetErr(pctxt, ffracdig, ftotdig, in xmlSchemaDeriveAndValidateFacets()
17706 xmlSchemaPErrMemory(pctxt, in xmlSchemaDeriveAndValidateFacets()
17729 xmlSchemaFinishMemberTypeDefinitionsProperty(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFinishMemberTypeDefinitionsProperty() argument
17746 xmlSchemaTypeFixup(link->type, ACTXT_CAST pctxt); in xmlSchemaFinishMemberTypeDefinitionsProperty()
17760 xmlSchemaPErrMemory(pctxt, "allocating a type link", in xmlSchemaFinishMemberTypeDefinitionsProperty()
17898 xmlSchemaFixupSimpleTypeStageOne(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupSimpleTypeStageOne() argument
17941 if (xmlSchemaFixupSimpleTypeStageOne(pctxt, type->baseType) == -1) in xmlSchemaFixupSimpleTypeStageOne()
17970 xmlSchemaDebugFixedType(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaDebugFixedType() argument
18025 xmlSchemaFixupSimpleTypeStageTwo(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupSimpleTypeStageTwo() argument
18028 int res, olderrs = pctxt->nberrors; in xmlSchemaFixupSimpleTypeStageTwo()
18045 xmlSchemaTypeFixup(type->baseType, ACTXT_CAST pctxt); in xmlSchemaFixupSimpleTypeStageTwo()
18053 (xmlSchemaFinishMemberTypeDefinitionsProperty(pctxt, type) == -1)) in xmlSchemaFixupSimpleTypeStageTwo()
18065 res = xmlSchemaCheckSTPropsCorrect(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18071 res = xmlSchemaCheckCOSSTRestricts(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18088 res = xmlSchemaCheckFacetValues(type, pctxt); in xmlSchemaFixupSimpleTypeStageTwo()
18092 res = xmlSchemaDeriveAndValidateFacets(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18104 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18106 if (olderrs != pctxt->nberrors) in xmlSchemaFixupSimpleTypeStageTwo()
18107 return(pctxt->err); in xmlSchemaFixupSimpleTypeStageTwo()
18112 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupSimpleTypeStageTwo()
18118 xmlSchemaFixupComplexType(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupComplexType() argument
18121 int res = 0, olderrs = pctxt->nberrors; in xmlSchemaFixupComplexType()
18136 xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt); in xmlSchemaFixupComplexType()
18147 res = xmlSchemaCheckSRCCT(pctxt, type); in xmlSchemaFixupComplexType()
18196 snprintf(buf, 29, "#scST%d", ++(pctxt->counter)); in xmlSchemaFixupComplexType()
18197 tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1); in xmlSchemaFixupComplexType()
18198 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18202 content = xmlSchemaAddType(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18225 xmlSchemaTypeFixup(contentBase, ACTXT_CAST pctxt); in xmlSchemaFixupComplexType()
18230 res = xmlSchemaFixupSimpleTypeStageOne(pctxt, content); in xmlSchemaFixupComplexType()
18232 res = xmlSchemaFixupSimpleTypeStageTwo(pctxt, content); in xmlSchemaFixupComplexType()
18248 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18268 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18288 xmlSchemaPCustomErr(pctxt, in xmlSchemaFixupComplexType()
18332 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18340 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18419 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaFixupComplexType()
18439 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaFixupComplexType()
18457 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18465 xmlSchemaAddModelGroup(pctxt, pctxt->schema, in xmlSchemaFixupComplexType()
18477 (xmlSchemaTreeItemPtr) xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18525 res = xmlSchemaFixupTypeAttributeUses(pctxt, type); in xmlSchemaFixupComplexType()
18532 res = xmlSchemaCheckCTComponent(pctxt, type); in xmlSchemaFixupComplexType()
18536 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18538 if (olderrs != pctxt->nberrors) in xmlSchemaFixupComplexType()
18539 return(pctxt->err); in xmlSchemaFixupComplexType()
18546 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18548 return(pctxt->err); in xmlSchemaFixupComplexType()
18553 xmlSchemaDebugFixedType(pctxt, type); in xmlSchemaFixupComplexType()
18602 xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckFacet() argument
18613 if (pctxt == NULL) in xmlSchemaCheckFacet()
18662 pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCheckFacet()
18663 if (pctxt == NULL) in xmlSchemaCheckFacet()
18674 ACTXT_CAST pctxt, facet->node, base, in xmlSchemaCheckFacet()
18680 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18694 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18719 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18755 xmlSchemaCustomErr4(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18780 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckFacet()
18791 if ((! ctxtGiven) && (pctxt != NULL)) in xmlSchemaCheckFacet()
18792 xmlSchemaFreeParserCtxt(pctxt); in xmlSchemaCheckFacet()
18795 if ((! ctxtGiven) && (pctxt != NULL)) in xmlSchemaCheckFacet()
18796 xmlSchemaFreeParserCtxt(pctxt); in xmlSchemaCheckFacet()
18809 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckFacetValues() argument
18811 int res, olderrs = pctxt->nberrors; in xmlSchemaCheckFacetValues()
18824 if (pctxt->vctxt == NULL) { in xmlSchemaCheckFacetValues()
18825 if (xmlSchemaCreateVCtxtOnPCtxt(pctxt) == -1) in xmlSchemaCheckFacetValues()
18828 pctxt->vctxt->schema = pctxt->schema; in xmlSchemaCheckFacetValues()
18830 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name); in xmlSchemaCheckFacetValues()
18834 pctxt->vctxt->schema = NULL; in xmlSchemaCheckFacetValues()
18836 if (olderrs != pctxt->nberrors) in xmlSchemaCheckFacetValues()
18837 return(pctxt->err); in xmlSchemaCheckFacetValues()
19110 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt,
19128 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaExpandAttributeGroupRefs() argument
19180 if (xmlSchemaAttributeGroupExpandRefs(pctxt, gr) == -1) in xmlSchemaExpandAttributeGroupRefs()
19202 tmpWild = xmlSchemaAddWildcard(pctxt, pctxt->schema, in xmlSchemaExpandAttributeGroupRefs()
19207 if (xmlSchemaCloneWildcardNsConstraints(pctxt, in xmlSchemaExpandAttributeGroupRefs()
19215 if (xmlSchemaIntersectWildcards(pctxt, *completeWild, in xmlSchemaExpandAttributeGroupRefs()
19262 xmlSchemaCustomWarning(ACTXT_CAST pctxt, in xmlSchemaExpandAttributeGroupRefs()
19298 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAttributeGroupExpandRefs() argument
19306 if (xmlSchemaExpandAttributeGroupRefs(pctxt, WXS_BASIC_CAST attrGr, in xmlSchemaAttributeGroupExpandRefs()
19324 xmlSchemaCheckAGPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckAGPropsCorrect() argument
19360 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAGPropsCorrect()
19390 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAGPropsCorrect()
19458 xmlSchemaCheckAttrPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckAttrPropsCorrect() argument
19484 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19490 return(pctxt->err); in xmlSchemaCheckAttrPropsCorrect()
19500 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19510 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckAttrPropsCorrect()
19515 return(pctxt->err); in xmlSchemaCheckAttrPropsCorrect()
19556 xmlSchemaCheckElemPropsCorrect(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckElemPropsCorrect() argument
19570 xmlSchemaCheckElementDeclComponent(head, pctxt); in xmlSchemaCheckElemPropsCorrect()
19576 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckElemPropsCorrect()
19598 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckElemPropsCorrect()
19633 if (xmlSchemaCheckCOSDerivedOK(ACTXT_CAST pctxt, typeDef, in xmlSchemaCheckElemPropsCorrect()
19638 xmlSchemaPCustomErrExt(pctxt, in xmlSchemaCheckElemPropsCorrect()
19670 xmlSchemaPCustomErr(pctxt, in xmlSchemaCheckElemPropsCorrect()
19687 xmlSchemaPErr(pctxt, elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19702 vcret = xmlSchemaParseCheckCOSValidDefault(pctxt, node, in xmlSchemaCheckElemPropsCorrect()
19847 xmlSchemaCheckElementDeclConsistent(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaCheckElementDeclConsistent() argument
19874 ret = xmlSchemaCheckElementDeclConsistent(pctxt, in xmlSchemaCheckElementDeclConsistent()
19898 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckElementDeclConsistent()
19939 xmlSchemaInternalErr2(ACTXT_CAST pctxt, in xmlSchemaCheckElementDeclConsistent()
20335 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaResolveIDCKeyReferences() argument
20341 xmlSchemaGetIDC(pctxt->schema, idc->ref->name, in xmlSchemaResolveIDCKeyReferences()
20348 xmlSchemaPResCompAttrErr(pctxt, in xmlSchemaResolveIDCKeyReferences()
20354 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20359 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaResolveIDCKeyReferences()
20365 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20379 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaResolveIDCKeyReferences()
20388 return(pctxt->err); in xmlSchemaResolveIDCKeyReferences()
20397 xmlSchemaParserCtxtPtr pctxt) in xmlSchemaResolveAttrUseProhibReferences() argument
20399 if (xmlSchemaGetAttributeDecl(pctxt->schema, prohib->name, in xmlSchemaResolveAttrUseProhibReferences()
20402 xmlSchemaPResCompAttrErr(pctxt, in xmlSchemaResolveAttrUseProhibReferences()
20422 xmlSchemaCheckSRCRedefineFirst(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckSRCRedefineFirst() argument
20425 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs; in xmlSchemaCheckSRCRedefineFirst()
20473 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckSRCRedefineFirst()
20486 err = pctxt->err; in xmlSchemaCheckSRCRedefineFirst()
20577 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaCheckSRCRedefineFirst()
20586 err = pctxt->err; in xmlSchemaCheckSRCRedefineFirst()
20597 xmlSchemaCheckSRCRedefineSecond(xmlSchemaParserCtxtPtr pctxt) in xmlSchemaCheckSRCRedefineSecond() argument
20600 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs; in xmlSchemaCheckSRCRedefineSecond()
20653 err = xmlSchemaCheckDerivationOKRestriction2to4(pctxt, in xmlSchemaCheckSRCRedefineSecond()
20673 xmlSchemaAddComponents(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaAddComponents() argument
20753 *table = xmlHashCreateDict(10, pctxt->dict); in xmlSchemaAddComponents()
20764 xmlSchemaCustomErr(ACTXT_CAST pctxt, in xmlSchemaAddComponents()
20782 if (xmlSchemaAddComponents(pctxt, rel->bucket) == -1) in xmlSchemaAddComponents()
20792 xmlSchemaFixupComponents(xmlSchemaParserCtxtPtr pctxt, in xmlSchemaFixupComponents() argument
20795 xmlSchemaConstructionCtxtPtr con = pctxt->constructor; in xmlSchemaFixupComponents()
20801 #define FIXHFAILURE if (pctxt->err == XML_SCHEMAP_INTERNAL) goto exit_failure; in xmlSchemaFixupComponents()
20828 xmlSchemaCheckSRCRedefineFirst(pctxt); in xmlSchemaFixupComponents()
20833 xmlSchemaAddComponents(pctxt, rootBucket); in xmlSchemaFixupComponents()
20835 pctxt->ctxtType = NULL; in xmlSchemaFixupComponents()
20869 (xmlSchemaElementPtr) item, pctxt); in xmlSchemaFixupComponents()
20875 (xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
20880 (xmlSchemaAttributePtr) item, pctxt); in xmlSchemaFixupComponents()
20885 (xmlSchemaAttributeUsePtr) item, pctxt); in xmlSchemaFixupComponents()
20893 WXS_QNAME_CAST item, pctxt); in xmlSchemaFixupComponents()
20900 xmlSchemaResolveModelGroupParticleReferences(pctxt, in xmlSchemaFixupComponents()
20908 (xmlSchemaIDCPtr) item, pctxt); in xmlSchemaFixupComponents()
20917 WXS_ATTR_PROHIB_CAST item, pctxt); in xmlSchemaFixupComponents()
20924 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
20944 (xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
20946 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
20951 (xmlSchemaModelGroupDefPtr) item, pctxt); in xmlSchemaFixupComponents()
20953 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
20958 (xmlSchemaAttributeGroupPtr) item, pctxt); in xmlSchemaFixupComponents()
20960 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
20967 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
20982 xmlSchemaModelGroupToModelGroupDefFixup(pctxt, in xmlSchemaFixupComponents()
20989 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21001 xmlSchemaAttributeGroupExpandRefs(pctxt, in xmlSchemaFixupComponents()
21010 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21022 xmlSchemaFixupSimpleTypeStageOne(pctxt, in xmlSchemaFixupComponents()
21031 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21042 xmlSchemaCheckUnionTypeDefCircular(pctxt, in xmlSchemaFixupComponents()
21051 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21062 xmlSchemaFixupSimpleTypeStageTwo(pctxt, WXS_TYPE_CAST item); in xmlSchemaFixupComponents()
21070 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21082 xmlSchemaCheckAttrPropsCorrect(pctxt, WXS_ATTR_CAST item); in xmlSchemaFixupComponents()
21089 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21099 xmlSchemaCheckAttrUsePropsCorrect(pctxt, in xmlSchemaFixupComponents()
21108 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21121 xmlSchemaCheckAGPropsCorrect(pctxt, WXS_ATTR_GROUP_CAST item); in xmlSchemaFixupComponents()
21129 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21135 if (WXS_CONSTRUCTOR(pctxt)->redefs != NULL) in xmlSchemaFixupComponents()
21136 xmlSchemaCheckSRCRedefineSecond(pctxt); in xmlSchemaFixupComponents()
21137 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21148 xmlSchemaFixupComplexType(pctxt, WXS_TYPE_CAST item); in xmlSchemaFixupComponents()
21156 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21178 (xmlSchemaElementPtr) elemDecl, pctxt); in xmlSchemaFixupComponents()
21191 xmlSchemaCheckElementDeclConsistent(pctxt, in xmlSchemaFixupComponents()
21202 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21214 xmlSchemaBuildContentModel((xmlSchemaTypePtr) item, pctxt); in xmlSchemaFixupComponents()
21221 if (pctxt->nberrors != 0) in xmlSchemaFixupComponents()
21229 ret = pctxt->err; in xmlSchemaFixupComponents()
21570 xmlSchemaParserCtxtPtr pctxt; in xmlSchemaAssembleByLocation() local
21576 if (vctxt->pctxt == NULL) { in xmlSchemaAssembleByLocation()
21581 pctxt = vctxt->pctxt; in xmlSchemaAssembleByLocation()
21582 if (pctxt->constructor == NULL) { in xmlSchemaAssembleByLocation()
21590 location = xmlSchemaBuildAbsoluteURI(pctxt->dict, in xmlSchemaAssembleByLocation()
21597 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT, in xmlSchemaAssembleByLocation()
21617 (WXS_CONSTRUCTOR(pctxt)->bucket == NULL)) in xmlSchemaAssembleByLocation()
21618 WXS_CONSTRUCTOR(pctxt)->bucket = bucket; in xmlSchemaAssembleByLocation()
21629 pctxt->nberrors = 0; in xmlSchemaAssembleByLocation()
21630 pctxt->err = 0; in xmlSchemaAssembleByLocation()
21631 pctxt->doc = bucket->doc; in xmlSchemaAssembleByLocation()
21633 ret = xmlSchemaParseNewDocWithContext(pctxt, schema, bucket); in xmlSchemaAssembleByLocation()
21635 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
21639 if ((ret == 0) && (pctxt->nberrors != 0)) in xmlSchemaAssembleByLocation()
21640 ret = pctxt->err; in xmlSchemaAssembleByLocation()
21641 if (pctxt->nberrors == 0) { in xmlSchemaAssembleByLocation()
21648 xmlSchemaFixupComponents(pctxt, bucket); in xmlSchemaAssembleByLocation()
21649 ret = pctxt->err; in xmlSchemaAssembleByLocation()
21656 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21659 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21661 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
21664 pctxt->doc = NULL; in xmlSchemaAssembleByLocation()
27570 if (ctxt->pctxt != NULL) in xmlSchemaFreeValidCtxt()
27571 xmlSchemaFreeParserCtxt(ctxt->pctxt); in xmlSchemaFreeValidCtxt()
27679 if (ctxt->pctxt != NULL) in xmlSchemaSetValidErrors()
27680 xmlSchemaSetParserErrors(ctxt->pctxt, err, warn, ctx); in xmlSchemaSetValidErrors()
27701 if (ctxt->pctxt != NULL) in xmlSchemaSetValidStructuredErrors()
27702 xmlSchemaSetParserStructuredErrors(ctxt->pctxt, serror, ctx); in xmlSchemaSetValidStructuredErrors()
27968 xmlSchemaParserCtxtPtr pctxt; in xmlSchemaPreRun() local
27977 if ((vctxt->pctxt == NULL) && in xmlSchemaPreRun()
27980 pctxt = vctxt->pctxt; in xmlSchemaPreRun()
27981 pctxt->xsiAssemble = 1; in xmlSchemaPreRun()
27985 vctxt->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaPreRun()
27991 pctxt->constructor = xmlSchemaConstructionCtxtCreate(pctxt->dict); in xmlSchemaPreRun()
27992 if (pctxt->constructor == NULL) in xmlSchemaPreRun()
27994 pctxt->constructor->mainSchema = vctxt->schema; in xmlSchemaPreRun()
27998 pctxt->ownsConstructor = 1; in xmlSchemaPreRun()
28655 xmlParserCtxtPtr pctxt = NULL; in xmlSchemaValidateStream() local
28665 pctxt = xmlNewParserCtxt(); in xmlSchemaValidateStream()
28666 if (pctxt == NULL) in xmlSchemaValidateStream()
28668 old_sax = pctxt->sax; in xmlSchemaValidateStream()
28669 pctxt->sax = sax; in xmlSchemaValidateStream()
28670 pctxt->userData = user_data; in xmlSchemaValidateStream()
28673 xmlCtxtUseOptions(pctxt, options); in xmlSchemaValidateStream()
28675 pctxt->linenumbers = 1; in xmlSchemaValidateStream()
28677 inputStream = xmlNewIOInputStream(pctxt, input, enc);; in xmlSchemaValidateStream()
28682 inputPush(pctxt, inputStream); in xmlSchemaValidateStream()
28683 ctxt->parserCtxt = pctxt; in xmlSchemaValidateStream()
28689 plug = xmlSchemaSAXPlug(ctxt, &(pctxt->sax), &(pctxt->userData)); in xmlSchemaValidateStream()
28696 ctxt->sax = pctxt->sax; in xmlSchemaValidateStream()
28714 if (pctxt != NULL) { in xmlSchemaValidateStream()
28715 pctxt->sax = old_sax; in xmlSchemaValidateStream()
28716 xmlFreeParserCtxt(pctxt); in xmlSchemaValidateStream()