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