Lines Matching refs:pctxt
993 xmlSchemaParserCtxtPtr pctxt;
1100 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt,
2109 xmlSchemaParserCtxtPtr pctxt = (xmlSchemaParserCtxtPtr) ctxt;
2111 pctxt->nberrors++;
2112 pctxt->err = error;
2113 channel = pctxt->error;
2115 channel = pctxt->warning;
2117 schannel = pctxt->serror;
2118 data = pctxt->errCtxt;
2303 xmlSchemaPInternalErr(xmlSchemaParserCtxtPtr pctxt,
2309 xmlSchemaInternalErr2(ACTXT_CAST pctxt, funcName, message,
2756 #define PERROR_INT(func, msg) xmlSchemaInternalErr(ACTXT_CAST pctxt, func, msg);
3547 xmlSchemaBucketCreate(xmlSchemaParserCtxtPtr pctxt,
3554 if (WXS_CONSTRUCTOR(pctxt)->mainSchema == NULL) {
3559 mainSchema = WXS_CONSTRUCTOR(pctxt)->mainSchema;
3590 if (! WXS_HAS_BUCKETS(pctxt)) {
3600 WXS_CONSTRUCTOR(pctxt)->mainBucket = ret;
3617 WXS_IMPBUCKET(ret)->schema = xmlSchemaNewSchema(pctxt);
3634 WXS_CONSTRUCTOR(pctxt)->dict);
3654 if (WXS_IS_BUCKET_IMPMAIN(WXS_CONSTRUCTOR(pctxt)->bucket->type))
3656 WXS_IMPBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket);
3659 WXS_INCBUCKET(WXS_CONSTRUCTOR(pctxt)->bucket)->ownerImport;
3675 if (xmlSchemaItemListAdd(WXS_CONSTRUCTOR(pctxt)->buckets, ret) == -1)
5205 xmlSchemaAddAttributeUse(xmlSchemaParserCtxtPtr pctxt,
5210 if (pctxt == NULL)
5215 xmlSchemaPErrMemory(pctxt, "allocating attribute", NULL);
5222 WXS_ADD_LOCAL(pctxt, ret);
5233 xmlSchemaAddRedef(xmlSchemaParserCtxtPtr pctxt,
5244 xmlSchemaPErrMemory(pctxt,
5253 if (WXS_CONSTRUCTOR(pctxt)->redefs == NULL)
5254 WXS_CONSTRUCTOR(pctxt)->redefs = ret;
5256 WXS_CONSTRUCTOR(pctxt)->lastRedef->next = ret;
5257 WXS_CONSTRUCTOR(pctxt)->lastRedef = ret;
5275 xmlSchemaAddAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt,
5283 if ((pctxt == NULL) || (name == NULL))
5289 xmlSchemaPErrMemory(pctxt, "allocating attribute group", NULL);
5300 if (pctxt->isRedefine) {
5301 pctxt->redef = xmlSchemaAddRedef(pctxt, pctxt->redefined,
5303 if (pctxt->redef == NULL) {
5307 pctxt->redefCounter = 0;
5309 WXS_ADD_GLOBAL(pctxt, ret);
5310 WXS_ADD_PENDING(pctxt, ret);
5406 xmlSchemaNewQNameRef(xmlSchemaParserCtxtPtr pctxt,
5416 xmlSchemaPErrMemory(pctxt,
5429 WXS_ADD_LOCAL(pctxt, ret);
5434 xmlSchemaAddAttributeUseProhib(xmlSchemaParserCtxtPtr pctxt)
5441 xmlSchemaPErrMemory(pctxt,
5447 WXS_ADD_LOCAL(pctxt, ret);
5688 xmlSchemaSubstGroupAdd(xmlSchemaParserCtxtPtr pctxt,
5694 if (WXS_SUBST_GROUPS(pctxt) == NULL) {
5695 WXS_SUBST_GROUPS(pctxt) = xmlHashCreateDict(10, pctxt->dict);
5696 if (WXS_SUBST_GROUPS(pctxt) == NULL)
5715 if (xmlHashAddEntry2(WXS_SUBST_GROUPS(pctxt),
5726 xmlSchemaSubstGroupGet(xmlSchemaParserCtxtPtr pctxt,
5729 if (WXS_SUBST_GROUPS(pctxt) == NULL)
5731 return(xmlHashLookup2(WXS_SUBST_GROUPS(pctxt),
5738 * @pctxt: a schema parser context
5747 xmlSchemaAddElementSubstitutionMember(xmlSchemaParserCtxtPtr pctxt,
5753 if ((pctxt == NULL) || (head == NULL) || (member == NULL))
5756 substGroup = xmlSchemaSubstGroupGet(pctxt, head);
5758 substGroup = xmlSchemaSubstGroupAdd(pctxt, head);
6234 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt,
6264 xmlSchemaPValAttrNodeValue(xmlSchemaParserCtxtPtr pctxt,
6277 if ((pctxt == NULL) || (type == NULL) || (attr == NULL))
6312 xmlSchemaPSimpleTypeErr(pctxt,
6411 xmlSchemaCheckReference(xmlSchemaParserCtxtPtr pctxt,
6418 if (xmlStrEqual(pctxt->targetNamespace, namespaceName))
6425 if (WXS_BUCKET(pctxt
6428 rel = WXS_BUCKET(pctxt)->relations;
6443 xmlSchemaCustomErr(ACTXT_CAST pctxt,
6449 xmlSchemaCustomErr(ACTXT_CAST pctxt,
7102 xmlSchemaParseLocalAttribute(xmlSchemaParserCtxtPtr pctxt,
7123 if ((pctxt == NULL) || (schema == NULL) || (node == NULL))
7127 if (xmlSchemaPValAttrNodeQName(pctxt, schema,
7131 if (xmlSchemaCheckReference(pctxt, schema, node, attr, tmpNs) != 0)
7135 nberrors = pctxt->nberrors;
7144 xmlSchemaPValAttrNodeID(pctxt, attr);
7153 xmlSchemaPValAttrNodeID(pctxt, attr);
7156 xmlSchemaPValAttrNodeQName(pctxt, schema, NULL,
7164 attrValue = xmlSchemaGetNodeContent(pctxt,
7167 ns = pctxt->targetNamespace;
7170 xmlSchemaPSimpleTypeErr(pctxt,
7181 attrValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7190 xmlSchemaPSimpleTypeErr(pctxt,
7203 xmlSchemaPMutualExclAttrErr(pctxt,
7207 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7217 xmlSchemaPMutualExclAttrErr(pctxt,
7221 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7229 xmlSchemaPIllegalAttrErr(pctxt,
7242 xmlSchemaPSimpleTypeErr(pctxt,
7253 if (nberrors != pctxt->nberrors)
7260 ns = pctxt->targetNamespace;
7266 xmlSchemaCustomErr(ACTXT_CAST pctxt,
7274 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING,
7278 if (xmlSchemaPValAttrNode(pctxt, NULL, attr,
7287 xmlSchemaPSimpleTypeErr(pctxt,
7300 use = xmlSchemaAddAttributeUse(pctxt, node);
7307 attrDecl = xmlSchemaAddAttribute(pctxt, schema, name, ns, node, 0);
7329 use = xmlSchemaAddAttributeUse(pctxt, node);
7335 WXS_ADD_PENDING(pctxt, use);
7340 ref = xmlSchemaNewQNameRef(pctxt, XML_SCHEMA_TYPE_ATTRIBUTE,
7367 xmlSchemaParseAnnotation(pctxt, child, 0);
7371 xmlSchemaPContentErr(pctxt,
7380 xmlSchemaCustomWarning(ACTXT_CAST pctxt,
7388 xmlSchemaCustomWarning(ACTXT_CAST pctxt,
7414 xmlSchemaCustomWarning(ACTXT_CAST pctxt,
7428 prohib = xmlSchemaAddAttributeUseProhib(pctxt);
7438 WXS_ADD_PENDING(pctxt, prohib);
7446 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7457 xmlSchemaPContentErr(pctxt,
7462 xmlSchemaPContentErr(pctxt,
7474 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4,
7480 xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7484 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED,
7494 xmlSchemaParseGlobalAttribute(xmlSchemaParserCtxtPtr pctxt,
7509 if ((pctxt == NULL) || (schema == NULL) || (node == NULL))
7517 xmlSchemaPMissingAttrErr(pctxt, XML_SCHEMAP_S4S_ATTR_MISSING,
7521 if (xmlSchemaPValAttrNode(pctxt, NULL, attr,
7530 xmlSchemaPSimpleTypeErr(pctxt,
7544 if (xmlStrEqual(pctxt->targetNamespace, xmlSchemaInstanceNs)) {
7545 xmlSchemaCustomErr(ACTXT_CAST pctxt,
7551 ret = xmlSchemaAddAttribute(pctxt, schema, attrValue,
7552 pctxt->targetNamespace, node, 1);
7569 xmlSchemaPIllegalAttrErr(pctxt,
7573 xmlSchemaPIllegalAttrErr(pctxt,
7578 xmlSchemaPValAttrQName(pctxt, schema, NULL,
7581 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id");
7585 ret->defValue = xmlSchemaGetProp(pctxt, node, "fixed");
7598 xmlSchemaPMutualExclAttrErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_1,
7601 ret->defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7608 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7617 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_SRC_ATTRIBUTE_4,
7622 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7626 xmlSchemaPContentErr(pctxt, XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED,
7647 xmlSchemaParseAttributeGroupRef(xmlSchemaParserCtxtPtr pctxt,
7656 if ((pctxt == NULL) || (schema == NULL) || (node == NULL))
7661 xmlSchemaPMissingAttrErr(pctxt,
7666 xmlSchemaPValAttrNodeQName(pctxt, schema,
7668 if (xmlSchemaCheckReference(pctxt, schema, node, attr, refNs) != 0)
7680 xmlSchemaPIllegalAttrErr(pctxt,
7684 xmlSchemaPIllegalAttrErr(pctxt,
7690 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id");
7700 xmlSchemaParseAnnotation(pctxt, child, 0);
7704 xmlSchemaPContentErr(pctxt,
7713 if (pctxt->isRedefine && pctxt->redef &&
7714 (pctxt->redef->item->type ==
7716 (ref == pctxt->redef->refName) &&
7717 (refNs == pctxt->redef->refTargetNs))
7726 if (pctxt->redefCounter != 0) {
7729 xmlSchemaCustomErr(ACTXT_CAST pctxt,
7738 pctxt->redefCounter++;
7743 ret = xmlSchemaNewQNameRef(pctxt,
7748 pctxt->redef->reference = WXS_BASIC_CAST ret;
7755 ret = xmlSchemaNewQNameRef(pctxt,
7761 WXS_ADD_PENDING(pctxt, ret);
7768 * @pctxt: a schema validation context
7778 xmlSchemaParseAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt,
7788 if ((pctxt == NULL) || (schema == NULL) || (node == NULL))
7793 xmlSchemaPMissingAttrErr(pctxt,
7801 if (xmlSchemaPValAttrNode(pctxt,
7806 ret = xmlSchemaAddAttributeGroupDefinition(pctxt, schema,
7807 name, pctxt->targetNamespace, node);
7819 xmlSchemaPIllegalAttrErr(pctxt,
7823 xmlSchemaPIllegalAttrErr(pctxt,
7829 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id");
7835 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7841 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child,
7851 ret->attributeWildcard = xmlSchemaParseAnyAttribute(pctxt,
7856 xmlSchemaPContentErr(pctxt,
9990 if (vctxt->pctxt == NULL) {
9992 vctxt->pctxt =
9995 vctxt->pctxt = xmlSchemaNewParserCtxt("*");
9996 if (vctxt->pctxt == NULL) {
10002 xmlSchemaSetParserErrors(vctxt->pctxt, vctxt->error,
10004 xmlSchemaSetParserStructuredErrors(vctxt->pctxt, vctxt->serror,
10012 * @pctxt: the schema parser context
10021 xmlSchemaGetSchemaBucket(xmlSchemaParserCtxtPtr pctxt,
10027 list = pctxt->constructor->buckets;
10043 xmlSchemaGetChameleonSchemaBucket(xmlSchemaParserCtxtPtr pctxt,
10050 list = pctxt->constructor->buckets;
10072 xmlSchemaGetSchemaBucketByTNS(xmlSchemaParserCtxtPtr pctxt,
10079 list = pctxt->constructor->buckets;
10097 xmlSchemaParseNewDocWithContext(xmlSchemaParserCtxtPtr pctxt,
10105 xmlSchemaBucketPtr oldbucket = pctxt->constructor->bucket;
10118 pctxt->schema = schema;
10123 pctxt->targetNamespace = bucket->targetNamespace;
10124 WXS_CONSTRUCTOR(pctxt)->bucket = bucket;
10131 pctxt->isS4S = 1;
10137 ret = xmlSchemaParseSchemaElement(pctxt, schema, node);
10143 oldErrs = pctxt->nberrors;
10144 ret = xmlSchemaParseSchemaTopLevel(pctxt, schema, node->children);
10149 * as a result of the obove functions; so better rely on pctxt->err
10152 if ((ret == 0) && (oldErrs != pctxt->nberrors)) {
10153 ret = pctxt->err;
10158 WXS_CONSTRUCTOR(pctxt)->bucket = oldbucket;
10166 xmlSchemaParseNewDoc(xmlSchemaParserCtxtPtr pctxt,
10185 if (pctxt->constructor == NULL) {
10192 (const char *) bucket->schemaLocation, pctxt->dict);
10195 newpctxt->constructor = pctxt->constructor;
10202 xmlSchemaSetParserErrors(newpctxt, pctxt->error, pctxt->warning,
10203 pctxt->errCtxt);
10204 xmlSchemaSetParserStructuredErrors(newpctxt, pctxt->serror,
10205 pctxt->errCtxt);
10206 newpctxt->counter = pctxt->counter;
10213 pctxt->err = res;
10214 pctxt->nberrors += newpctxt->nberrors;
10215 pctxt->counter = newpctxt->counter;
10273 * @pctxt: a schema validation context
10284 xmlSchemaAddSchemaDoc(xmlSchemaParserCtxtPtr pctxt,
10322 if ((type == XML_SCHEMA_SCHEMA_MAIN) || (! WXS_HAS_BUCKETS(pctxt)))
10327 bkt = xmlSchemaGetSchemaBucket(pctxt, schemaLocation);
10329 (pctxt->constructor->bucket == bkt)) {
10332 xmlSchemaCustomErr(ACTXT_CAST pctxt, err,
10345 xmlSchemaSchemaRelationAddChild(pctxt->constructor->bucket,
10376 xmlSchemaCustomErr(ACTXT_CAST pctxt, err,
10393 xmlSchemaCustomErr(ACTXT_CAST pctxt, err,
10428 bkt = xmlSchemaGetSchemaBucketByTNS(pctxt,
10447 xmlSchemaCustomWarning(ACTXT_CAST pctxt,
10487 chamel = xmlSchemaGetChameleonSchemaBucket(pctxt,
10525 schemaLocation = xmlDictLookup(pctxt->dict,
10538 if ((pctxt->dict != NULL) && (parserCtxt->dict != NULL)) {
10544 parserCtxt->dict = pctxt->dict;
10588 xmlSchemaCustomErr(ACTXT_CAST pctxt, res,
10598 xmlSchemaPErr(pctxt, NULL,
10614 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOROOT,
10623 xmlSchemaCleanupDoc(pctxt, docElem);
10628 xmlSchemaCustomErr(ACTXT_CAST pctxt, XML_SCHEMAP_NOT_SCHEMA,
10638 targetNamespace = xmlSchemaGetProp(pctxt, docElem,
10645 bkt = xmlSchemaBucketCreate(pctxt, type,
10684 return(pctxt->err);
10708 xmlSchemaParseImport(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema,
10718 if ((pctxt == NULL) || (schema == NULL) || (node == NULL))
10730 xmlSchemaPIllegalAttrErr(pctxt,
10734 xmlSchemaPIllegalAttrErr(pctxt,
10742 if (xmlSchemaPValAttr(pctxt, NULL, node,
10745 xmlSchemaPSimpleTypeErr(pctxt,
10750 return (pctxt->err);
10753 if (xmlSchemaPValAttr(pctxt, NULL, node,
10756 xmlSchemaPSimpleTypeErr(pctxt,
10761 return (pctxt->err);
10775 xmlSchemaPContentErr(pctxt,
10788 thisTargetNamespace = WXS_BUCKET(pctxt)->origTargetNamespace;
10796 xmlSchemaPCustomErr(pctxt,
10802 return (pctxt->err);
10810 xmlSchemaPCustomErr(pctxt,
10816 return (pctxt->err);
10823 schemaLocation = xmlSchemaBuildAbsoluteURI(pctxt->dict,
10825 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT,
10840 xmlSchemaCustomWarning(ACTXT_CAST pctxt,
10848 ret = xmlSchemaParseNewDoc(pctxt, schema, bucket);
10855 xmlSchemaParseIncludeOrRedefineAttrs(xmlSchemaParserCtxtPtr pctxt,
10863 if ((pctxt == NULL) || (schema == NULL) || (node == NULL) ||
10877 xmlSchemaPIllegalAttrErr(pctxt,
10881 xmlSchemaPIllegalAttrErr(pctxt,
10886 xmlSchemaPValAttrID(pctxt, node, BAD_CAST "id");
10899 if (xmlSchemaPValAttrNode(pctxt, NULL, attr,
10915 (*schemaLocation) = (xmlChar *) xmlDictLookup(pctxt->dict, uri, -1);
10918 xmlSchemaPMissingAttrErr(pctxt,
10926 if (xmlStrEqual(*schemaLocation, pctxt->URL)) {
10928 xmlSchemaPCustomErr(pctxt,
10934 xmlSchemaPCustomErr(pctxt,
10945 return(pctxt->err);
10951 xmlSchemaParseIncludeOrRedefine(xmlSchemaParserCtxtPtr pctxt,
10962 if ((pctxt == NULL) || (schema == NULL) || (node == NULL))
10969 res = xmlSchemaParseIncludeOrRedefineAttrs(pctxt, schema,
10976 res = xmlSchemaAddSchemaDoc(pctxt, type, schemaLocation, NULL,
10977 NULL, 0, node, pctxt->targetNamespace, NULL, &bucket);
10999 xmlSchemaCustomErr(ACTXT_CAST pctxt, res,
11016 xmlSchemaCustomErr(ACTXT_CAST pctxt, res,
11034 if (pctxt->targetNamespace == NULL) {
11035 xmlSchemaCustomErr(ACTXT_CAST pctxt,
11044 pctxt->targetNamespace)) {
11046 xmlSchemaPCustomErrExt(pctxt,
11053 pctxt->targetNamespace);
11056 } else if (pctxt->targetNamespace != NULL) {
11064 xmlSchemaCustomErr(ACTXT_CAST pctxt,
11073 bucket->targetNamespace = pctxt->targetNamespace;
11087 xmlSchemaParseNewDoc(pctxt, schema, bucket);
11100 pctxt->redefined = bucket;
11104 pctxt->isRedefine = 1;
11115 xmlSchemaParseSimpleType(pctxt, schema, child, 1);
11117 xmlSchemaParseComplexType(pctxt, schema, child, 1);
11121 xmlSchemaParseModelGroupDefinition(pctxt,
11125 xmlSchemaParseAttributeGroupDefinition(pctxt, schema,
11130 pctxt->redefined = NULL;
11131 pctxt->isRedefine = 0;
11143 xmlSchemaPContentErr(pctxt, res,
11147 xmlSchemaPContentErr(pctxt, res,
11155 return(pctxt->err);
11159 xmlSchemaParseRedefine(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema,
11167 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node,
11175 xmlSchemaParseInclude(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema,
11180 res = xmlSchemaParseIncludeOrRedefine(pctxt, schema, node,
12555 xmlSchemaBuildContentModelForSubstGroup(xmlSchemaParserCtxtPtr pctxt,
12568 start = pctxt->state;
12570 end = xmlAutomataNewState(pctxt->am);
12571 substGroup = xmlSchemaSubstGroupGet(pctxt, elemDecl);
12573 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle),
12587 tmp = xmlAutomataNewCountedTrans(pctxt->am, start, NULL, counter);
12588 xmlAutomataNewTransition2(pctxt->am, tmp, end,
12595 xmlAutomataNewTransition2(pctxt->am, tmp, end,
12602 xmlAutomataNewEpsilon(pctxt->am,
12603 xmlAutomataNewTransition2(pctxt->am,
12620 * tmp = xmlAutomataNewOnceTrans2(pctxt->am, start, NULL,
12624 tmp = xmlAutomataNewTransition2(pctxt->am, start, NULL,
12626 xmlAutomataNewEpsilon(pctxt->am, tmp, end);
12635 xmlAutomataNewCounter(pctxt->am, minOccurs,
12637 hop = xmlAutomataNewState(pctxt->am);
12639 xmlAutomataNewEpsilon(pctxt->am,
12640 xmlAutomataNewTransition2(pctxt->am,
12649 xmlAutomataNewEpsilon(pctxt->am,
12650 xmlAutomataNewTransition2(pctxt->am,
12655 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter);
12656 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter);
12659 xmlAutomataNewEpsilon(pctxt->am, start, end);
12662 pctxt->state = end;
12737 xmlSchemaBuildAContentModel(xmlSchemaParserCtxtPtr pctxt,
12762 start = pctxt->state;
12763 end = xmlAutomataNewState(pctxt->am);
12772 pctxt->state =
12773 xmlAutomataNewTransition2(pctxt->am,
12775 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end);
12779 pctxt->state =
12780 xmlAutomataNewTransition2(pctxt->am,
12782 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end);
12787 pctxt->state = start;
12788 pctxt->state = xmlAutomataNewTransition2(pctxt->am,
12789 pctxt->state, NULL, BAD_CAST "*", ns->value, wild);
12790 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end);
12795 pctxt->state = xmlAutomataNewNegTrans(pctxt->am,
12808 counter = xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs);
12809 hop = xmlAutomataNewState(pctxt->am);
12811 pctxt->state =
12812 xmlAutomataNewTransition2(pctxt->am,
12814 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop);
12815 pctxt->state =
12816 xmlAutomataNewTransition2(pctxt->am,
12818 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop);
12822 pctxt->state =
12823 xmlAutomataNewTransition2(pctxt->am,
12825 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop);
12830 pctxt->state = xmlAutomataNewNegTrans(pctxt->am,
12834 xmlAutomataNewCountedTrans(pctxt->am, hop, start, counter);
12835 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter);
12838 xmlAutomataNewEpsilon(pctxt->am, start, end);
12841 pctxt->state = end;
12845 ret = xmlSchemaBuildContentModelForElement(pctxt, particle);
12859 tmp2 = xmlSchemaBuildAContentModel(pctxt,
12865 xmlAutomataStatePtr oldstate = pctxt->state;
12872 pctxt->state = xmlAutomataNewEpsilon(pctxt->am,
12874 oldstate = pctxt->state;
12876 counter = xmlAutomataNewCounter(pctxt->am,
12881 tmp2 = xmlSchemaBuildAContentModel(pctxt,
12886 tmp = pctxt->state;
12887 xmlAutomataNewCountedTrans(pctxt->am, tmp,
12889 pctxt->state =
12890 xmlAutomataNewCounterTrans(pctxt->am, tmp,
12893 xmlAutomataNewEpsilon(pctxt->am,
12894 oldstate, pctxt->state);
12897 pctxt->state = xmlAutomataNewEpsilon(pctxt->am,
12899 oldstate = pctxt->state;
12903 tmp2 = xmlSchemaBuildAContentModel(pctxt,
12908 xmlAutomataNewEpsilon(pctxt->am, pctxt->state,
12915 pctxt->state = xmlAutomataNewEpsilon(pctxt->am,
12916 pctxt->state, NULL);
12918 xmlAutomataNewEpsilon(pctxt->am,
12919 oldstate, pctxt->state);
12928 pctxt->state = xmlAutomataNewEpsilon(pctxt->am,
12930 oldstate = pctxt->state;
12932 counter = xmlAutomataNewCounter(pctxt->am,
12938 tmp2 = xmlSchemaBuildAContentModel(pctxt,
12943 tmp = pctxt->state;
12944 xmlAutomataNewCountedTrans(pctxt->am,
12946 pctxt->state =
12947 xmlAutomataNewCounterTrans(pctxt->am, tmp, NULL,
12950 xmlAutomataNewEpsilon(pctxt->am,
12951 oldstate, pctxt->state);
12957 tmp2 = xmlSchemaBuildAContentModel(pctxt,
12968 pctxt->state = xmlAutomataNewEpsilon(pctxt->am,
12969 pctxt->state, NULL);
12972 xmlAutomataNewEpsilon(pctxt->am, oldstate,
12973 pctxt->state);
12985 start = pctxt->state;
12986 end = xmlAutomataNewState(pctxt->am);
12995 pctxt->state = start;
12996 tmp2 = xmlSchemaBuildAContentModel(pctxt,
12999 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, end);
13015 xmlAutomataNewCounter(pctxt->am, minOccurs, maxOccurs);
13016 hop = xmlAutomataNewState(pctxt->am);
13017 base = xmlAutomataNewState(pctxt->am);
13021 pctxt->state = base;
13022 tmp2 = xmlSchemaBuildAContentModel(pctxt,
13025 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, hop);
13028 xmlAutomataNewEpsilon(pctxt->am, start, base);
13029 xmlAutomataNewCountedTrans(pctxt->am, hop, base, counter);
13030 xmlAutomataNewCounterTrans(pctxt->am, hop, end, counter);
13032 xmlAutomataNewEpsilon(pctxt->am, base, end);
13035 xmlAutomataNewEpsilon(pctxt->am, start, end);
13038 pctxt->state = end;
13054 start = pctxt->state;
13055 tmp = xmlAutomataNewState(pctxt->am);
13056 xmlAutomataNewEpsilon(pctxt->am, pctxt->state, tmp);
13057 pctxt->state = tmp;
13059 pctxt->state = tmp;
13081 counter = xmlAutomataNewCounter(pctxt->am,
13083 xmlSchemaBuildContentModelForSubstGroup(pctxt,
13084 sub, counter, pctxt->state);
13088 xmlAutomataNewOnceTrans2(pctxt->am, pctxt->state,
13089 pctxt->state,
13096 xmlAutomataNewCountTrans2(pctxt->am, pctxt->state,
13097 pctxt->state,
13107 pctxt->state =
13108 xmlAutomataNewAllTrans(pctxt->am, pctxt->state, NULL, 0);
13110 xmlAutomataNewEpsilon(pctxt->am, start, pctxt->state);
13126 xmlSchemaInternalErr2(ACTXT_CAST pctxt,
14110 xmlSchemaCheckDerivationOKRestriction2to4(xmlSchemaParserCtxtPtr pctxt,
14154 xmlSchemaPAttrUseErr4(pctxt,
14164 /* err = pctxt->err; */
14165 } else if (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt,
14177 xmlSchemaPAttrUseErr4(pctxt,
14194 /* err = pctxt->err; */
14228 xmlSchemaPAttrUseErr4(pctxt,
14239 /* err = pctxt->err; */
14261 xmlSchemaPAttrUseErr4(pctxt,
14270 /* err = pctxt->err; */
14304 xmlSchemaCustomErr4(ACTXT_CAST pctxt,
14332 xmlSchemaCustomErr4(ACTXT_CAST pctxt,
14342 return(pctxt->err);
14353 xmlSchemaCustomErr4(ACTXT_CAST pctxt,
14363 return(pctxt->err);
14375 xmlSchemaCustomErr4(ACTXT_CAST pctxt,
14385 return(pctxt->err);
14393 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt,
14413 xmlSchemaFixupTypeAttributeUses(xmlSchemaParserCtxtPtr pctxt,
14427 if (xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt) == -1)
14441 * into pctxt->attrProhibs.
14443 if (xmlSchemaExpandAttributeGroupRefs(pctxt,
14445 pctxt->attrProhibs) == -1)
14450 if (pctxt->attrProhibs->nbItems != 0)
14451 prohibs = pctxt->attrProhibs;
14453 if (xmlSchemaExpandAttributeGroupRefs(pctxt,
14566 if (xmlSchemaUnionWildcards(pctxt, type->attributeWildcard,
14891 * @pctxt: the schema parser context
14902 xmlSchemaCheckTypeDefCircularInternal(xmlSchemaParserCtxtPtr pctxt,
14912 xmlSchemaPCustomErr(pctxt,
14925 ret = xmlSchemaCheckTypeDefCircularInternal(pctxt, ctxtType,
14965 xmlSchemaCheckUnionTypeDefCircularRecur(xmlSchemaParserCtxtPtr pctxt,
14978 xmlSchemaPCustomErr(pctxt,
14989 res = xmlSchemaCheckUnionTypeDefCircularRecur(pctxt,
15004 xmlSchemaCheckUnionTypeDefCircular(xmlSchemaParserCtxtPtr pctxt,
15009 return(xmlSchemaCheckUnionTypeDefCircularRecur(pctxt, type,
15256 xmlSchemaCheckCOSSTRestricts(xmlSchemaParserCtxtPtr pctxt,
15274 xmlSchemaPCustomErr(pctxt,
15288 xmlSchemaPCustomErr(pctxt,
15316 xmlSchemaPIllegalFacetAtomicErr(pctxt,
15344 xmlSchemaTypeFixup(itemType, ACTXT_CAST pctxt);
15352 xmlSchemaPCustomErr(pctxt,
15365 xmlSchemaPCustomErr(pctxt,
15390 xmlSchemaPCustomErr(pctxt,
15408 xmlSchemaPIllegalFacetListUnionErr(pctxt,
15433 xmlSchemaPCustomErr(pctxt,
15447 xmlSchemaPCustomErr(pctxt,
15470 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt, itemType,
15473 xmlSchemaPCustomErrExt(pctxt,
15511 xmlSchemaPIllegalFacetListUnionErr(pctxt,
15543 xmlSchemaTypeFixup(member->type, ACTXT_CAST pctxt);
15547 xmlSchemaPCustomErr(pctxt,
15570 xmlSchemaPCustomErr(pctxt,
15584 xmlSchemaPCustomErr(pctxt,
15596 xmlSchemaPCustomErr(pctxt,
15609 xmlSchemaPCustomErr(pctxt,
15650 (xmlSchemaCheckCOSSTDerivedOK(ACTXT_CAST pctxt,
15654 xmlSchemaPCustomErrExt(pctxt,
15686 xmlSchemaPIllegalFacetListUnionErr(pctxt,
15790 * @pctxt: the schema parser context
15805 xmlSchemaParseCheckCOSValidDefault(xmlSchemaParserCtxtPtr pctxt,
15832 xmlSchemaPCustomErr(pctxt,
15853 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node,
15856 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt, node,
15883 xmlSchemaCheckCTPropsCorrect(xmlSchemaParserCtxtPtr pctxt,
15901 xmlSchemaCustomErr(ACTXT_CAST pctxt,
15947 xmlSchemaCustomErr(ACTXT_CAST pctxt,
15976 xmlSchemaCustomErr(ACTXT_CAST pctxt,
16232 xmlSchemaCustomErr(ACTXT_CAST pctxt,
16245 xmlSchemaCustomErr(ACTXT_CAST pctxt,
17154 xmlSchemaPCustomErrExt(pctxt, \
17163 xmlSchemaPCustomErr(pctxt, \
17169 xmlSchemaPCustomErr(pctxt, \
17176 xmlSchemaDeriveFacetErr(xmlSchemaParserCtxtPtr pctxt,
17204 xmlSchemaPCustomErr(pctxt,
17220 xmlSchemaDeriveAndValidateFacets(xmlSchemaParserCtxtPtr pctxt,
17351 xmlSchemaDeriveFacetErr(pctxt, flength, bflength, 0, 0, 1);
17366 xmlSchemaDeriveFacetErr(pctxt, fminlen, bfminlen, 1, 1, 1);
17380 xmlSchemaDeriveFacetErr(pctxt, fmaxlen, bfmaxlen, -1, 1, 1);
17399 xmlSchemaDeriveFacetErr(pctxt, flength, fminlen, 1, 1, 0);
17409 xmlSchemaDeriveFacetErr(pctxt, flength, fmaxlen, -1, 1, 0);
17422 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, fmininc, 1, 1, 0);
17434 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxinc, -1, 1, 1);
17445 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmaxexc, -1, 0, 1);
17454 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfmininc, 1, 1, 1);
17463 xmlSchemaDeriveFacetErr(pctxt, fmaxinc, bfminexc, 1, 0, 1);
17476 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, fminexc, 1, 1, 0);
17488 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxexc, -1, 1, 1);
17500 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmaxinc, -1, 1, 1);
17509 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfmininc, 1, 0, 1);
17518 xmlSchemaDeriveFacetErr(pctxt, fmaxexc, bfminexc, 1, 0, 1);
17531 xmlSchemaDeriveFacetErr(pctxt, fminexc, fmaxinc, -1, 0, 0);
17543 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfminexc, 1, 1, 1);
17555 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmaxinc, -1, 1, 1);
17564 xmlSchemaDeriveFacetErr(pctxt, fminexc, bfmininc, 1, 1, 1);
17573 pctxt, fminexc, bfmaxexc, -1, 0, 1);
17586 xmlSchemaDeriveFacetErr(pctxt, fmininc, fmaxexc, -1, 0, 0);
17598 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmininc, 1, 1, 1);
17610 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxinc, -1, 1, 1);
17619 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfminexc, 1, 0, 1);
17627 xmlSchemaDeriveFacetErr(pctxt, fmininc, bfmaxexc, -1, 0, 1);
17639 xmlSchemaDeriveFacetErr(pctxt, ftotdig, bftotdig,
17654 xmlSchemaDeriveFacetErr(pctxt, ffracdig, bffracdig,
17672 xmlSchemaDeriveFacetErr(pctxt, ffracdig, ftotdig,
17736 xmlSchemaPErrMemory(pctxt,
17759 xmlSchemaFinishMemberTypeDefinitionsProperty(xmlSchemaParserCtxtPtr pctxt,
17776 xmlSchemaTypeFixup(link->type, ACTXT_CAST pctxt);
17790 xmlSchemaPErrMemory(pctxt, "allocating a type link",
17928 xmlSchemaFixupSimpleTypeStageOne(xmlSchemaParserCtxtPtr pctxt,
17971 if (xmlSchemaFixupSimpleTypeStageOne(pctxt, type->baseType) == -1)
18000 xmlSchemaDebugFixedType(xmlSchemaParserCtxtPtr pctxt,
18055 xmlSchemaFixupSimpleTypeStageTwo(xmlSchemaParserCtxtPtr pctxt,
18058 int res, olderrs = pctxt->nberrors;
18075 xmlSchemaTypeFixup(type->baseType, ACTXT_CAST pctxt);
18083 (xmlSchemaFinishMemberTypeDefinitionsProperty(pctxt, type) == -1))
18095 res = xmlSchemaCheckSTPropsCorrect(pctxt, type);
18101 res = xmlSchemaCheckCOSSTRestricts(pctxt, type);
18118 res = xmlSchemaCheckFacetValues(type, pctxt);
18122 res = xmlSchemaDeriveAndValidateFacets(pctxt, type);
18134 xmlSchemaDebugFixedType(pctxt, type);
18136 if (olderrs != pctxt->nberrors)
18137 return(pctxt->err);
18142 xmlSchemaDebugFixedType(pctxt, type);
18148 xmlSchemaFixupComplexType(xmlSchemaParserCtxtPtr pctxt,
18151 int res = 0, olderrs = pctxt->nberrors;
18166 xmlSchemaTypeFixup(baseType, ACTXT_CAST pctxt);
18177 res = xmlSchemaCheckSRCCT(pctxt, type);
18226 snprintf(buf, 29, "#scST%d", ++(pctxt->counter));
18227 tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1);
18228 content = xmlSchemaAddType(pctxt, pctxt->schema,
18232 content = xmlSchemaAddType(pctxt, pctxt->schema,
18255 xmlSchemaTypeFixup(contentBase, ACTXT_CAST pctxt);
18260 res = xmlSchemaFixupSimpleTypeStageOne(pctxt, content);
18262 res = xmlSchemaFixupSimpleTypeStageTwo(pctxt, content);
18278 xmlSchemaPCustomErr(pctxt,
18298 xmlSchemaPCustomErr(pctxt,
18318 xmlSchemaPCustomErr(pctxt,
18362 particle = xmlSchemaAddParticle(pctxt,
18370 xmlSchemaAddModelGroup(pctxt, pctxt->schema,
18449 xmlSchemaCustomErr(ACTXT_CAST pctxt,
18469 xmlSchemaCustomErr(ACTXT_CAST pctxt,
18487 particle = xmlSchemaAddParticle(pctxt,
18495 xmlSchemaAddModelGroup(pctxt, pctxt->schema,
18507 (xmlSchemaTreeItemPtr) xmlSchemaAddParticle(pctxt,
18555 res = xmlSchemaFixupTypeAttributeUses(pctxt, type);
18562 res = xmlSchemaCheckCTComponent(pctxt, type);
18566 xmlSchemaDebugFixedType(pctxt, type);
18568 if (olderrs != pctxt->nberrors)
18569 return(pctxt->err);
18576 xmlSchemaDebugFixedType(pctxt, type);
18578 return(pctxt->err);
18583 xmlSchemaDebugFixedType(pctxt, type);
18621 * @pctxt: the schema parser context or NULL
18632 xmlSchemaParserCtxtPtr pctxt,
18643 if (pctxt == NULL)
18692 pctxt = xmlSchemaNewParserCtxt("*");
18693 if (pctxt == NULL)
18704 ACTXT_CAST pctxt, facet->node, base,
18710 xmlSchemaCustomErr(ACTXT_CAST pctxt,
18724 xmlSchemaCustomErr(ACTXT_CAST pctxt,
18749 xmlSchemaCustomErr(ACTXT_CAST pctxt,
18785 xmlSchemaCustomErr4(ACTXT_CAST pctxt,
18810 xmlSchemaCustomErr(ACTXT_CAST pctxt,
18821 if ((! ctxtGiven) && (pctxt != NULL))
18822 xmlSchemaFreeParserCtxt(pctxt);
18825 if ((! ctxtGiven) && (pctxt != NULL))
18826 xmlSchemaFreeParserCtxt(pctxt);
18839 xmlSchemaParserCtxtPtr pctxt)
18841 int res, olderrs = pctxt->nberrors;
18854 if (pctxt->vctxt == NULL) {
18855 if (xmlSchemaCreateVCtxtOnPCtxt(pctxt) == -1)
18858 pctxt->vctxt->schema = pctxt->schema;
18860 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name);
18864 pctxt->vctxt->schema = NULL;
18866 if (olderrs != pctxt->nberrors)
18867 return(pctxt->err);
19140 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt,
19145 * @pctxt: the parser context
19158 xmlSchemaExpandAttributeGroupRefs(xmlSchemaParserCtxtPtr pctxt,
19210 if (xmlSchemaAttributeGroupExpandRefs(pctxt, gr) == -1)
19232 tmpWild = xmlSchemaAddWildcard(pctxt, pctxt->schema,
19237 if (xmlSchemaCloneWildcardNsConstraints(pctxt,
19245 if (xmlSchemaIntersectWildcards(pctxt, *completeWild,
19292 xmlSchemaCustomWarning(ACTXT_CAST pctxt,
19317 * @pctxt: the parser context
19328 xmlSchemaAttributeGroupExpandRefs(xmlSchemaParserCtxtPtr pctxt,
19336 if (xmlSchemaExpandAttributeGroupRefs(pctxt, WXS_BASIC_CAST attrGr,
19344 * @pctxt: the parser context
19354 xmlSchemaCheckAGPropsCorrect(xmlSchemaParserCtxtPtr pctxt,
19390 xmlSchemaCustomErr(ACTXT_CAST pctxt,
19420 xmlSchemaCustomErr(ACTXT_CAST pctxt,
19488 xmlSchemaCheckAttrPropsCorrect(xmlSchemaParserCtxtPtr pctxt,
19514 xmlSchemaCustomErr(ACTXT_CAST pctxt,
19520 return(pctxt->err);
19530 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST pctxt,
19540 xmlSchemaCustomErr(ACTXT_CAST pctxt,
19545 return(pctxt->err);
19586 xmlSchemaCheckElemPropsCorrect(xmlSchemaParserCtxtPtr pctxt,
19600 xmlSchemaCheckElementDeclComponent(head, pctxt);
19606 xmlSchemaPCustomErr(pctxt,
19628 xmlSchemaPCustomErrExt(pctxt,
19663 if (xmlSchemaCheckCOSDerivedOK(ACTXT_CAST pctxt, typeDef,
19668 xmlSchemaPCustomErrExt(pctxt,
19700 xmlSchemaPCustomErr(pctxt,
19717 xmlSchemaPErr(pctxt, elemDecl->node,
19732 vcret = xmlSchemaParseCheckCOSValidDefault(pctxt, node,
19869 * @pctxt: the schema parser context
19877 xmlSchemaCheckElementDeclConsistent(xmlSchemaParserCtxtPtr pctxt,
19904 ret = xmlSchemaCheckElementDeclConsistent(pctxt,
19928 xmlSchemaCustomErr(ACTXT_CAST pctxt,
19955 ret = xmlSchemaCheckElementDeclConsistent(pctxt, ctxtComponent,
19969 xmlSchemaInternalErr2(ACTXT_CAST pctxt,
20365 xmlSchemaParserCtxtPtr pctxt)
20371 xmlSchemaGetIDC(pctxt->schema, idc->ref->name,
20378 xmlSchemaPResCompAttrErr(pctxt,
20384 return(pctxt->err);
20389 xmlSchemaCustomErr(ACTXT_CAST pctxt,
20395 return(pctxt->err);
20409 xmlSchemaCustomErr(ACTXT_CAST pctxt,
20418 return(pctxt->err);
20427 xmlSchemaParserCtxtPtr pctxt)
20429 if (xmlSchemaGetAttributeDecl(pctxt->schema, prohib->name,
20432 xmlSchemaPResCompAttrErr(pctxt,
20452 xmlSchemaCheckSRCRedefineFirst(xmlSchemaParserCtxtPtr pctxt)
20455 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs;
20503 xmlSchemaCustomErr(ACTXT_CAST pctxt,
20516 err = pctxt->err;
20607 xmlSchemaCustomErr(ACTXT_CAST pctxt,
20616 err = pctxt->err;
20627 xmlSchemaCheckSRCRedefineSecond(xmlSchemaParserCtxtPtr pctxt)
20630 xmlSchemaRedefPtr redef = WXS_CONSTRUCTOR(pctxt)->redefs;
20683 err = xmlSchemaCheckDerivationOKRestriction2to4(pctxt,
20703 xmlSchemaAddComponents(xmlSchemaParserCtxtPtr pctxt,
20783 *table = xmlHashCreateDict(10, pctxt->dict);
20794 xmlSchemaCustomErr(ACTXT_CAST pctxt,
20812 if (xmlSchemaAddComponents(pctxt, rel->bucket) == -1)
20822 xmlSchemaFixupComponents(xmlSchemaParserCtxtPtr pctxt,
20825 xmlSchemaConstructionCtxtPtr con = pctxt->constructor;
20831 #define FIXHFAILURE if (pctxt->err == XML_SCHEMAP_INTERNAL) goto exit_failure;
20858 xmlSchemaCheckSRCRedefineFirst(pctxt);
20863 xmlSchemaAddComponents(pctxt, rootBucket);
20865 pctxt->ctxtType = NULL;
20899 (xmlSchemaElementPtr) item, pctxt);
20905 (xmlSchemaTypePtr) item, pctxt);
20910 (xmlSchemaAttributePtr) item, pctxt);
20915 (xmlSchemaAttributeUsePtr) item, pctxt);
20923 WXS_QNAME_CAST item, pctxt);
20930 xmlSchemaResolveModelGroupParticleReferences(pctxt,
20938 (xmlSchemaIDCPtr) item, pctxt);
20947 WXS_ATTR_PROHIB_CAST item, pctxt);
20954 if (pctxt->nberrors != 0)
20974 (xmlSchemaTypePtr) item, pctxt);
20976 if (pctxt->nberrors != 0)
20981 (xmlSchemaModelGroupDefPtr) item, pctxt);
20983 if (pctxt->nberrors != 0)
20988 (xmlSchemaAttributeGroupPtr) item, pctxt);
20990 if (pctxt->nberrors != 0)
20997 if (pctxt->nberrors != 0)
21012 xmlSchemaModelGroupToModelGroupDefFixup(pctxt,
21019 if (pctxt->nberrors != 0)
21031 xmlSchemaAttributeGroupExpandRefs(pctxt,
21040 if (pctxt->nberrors != 0)
21052 xmlSchemaFixupSimpleTypeStageOne(pctxt,
21061 if (pctxt->nberrors != 0)
21072 xmlSchemaCheckUnionTypeDefCircular(pctxt,
21081 if (pctxt->nberrors != 0)
21092 xmlSchemaFixupSimpleTypeStageTwo(pctxt, WXS_TYPE_CAST item);
21100 if (pctxt->nberrors != 0)
21112 xmlSchemaCheckAttrPropsCorrect(pctxt, WXS_ATTR_CAST item);
21119 if (pctxt->nberrors != 0)
21129 xmlSchemaCheckAttrUsePropsCorrect(pctxt,
21138 if (pctxt->nberrors != 0)
21151 xmlSchemaCheckAGPropsCorrect(pctxt, WXS_ATTR_GROUP_CAST item);
21159 if (pctxt->nberrors != 0)
21165 if (WXS_CONSTRUCTOR(pctxt)->redefs != NULL)
21166 xmlSchemaCheckSRCRedefineSecond(pctxt);
21167 if (pctxt->nberrors != 0)
21178 xmlSchemaFixupComplexType(pctxt, WXS_TYPE_CAST item);
21186 if (pctxt->nberrors != 0)
21208 (xmlSchemaElementPtr) elemDecl, pctxt);
21221 xmlSchemaCheckElementDeclConsistent(pctxt,
21232 if (pctxt->nberrors != 0)
21244 xmlSchemaBuildContentModel((xmlSchemaTypePtr) item, pctxt);
21251 if (pctxt->nberrors != 0)
21259 ret = pctxt->err;
21580 * @pctxt: a schema parser context
21600 xmlSchemaParserCtxtPtr pctxt;
21606 if (vctxt->pctxt == NULL) {
21611 pctxt = vctxt->pctxt;
21612 if (pctxt->constructor == NULL) {
21620 location = xmlSchemaBuildAbsoluteURI(pctxt->dict,
21627 ret = xmlSchemaAddSchemaDoc(pctxt, XML_SCHEMA_SCHEMA_IMPORT,
21647 (WXS_CONSTRUCTOR(pctxt)->bucket == NULL))
21648 WXS_CONSTRUCTOR(pctxt)->bucket = bucket;
21659 pctxt->nberrors = 0;
21660 pctxt->err = 0;
21661 pctxt->doc = bucket->doc;
21663 ret = xmlSchemaParseNewDocWithContext(pctxt, schema, bucket);
21665 pctxt->doc = NULL;
21669 if ((ret == 0) && (pctxt->nberrors != 0))
21670 ret = pctxt->err;
21671 if (pctxt->nberrors == 0) {
21678 xmlSchemaFixupComponents(pctxt, bucket);
21679 ret = pctxt->err;
21686 vctxt->nberrors += pctxt->nberrors;
21689 vctxt->nberrors += pctxt->nberrors;
21691 pctxt->doc = NULL;
21694 pctxt->doc = NULL;
24965 * if ((vctxt->pctxt == NULL) &&
27642 if (ctxt->pctxt != NULL)
27643 xmlSchemaFreeParserCtxt(ctxt->pctxt);
27753 if (ctxt->pctxt != NULL)
27754 xmlSchemaSetParserErrors(ctxt->pctxt, err, warn, ctx);
27775 if (ctxt->pctxt != NULL)
27776 xmlSchemaSetParserStructuredErrors(ctxt->pctxt, serror, ctx);
28045 xmlSchemaParserCtxtPtr pctxt;
28054 if ((vctxt->pctxt == NULL) &&
28057 pctxt = vctxt->pctxt;
28058 pctxt->xsiAssemble = 1;
28062 vctxt->schema = xmlSchemaNewSchema(pctxt);
28068 pctxt->constructor = xmlSchemaConstructionCtxtCreate(pctxt->dict);
28069 if (pctxt->constructor == NULL)
28071 pctxt->constructor->mainSchema = vctxt->schema;
28075 pctxt->ownsConstructor = 1;
28789 xmlParserCtxtPtr pctxt = NULL;
28799 pctxt = xmlNewParserCtxt();
28800 if (pctxt == NULL)
28802 old_sax = pctxt->sax;
28803 pctxt->sax = sax;
28804 pctxt->userData = user_data;
28807 xmlCtxtUseOptions(pctxt, options);
28809 pctxt->linenumbers = 1;
28810 xmlSchemaValidateSetLocator(ctxt, xmlSchemaValidateStreamLocator, pctxt);
28812 inputStream = xmlNewIOInputStream(pctxt, input, enc);;
28817 inputPush(pctxt, inputStream);
28818 ctxt->parserCtxt = pctxt;
28824 plug = xmlSchemaSAXPlug(ctxt, &(pctxt->sax), &(pctxt->userData));
28831 ctxt->sax = pctxt->sax;
28849 if (pctxt != NULL) {
28850 pctxt->sax = old_sax;
28851 xmlFreeParserCtxt(pctxt);