• Home
  • Raw
  • Download

Lines Matching refs:vctxt

631     xmlSchemaValidCtxtPtr vctxt;  member
1095 xmlSchemaClearValidCtxt(xmlSchemaValidCtxtPtr vctxt);
2097 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctxt; in xmlSchemaErr4Line() local
2101 vctxt->nberrors++; in xmlSchemaErr4Line()
2102 vctxt->err = error; in xmlSchemaErr4Line()
2103 channel = vctxt->error; in xmlSchemaErr4Line()
2105 channel = vctxt->warning; in xmlSchemaErr4Line()
2107 schannel = vctxt->serror; in xmlSchemaErr4Line()
2108 data = vctxt->errCtxt; in xmlSchemaErr4Line()
2116 (vctxt->depth >= 0) && in xmlSchemaErr4Line()
2117 (vctxt->inode != NULL)) { in xmlSchemaErr4Line()
2118 node = vctxt->inode->node; in xmlSchemaErr4Line()
2124 (vctxt->parserCtxt != NULL) && in xmlSchemaErr4Line()
2125 (vctxt->parserCtxt->input != NULL)) { in xmlSchemaErr4Line()
2126 file = vctxt->parserCtxt->input->filename; in xmlSchemaErr4Line()
2127 line = vctxt->parserCtxt->input->line; in xmlSchemaErr4Line()
2128 col = vctxt->parserCtxt->input->col; in xmlSchemaErr4Line()
2139 if (vctxt->doc != NULL) in xmlSchemaErr4Line()
2140 file = (const char *) vctxt->doc->URL; in xmlSchemaErr4Line()
2141 else if ((vctxt->parserCtxt != NULL) && in xmlSchemaErr4Line()
2142 (vctxt->parserCtxt->input != NULL)) in xmlSchemaErr4Line()
2143 file = vctxt->parserCtxt->input->filename; in xmlSchemaErr4Line()
2145 if (vctxt->locFunc != NULL) { in xmlSchemaErr4Line()
2149 vctxt->locFunc(vctxt->locCtxt, &f, &l); in xmlSchemaErr4Line()
2156 if ((file == NULL) && (vctxt->filename != NULL)) in xmlSchemaErr4Line()
2157 file = vctxt->filename; in xmlSchemaErr4Line()
2275 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) actxt; in xmlSchemaFormatNodeForError() local
2279 if (vctxt->inode->nodeType == XML_ATTRIBUTE_NODE) { in xmlSchemaFormatNodeForError()
2281 vctxt->elemInfos[vctxt->depth]; in xmlSchemaFormatNodeForError()
2293 vctxt->inode->nsName, vctxt->inode->localName)); in xmlSchemaFormatNodeForError()
2441 xmlSchemaKeyrefErr(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaKeyrefErr() argument
2454 xmlSchemaErr4Line(ACTXT_CAST vctxt, XML_ERR_ERROR, in xmlSchemaKeyrefErr()
2457 vctxt->nodeQNames->items[idcNode->nodeQNameID +1], in xmlSchemaKeyrefErr()
2458 vctxt->nodeQNames->items[idcNode->nodeQNameID]), in xmlSchemaKeyrefErr()
2815 xmlSchemaCustomErr(ACTXT_CAST vctxt, err, NULL, type, msg, NULL, NULL);
2817 #define VERROR_INT(func, msg) xmlSchemaInternalErr(ACTXT_CAST vctxt, func, msg);
10072 xmlSchemaCreatePCtxtOnVCtxt(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaCreatePCtxtOnVCtxt() argument
10074 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
10075 if (vctxt->schema != NULL) in xmlSchemaCreatePCtxtOnVCtxt()
10076 vctxt->pctxt = in xmlSchemaCreatePCtxtOnVCtxt()
10077 xmlSchemaNewParserCtxtUseDict("*", vctxt->schema->dict); in xmlSchemaCreatePCtxtOnVCtxt()
10079 vctxt->pctxt = xmlSchemaNewParserCtxt("*"); in xmlSchemaCreatePCtxtOnVCtxt()
10080 if (vctxt->pctxt == NULL) { in xmlSchemaCreatePCtxtOnVCtxt()
10086 xmlSchemaSetParserErrors(vctxt->pctxt, vctxt->error, in xmlSchemaCreatePCtxtOnVCtxt()
10087 vctxt->warning, vctxt->errCtxt); in xmlSchemaCreatePCtxtOnVCtxt()
10088 xmlSchemaSetParserStructuredErrors(vctxt->pctxt, vctxt->serror, in xmlSchemaCreatePCtxtOnVCtxt()
10089 vctxt->errCtxt); in xmlSchemaCreatePCtxtOnVCtxt()
12613 if (ctxt->vctxt != NULL) { in xmlSchemaFreeParserCtxt()
12614 xmlSchemaFreeValidCtxt(ctxt->vctxt); in xmlSchemaFreeParserCtxt()
15883 if (ctxt->vctxt == NULL) { in xmlSchemaCreateVCtxtOnPCtxt()
15884 ctxt->vctxt = xmlSchemaNewValidCtxt(NULL); in xmlSchemaCreateVCtxtOnPCtxt()
15885 if (ctxt->vctxt == NULL) { in xmlSchemaCreateVCtxtOnPCtxt()
15894 xmlSchemaSetValidErrors(ctxt->vctxt, in xmlSchemaCreateVCtxtOnPCtxt()
15896 xmlSchemaSetValidStructuredErrors(ctxt->vctxt, in xmlSchemaCreateVCtxtOnPCtxt()
18978 if (pctxt->vctxt == NULL) { in xmlSchemaCheckFacetValues()
18982 pctxt->vctxt->schema = pctxt->schema; in xmlSchemaCheckFacetValues()
18988 pctxt->vctxt->schema = NULL; in xmlSchemaCheckFacetValues()
21550 if (ctxt->vctxt != NULL) in xmlSchemaSetParserErrors()
21551 xmlSchemaSetValidErrors(ctxt->vctxt, err, warn, ctx); in xmlSchemaSetParserErrors()
21571 if (ctxt->vctxt != NULL) in xmlSchemaSetParserStructuredErrors()
21572 xmlSchemaSetValidStructuredErrors(ctxt->vctxt, serror, ctx); in xmlSchemaSetParserStructuredErrors()
21716 xmlSchemaAssembleByLocation(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaAssembleByLocation() argument
21726 if ((vctxt == NULL) || (schema == NULL)) in xmlSchemaAssembleByLocation()
21729 if (vctxt->pctxt == NULL) { in xmlSchemaAssembleByLocation()
21734 pctxt = vctxt->pctxt; in xmlSchemaAssembleByLocation()
21759 xmlSchemaCustomWarning(ACTXT_CAST vctxt, XML_SCHEMAV_MISC, in xmlSchemaAssembleByLocation()
21807 if ((ret != 0) && (vctxt->err == 0)) in xmlSchemaAssembleByLocation()
21808 vctxt->err = ret; in xmlSchemaAssembleByLocation()
21809 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21812 vctxt->nberrors += pctxt->nberrors; in xmlSchemaAssembleByLocation()
21822 xmlSchemaGetMetaAttrInfo(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaGetMetaAttrInfo() argument
21825 if (vctxt->nbAttrInfos == 0) in xmlSchemaGetMetaAttrInfo()
21831 for (i = 0; i < vctxt->nbAttrInfos; i++) { in xmlSchemaGetMetaAttrInfo()
21832 iattr = vctxt->attrInfos[i]; in xmlSchemaGetMetaAttrInfo()
21854 xmlSchemaAssembleByXSI(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaAssembleByXSI() argument
21870 iattr = xmlSchemaGetMetaAttrInfo(vctxt, in xmlSchemaAssembleByXSI()
21873 iattr = xmlSchemaGetMetaAttrInfo(vctxt, in xmlSchemaAssembleByXSI()
21894 nsname = xmlDictLookup(vctxt->schema->dict, cur, end - cur); in xmlSchemaAssembleByXSI()
21913 xmlSchemaCustomWarning(ACTXT_CAST vctxt, XML_SCHEMAV_MISC, in xmlSchemaAssembleByXSI()
21921 location = xmlDictLookup(vctxt->schema->dict, cur, end - cur); in xmlSchemaAssembleByXSI()
21923 ret = xmlSchemaAssembleByLocation(vctxt, vctxt->schema, in xmlSchemaAssembleByXSI()
21935 xmlSchemaLookupNamespace(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaLookupNamespace() argument
21938 if (vctxt->sax != NULL) { in xmlSchemaLookupNamespace()
21942 for (i = vctxt->depth; i >= 0; i--) { in xmlSchemaLookupNamespace()
21943 if (vctxt->elemInfos[i]->nbNsBindings != 0) { in xmlSchemaLookupNamespace()
21944 inode = vctxt->elemInfos[i]; in xmlSchemaLookupNamespace()
21962 } else if (vctxt->reader != NULL) { in xmlSchemaLookupNamespace()
21965 nsName = xmlTextReaderLookupNamespace(vctxt->reader, prefix); in xmlSchemaLookupNamespace()
21969 ret = xmlDictLookup(vctxt->dict, nsName, -1); in xmlSchemaLookupNamespace()
21978 if ((vctxt->inode->node == NULL) || in xmlSchemaLookupNamespace()
21979 (vctxt->inode->node->doc == NULL)) { in xmlSchemaLookupNamespace()
21984 ns = xmlSearchNs(vctxt->inode->node->doc, in xmlSchemaLookupNamespace()
21985 vctxt->inode->node, prefix); in xmlSchemaLookupNamespace()
21996 xmlSchemaValidateNotation(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaValidateNotation() argument
22005 if (vctxt && (vctxt->schema == NULL)) { in xmlSchemaValidateNotation()
22021 if (vctxt != NULL) in xmlSchemaValidateNotation()
22022 nsName = xmlSchemaLookupNamespace(vctxt, BAD_CAST prefix); in xmlSchemaValidateNotation()
22064 xmlSchemaVAddNodeQName(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaVAddNodeQName() argument
22070 lname = xmlDictLookup(vctxt->dict, lname, -1); in xmlSchemaVAddNodeQName()
22074 nsname = xmlDictLookup(vctxt->dict, nsname, -1); in xmlSchemaVAddNodeQName()
22078 for (i = 0; i < vctxt->nodeQNames->nbItems; i += 2) { in xmlSchemaVAddNodeQName()
22079 if ((vctxt->nodeQNames->items [i] == lname) && in xmlSchemaVAddNodeQName()
22080 (vctxt->nodeQNames->items[i +1] == nsname)) in xmlSchemaVAddNodeQName()
22085 i = vctxt->nodeQNames->nbItems; in xmlSchemaVAddNodeQName()
22086 xmlSchemaItemListAdd(vctxt->nodeQNames, (void *) lname); in xmlSchemaVAddNodeQName()
22087 xmlSchemaItemListAdd(vctxt->nodeQNames, (void *) nsname); in xmlSchemaVAddNodeQName()
22110 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) data; in xmlSchemaAugmentIDC() local
22115 xmlSchemaVErrMemory(vctxt, in xmlSchemaAugmentIDC()
22123 if (vctxt->aidcs == NULL) in xmlSchemaAugmentIDC()
22124 vctxt->aidcs = aidc; in xmlSchemaAugmentIDC()
22126 aidc->next = vctxt->aidcs; in xmlSchemaAugmentIDC()
22127 vctxt->aidcs = aidc; in xmlSchemaAugmentIDC()
22132 if ((vctxt->hasKeyrefs == 0) && in xmlSchemaAugmentIDC()
22134 vctxt->hasKeyrefs = 1; in xmlSchemaAugmentIDC()
22147 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) data; in xmlSchemaAugmentImportedIDC() local
22149 xmlHashScan(imported->schema->idcDef, xmlSchemaAugmentIDC, vctxt); in xmlSchemaAugmentImportedIDC()
22190 xmlSchemaIDCStoreNodeTableItem(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCStoreNodeTableItem() argument
22196 if (vctxt->idcNodes == NULL) { in xmlSchemaIDCStoreNodeTableItem()
22197 vctxt->idcNodes = (xmlSchemaPSVIIDCNodePtr *) in xmlSchemaIDCStoreNodeTableItem()
22199 if (vctxt->idcNodes == NULL) { in xmlSchemaIDCStoreNodeTableItem()
22200 xmlSchemaVErrMemory(vctxt, in xmlSchemaIDCStoreNodeTableItem()
22204 vctxt->sizeIdcNodes = 20; in xmlSchemaIDCStoreNodeTableItem()
22205 } else if (vctxt->sizeIdcNodes <= vctxt->nbIdcNodes) { in xmlSchemaIDCStoreNodeTableItem()
22206 vctxt->sizeIdcNodes *= 2; in xmlSchemaIDCStoreNodeTableItem()
22207 vctxt->idcNodes = (xmlSchemaPSVIIDCNodePtr *) in xmlSchemaIDCStoreNodeTableItem()
22208 xmlRealloc(vctxt->idcNodes, vctxt->sizeIdcNodes * in xmlSchemaIDCStoreNodeTableItem()
22210 if (vctxt->idcNodes == NULL) { in xmlSchemaIDCStoreNodeTableItem()
22211 xmlSchemaVErrMemory(vctxt, in xmlSchemaIDCStoreNodeTableItem()
22216 vctxt->idcNodes[vctxt->nbIdcNodes++] = item; in xmlSchemaIDCStoreNodeTableItem()
22231 xmlSchemaIDCStoreKey(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCStoreKey() argument
22237 if (vctxt->idcKeys == NULL) { in xmlSchemaIDCStoreKey()
22238 vctxt->idcKeys = (xmlSchemaPSVIIDCKeyPtr *) in xmlSchemaIDCStoreKey()
22240 if (vctxt->idcKeys == NULL) { in xmlSchemaIDCStoreKey()
22241 xmlSchemaVErrMemory(vctxt, in xmlSchemaIDCStoreKey()
22245 vctxt->sizeIdcKeys = 40; in xmlSchemaIDCStoreKey()
22246 } else if (vctxt->sizeIdcKeys <= vctxt->nbIdcKeys) { in xmlSchemaIDCStoreKey()
22247 vctxt->sizeIdcKeys *= 2; in xmlSchemaIDCStoreKey()
22248 vctxt->idcKeys = (xmlSchemaPSVIIDCKeyPtr *) in xmlSchemaIDCStoreKey()
22249 xmlRealloc(vctxt->idcKeys, vctxt->sizeIdcKeys * in xmlSchemaIDCStoreKey()
22251 if (vctxt->idcKeys == NULL) { in xmlSchemaIDCStoreKey()
22252 xmlSchemaVErrMemory(vctxt, in xmlSchemaIDCStoreKey()
22257 vctxt->idcKeys[vctxt->nbIdcKeys++] = key; in xmlSchemaIDCStoreKey()
22311 xmlSchemaIDCAcquireBinding(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCAcquireBinding() argument
22316 ielem = vctxt->elemInfos[matcher->depth]; in xmlSchemaIDCAcquireBinding()
22343 xmlSchemaIDCAcquireTargetList(xmlSchemaValidCtxtPtr vctxt ATTRIBUTE_UNUSED, in xmlSchemaIDCAcquireTargetList()
22463 xmlSchemaIDCReleaseMatcherList(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCReleaseMatcherList() argument
22508 if (vctxt->idcMatcherCache != NULL) in xmlSchemaIDCReleaseMatcherList()
22509 matcher->nextCached = vctxt->idcMatcherCache; in xmlSchemaIDCReleaseMatcherList()
22510 vctxt->idcMatcherCache = matcher; in xmlSchemaIDCReleaseMatcherList()
22531 xmlSchemaIDCAddStateObject(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCAddStateObject() argument
22541 if (vctxt->xpathStatePool != NULL) { in xmlSchemaIDCAddStateObject()
22542 sto = vctxt->xpathStatePool; in xmlSchemaIDCAddStateObject()
22543 vctxt->xpathStatePool = sto->next; in xmlSchemaIDCAddStateObject()
22560 if (vctxt->xpathStates != NULL) in xmlSchemaIDCAddStateObject()
22561 sto->next = vctxt->xpathStates; in xmlSchemaIDCAddStateObject()
22562 vctxt->xpathStates = sto; in xmlSchemaIDCAddStateObject()
22581 sto->depth = vctxt->depth; in xmlSchemaIDCAddStateObject()
22604 xmlSchemaXPathEvaluate(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaXPathEvaluate() argument
22608 int res, resolved = 0, depth = vctxt->depth; in xmlSchemaXPathEvaluate()
22610 if (vctxt->xpathStates == NULL) in xmlSchemaXPathEvaluate()
22620 xmlSchemaFormatQName(&str, vctxt->inode->nsName, in xmlSchemaXPathEvaluate()
22621 vctxt->inode->localName), depth, nodeType); in xmlSchemaXPathEvaluate()
22628 first = vctxt->xpathStates; in xmlSchemaXPathEvaluate()
22641 vctxt->inode->localName, vctxt->inode->nsName); in xmlSchemaXPathEvaluate()
22644 vctxt->inode->localName, vctxt->inode->nsName); in xmlSchemaXPathEvaluate()
22685 vctxt->depth); in xmlSchemaXPathEvaluate()
22700 if (xmlSchemaIDCAddStateObject(vctxt, sto->matcher, in xmlSchemaXPathEvaluate()
22718 if ((vctxt->inode->flags & in xmlSchemaXPathEvaluate()
22720 vctxt->inode->flags |= XML_SCHEMA_NODE_INFO_VALUE_NEEDED; in xmlSchemaXPathEvaluate()
22730 sto = vctxt->xpathStates; in xmlSchemaXPathEvaluate()
22738 xmlSchemaFormatIDCKeySequence_1(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaFormatIDCKeySequence_1() argument
22778 xmlSchemaFormatIDCKeySequence(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaFormatIDCKeySequence() argument
22783 return xmlSchemaFormatIDCKeySequence_1(vctxt, buf, seq, count, 0); in xmlSchemaFormatIDCKeySequence()
22787 xmlSchemaHashKeySequence(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaHashKeySequence() argument
22792 return xmlSchemaFormatIDCKeySequence_1(vctxt, buf, seq, count, 1); in xmlSchemaHashKeySequence()
22804 xmlSchemaXPathPop(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaXPathPop() argument
22809 if (vctxt->xpathStates == NULL) in xmlSchemaXPathPop()
22811 sto = vctxt->xpathStates; in xmlSchemaXPathPop()
22833 xmlSchemaXPathProcessHistory(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaXPathProcessHistory() argument
22839 xmlSchemaTypePtr type = vctxt->inode->typeDef, simpleType = NULL; in xmlSchemaXPathProcessHistory()
22841 if (vctxt->xpathStates == NULL) in xmlSchemaXPathProcessHistory()
22843 sto = vctxt->xpathStates; in xmlSchemaXPathProcessHistory()
22850 xmlSchemaFormatQName(&str, vctxt->inode->nsName, in xmlSchemaXPathProcessHistory()
22851 vctxt->inode->localName), vctxt->depth); in xmlSchemaXPathProcessHistory()
22911 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaXPathProcessHistory()
22923 if ((key == NULL) && (vctxt->inode->val == NULL)) { in xmlSchemaXPathProcessHistory()
23020 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaXPathProcessHistory()
23066 key->val = vctxt->inode->val; in xmlSchemaXPathProcessHistory()
23067 vctxt->inode->val = NULL; in xmlSchemaXPathProcessHistory()
23071 if (xmlSchemaIDCStoreKey(vctxt, key) == -1) { in xmlSchemaXPathProcessHistory()
23150 bind = xmlSchemaIDCAcquireBinding(vctxt, matcher); in xmlSchemaXPathProcessHistory()
23152 targets = xmlSchemaIDCAcquireTargetList(vctxt, matcher); in xmlSchemaXPathProcessHistory()
23164 xmlSchemaHashKeySequence(vctxt, &value, *keySeq, nbKeys); in xmlSchemaXPathProcessHistory()
23201 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaXPathProcessHistory()
23205 xmlSchemaFormatIDCKeySequence(vctxt, &str, in xmlSchemaXPathProcessHistory()
23231 if (xmlSchemaIDCStoreNodeTableItem(vctxt, ntItem) == -1) { in xmlSchemaXPathProcessHistory()
23243 ntItem->nodeQNameID = xmlSchemaVAddNodeQName(vctxt, in xmlSchemaXPathProcessHistory()
23244 vctxt->inode->localName, vctxt->inode->nsName); in xmlSchemaXPathProcessHistory()
23256 ntItem->node = vctxt->node; in xmlSchemaXPathProcessHistory()
23257 ntItem->nodeLine = vctxt->inode->nodeLine; in xmlSchemaXPathProcessHistory()
23279 xmlSchemaHashKeySequence(vctxt, &value, ntItem->keys, nbKeys); in xmlSchemaXPathProcessHistory()
23303 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaXPathProcessHistory()
23331 if (vctxt->xpathStates != sto) { in xmlSchemaXPathProcessHistory()
23340 vctxt->xpathStates = sto->next; in xmlSchemaXPathProcessHistory()
23341 sto->next = vctxt->xpathStatePool; in xmlSchemaXPathProcessHistory()
23345 vctxt->xpathStatePool = sto; in xmlSchemaXPathProcessHistory()
23364 xmlSchemaIDCRegisterMatchers(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCRegisterMatchers() argument
23380 (char *) xmlSchemaFormatQName(&str, vctxt->inode->nsName, in xmlSchemaIDCRegisterMatchers()
23381 vctxt->inode->localName), vctxt->depth); in xmlSchemaIDCRegisterMatchers()
23385 if (vctxt->inode->idcMatchers != NULL) { in xmlSchemaIDCRegisterMatchers()
23404 vctxt->inode->hasKeyrefs = 1; in xmlSchemaIDCRegisterMatchers()
23408 aidc = vctxt->aidcs; in xmlSchemaIDCRegisterMatchers()
23421 (vctxt->depth < aidc->keyrefDepth)) in xmlSchemaIDCRegisterMatchers()
23422 aidc->keyrefDepth = vctxt->depth; in xmlSchemaIDCRegisterMatchers()
23428 aidc = vctxt->aidcs; in xmlSchemaIDCRegisterMatchers()
23442 if (vctxt->idcMatcherCache != NULL) { in xmlSchemaIDCRegisterMatchers()
23446 matcher = vctxt->idcMatcherCache; in xmlSchemaIDCRegisterMatchers()
23447 vctxt->idcMatcherCache = matcher->nextCached; in xmlSchemaIDCRegisterMatchers()
23453 xmlSchemaVErrMemory(vctxt, in xmlSchemaIDCRegisterMatchers()
23460 vctxt->inode->idcMatchers = matcher; in xmlSchemaIDCRegisterMatchers()
23466 matcher->depth = vctxt->depth; in xmlSchemaIDCRegisterMatchers()
23475 if (xmlSchemaIDCAddStateObject(vctxt, matcher, in xmlSchemaIDCRegisterMatchers()
23485 xmlSchemaIDCFillNodeTables(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaIDCFillNodeTables() argument
23509 if ((! vctxt->createIDCNodeTables) && in xmlSchemaIDCFillNodeTables()
23511 (matcher->aidc->keyrefDepth > vctxt->depth))) in xmlSchemaIDCFillNodeTables()
23519 bind = xmlSchemaIDCAcquireBinding(vctxt, matcher); in xmlSchemaIDCFillNodeTables()
23687 xmlSchemaBubbleIDCNodeTables(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaBubbleIDCNodeTables() argument
23695 bind = vctxt->inode->idcTable; in xmlSchemaBubbleIDCNodeTables()
23701 parTable = &(vctxt->elemInfos[vctxt->depth -1]->idcTable); in xmlSchemaBubbleIDCNodeTables()
23713 if (! vctxt->createIDCNodeTables) { in xmlSchemaBubbleIDCNodeTables()
23714 aidc = vctxt->aidcs; in xmlSchemaBubbleIDCNodeTables()
23718 (aidc->keyrefDepth >= vctxt->depth)) { in xmlSchemaBubbleIDCNodeTables()
23913 if (! vctxt->psviExposeIDCNodeTables) { in xmlSchemaBubbleIDCNodeTables()
23982 xmlSchemaCheckCVCIDCKeyRef(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaCheckCVCIDCKeyRef() argument
23987 matcher = vctxt->inode->idcMatchers; in xmlSchemaCheckCVCIDCKeyRef()
24006 bind = vctxt->inode->idcTable; in xmlSchemaCheckCVCIDCKeyRef()
24023 xmlSchemaHashKeySequence(vctxt, &value, keys, nbFields); in xmlSchemaCheckCVCIDCKeyRef()
24044 xmlSchemaHashKeySequence(vctxt, &value, refKeys, nbFields); in xmlSchemaCheckCVCIDCKeyRef()
24087 xmlSchemaKeyrefErr(vctxt, in xmlSchemaCheckCVCIDCKeyRef()
24092 xmlSchemaFormatIDCKeySequence(vctxt, &str, in xmlSchemaCheckCVCIDCKeyRef()
24106 xmlSchemaKeyrefErr(vctxt, in xmlSchemaCheckCVCIDCKeyRef()
24110 xmlSchemaFormatIDCKeySequence(vctxt, &str, in xmlSchemaCheckCVCIDCKeyRef()
24134 xmlSchemaGetFreshAttrInfo(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaGetFreshAttrInfo() argument
24140 if (vctxt->attrInfos == NULL) { in xmlSchemaGetFreshAttrInfo()
24141 vctxt->attrInfos = (xmlSchemaAttrInfoPtr *) in xmlSchemaGetFreshAttrInfo()
24143 vctxt->sizeAttrInfos = 1; in xmlSchemaGetFreshAttrInfo()
24144 if (vctxt->attrInfos == NULL) { in xmlSchemaGetFreshAttrInfo()
24145 xmlSchemaVErrMemory(vctxt, in xmlSchemaGetFreshAttrInfo()
24149 } else if (vctxt->sizeAttrInfos <= vctxt->nbAttrInfos) { in xmlSchemaGetFreshAttrInfo()
24150 vctxt->sizeAttrInfos++; in xmlSchemaGetFreshAttrInfo()
24151 vctxt->attrInfos = (xmlSchemaAttrInfoPtr *) in xmlSchemaGetFreshAttrInfo()
24152 xmlRealloc(vctxt->attrInfos, in xmlSchemaGetFreshAttrInfo()
24153 vctxt->sizeAttrInfos * sizeof(xmlSchemaAttrInfoPtr)); in xmlSchemaGetFreshAttrInfo()
24154 if (vctxt->attrInfos == NULL) { in xmlSchemaGetFreshAttrInfo()
24155 xmlSchemaVErrMemory(vctxt, in xmlSchemaGetFreshAttrInfo()
24160 iattr = vctxt->attrInfos[vctxt->nbAttrInfos++]; in xmlSchemaGetFreshAttrInfo()
24175 xmlSchemaVErrMemory(vctxt, "creating new attribute info", NULL); in xmlSchemaGetFreshAttrInfo()
24180 vctxt->attrInfos[vctxt->nbAttrInfos++] = iattr; in xmlSchemaGetFreshAttrInfo()
24186 xmlSchemaValidatorPushAttribute(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaValidatorPushAttribute() argument
24197 attr = xmlSchemaGetFreshAttrInfo(vctxt); in xmlSchemaValidatorPushAttribute()
24248 xmlSchemaClearElemInfo(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaClearElemInfo() argument
24278 xmlSchemaIDCReleaseMatcherList(vctxt, ielem->idcMatchers); in xmlSchemaClearElemInfo()
24313 xmlSchemaGetFreshElemInfo(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaGetFreshElemInfo() argument
24317 if (vctxt->depth > vctxt->sizeElemInfos) { in xmlSchemaGetFreshElemInfo()
24322 if (vctxt->elemInfos == NULL) { in xmlSchemaGetFreshElemInfo()
24323 vctxt->elemInfos = (xmlSchemaNodeInfoPtr *) in xmlSchemaGetFreshElemInfo()
24325 if (vctxt->elemInfos == NULL) { in xmlSchemaGetFreshElemInfo()
24326 xmlSchemaVErrMemory(vctxt, in xmlSchemaGetFreshElemInfo()
24330 memset(vctxt->elemInfos, 0, 10 * sizeof(xmlSchemaNodeInfoPtr)); in xmlSchemaGetFreshElemInfo()
24331 vctxt->sizeElemInfos = 10; in xmlSchemaGetFreshElemInfo()
24332 } else if (vctxt->sizeElemInfos <= vctxt->depth) { in xmlSchemaGetFreshElemInfo()
24333 int i = vctxt->sizeElemInfos; in xmlSchemaGetFreshElemInfo()
24335 vctxt->sizeElemInfos *= 2; in xmlSchemaGetFreshElemInfo()
24336 vctxt->elemInfos = (xmlSchemaNodeInfoPtr *) in xmlSchemaGetFreshElemInfo()
24337 xmlRealloc(vctxt->elemInfos, vctxt->sizeElemInfos * in xmlSchemaGetFreshElemInfo()
24339 if (vctxt->elemInfos == NULL) { in xmlSchemaGetFreshElemInfo()
24340 xmlSchemaVErrMemory(vctxt, in xmlSchemaGetFreshElemInfo()
24348 for (; i < vctxt->sizeElemInfos; i++) in xmlSchemaGetFreshElemInfo()
24349 vctxt->elemInfos[i] = NULL; in xmlSchemaGetFreshElemInfo()
24351 info = vctxt->elemInfos[vctxt->depth]; in xmlSchemaGetFreshElemInfo()
24357 xmlSchemaVErrMemory(vctxt, in xmlSchemaGetFreshElemInfo()
24361 vctxt->elemInfos[vctxt->depth] = info; in xmlSchemaGetFreshElemInfo()
24371 info->depth = vctxt->depth; in xmlSchemaGetFreshElemInfo()
24376 #define ACTIVATE_ATTRIBUTE(item) vctxt->inode = (xmlSchemaNodeInfoPtr) item;
24377 #define ACTIVATE_ELEM vctxt->inode = vctxt->elemInfos[vctxt->depth];
24378 #define ACTIVATE_PARENT_ELEM vctxt->inode = vctxt->elemInfos[vctxt->depth -1];
24625 xmlSchemaValidateQName(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaValidateQName() argument
24655 nsName = xmlSchemaLookupNamespace(vctxt, prefix); in xmlSchemaValidateQName()
24665 xmlSchemaCustomErr(ACTXT_CAST vctxt, ret, NULL, in xmlSchemaValidateQName()
25033 xmlSchemaVExpandQName(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaVExpandQName() argument
25049 xmlSchemaSimpleTypeErr(ACTXT_CAST vctxt, in xmlSchemaVExpandQName()
25064 *localName = xmlDictLookup(vctxt->dict, value, -1); in xmlSchemaVExpandQName()
25066 *localName = xmlDictLookup(vctxt->dict, local, -1); in xmlSchemaVExpandQName()
25070 *nsName = xmlSchemaLookupNamespace(vctxt, prefix); in xmlSchemaVExpandQName()
25078 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaVExpandQName()
25092 xmlSchemaProcessXSIType(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaProcessXSIType() argument
25121 ret = xmlSchemaVExpandQName(vctxt, iattr->value, in xmlSchemaProcessXSIType()
25136 *localType = xmlSchemaGetType(vctxt->schema, local, nsName); in xmlSchemaProcessXSIType()
25140 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaProcessXSIType()
25147 ret = vctxt->err; in xmlSchemaProcessXSIType()
25194 if (xmlSchemaCheckCOSDerivedOK(ACTXT_CAST vctxt, *localType, in xmlSchemaProcessXSIType()
25198 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaProcessXSIType()
25208 ret = vctxt->err; in xmlSchemaProcessXSIType()
25222 xmlSchemaValidateElemDecl(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaValidateElemDecl() argument
25224 xmlSchemaElementPtr elemDecl = vctxt->inode->decl; in xmlSchemaValidateElemDecl()
25233 return (vctxt->err); in xmlSchemaValidateElemDecl()
25242 return (vctxt->err); in xmlSchemaValidateElemDecl()
25249 if (vctxt->nbAttrInfos != 0) { in xmlSchemaValidateElemDecl()
25256 iattr = xmlSchemaGetMetaAttrInfo(vctxt, in xmlSchemaValidateElemDecl()
25264 ACTXT_CAST vctxt, NULL, in xmlSchemaValidateElemDecl()
25295 vctxt->inode->flags |= in xmlSchemaValidateElemDecl()
25305 iattr = xmlSchemaGetMetaAttrInfo(vctxt, in xmlSchemaValidateElemDecl()
25310 ret = xmlSchemaProcessXSIType(vctxt, iattr, &localType, in xmlSchemaValidateElemDecl()
25322 vctxt->inode->flags |= XML_SCHEMA_ELEM_INFO_LOCAL_TYPE; in xmlSchemaValidateElemDecl()
25331 (xmlSchemaIDCRegisterMatchers(vctxt, elemDecl) == -1)) in xmlSchemaValidateElemDecl()
25344 vctxt->inode->typeDef = actualType; in xmlSchemaValidateElemDecl()
25350 xmlSchemaVAttributesSimple(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaVAttributesSimple() argument
25362 if (vctxt->nbAttrInfos == 0) in xmlSchemaVAttributesSimple()
25364 for (i = 0; i < vctxt->nbAttrInfos; i++) { in xmlSchemaVAttributesSimple()
25365 iattr = vctxt->attrInfos[i]; in xmlSchemaVAttributesSimple()
25368 xmlSchemaIllegalAttrErr(ACTXT_CAST vctxt, in xmlSchemaVAttributesSimple()
25381 xmlSchemaClearAttrInfos(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaClearAttrInfos() argument
25386 if (vctxt->nbAttrInfos == 0) in xmlSchemaClearAttrInfos()
25388 for (i = 0; i < vctxt->nbAttrInfos; i++) { in xmlSchemaClearAttrInfos()
25389 attr = vctxt->attrInfos[i]; in xmlSchemaClearAttrInfos()
25406 vctxt->nbAttrInfos = 0; in xmlSchemaClearAttrInfos()
25420 xmlSchemaVAttributesComplex(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaVAttributesComplex() argument
25422 xmlSchemaTypePtr type = vctxt->inode->typeDef; in xmlSchemaVAttributesComplex()
25454 nbAttrs = vctxt->nbAttrInfos; in xmlSchemaVAttributesComplex()
25464 iattr = vctxt->attrInfos[j]; in xmlSchemaVAttributesComplex()
25517 tmpiattr = xmlSchemaGetFreshAttrInfo(vctxt); in xmlSchemaVAttributesComplex()
25533 tmpiattr = xmlSchemaGetFreshAttrInfo(vctxt); in xmlSchemaVAttributesComplex()
25549 if (vctxt->nbAttrInfos == 0) in xmlSchemaVAttributesComplex()
25560 iattr = vctxt->attrInfos[i]; in xmlSchemaVAttributesComplex()
25603 iattr->decl = xmlSchemaGetAttributeDecl(vctxt->schema, in xmlSchemaVAttributesComplex()
25669 if (vctxt->nbAttrInfos == 0) in xmlSchemaVAttributesComplex()
25676 if (vctxt->options & XML_SCHEMA_VAL_VC_I_CREATE) { in xmlSchemaVAttributesComplex()
25677 xmlSchemaNodeInfoPtr ielem = vctxt->elemInfos[vctxt->depth]; in xmlSchemaVAttributesComplex()
25684 for (i = 0; i < vctxt->nbAttrInfos; i++) { in xmlSchemaVAttributesComplex()
25685 iattr = vctxt->attrInfos[i]; in xmlSchemaVAttributesComplex()
25706 if (vctxt->xpathStates != NULL) { in xmlSchemaVAttributesComplex()
25710 xpathRes = xmlSchemaXPathEvaluate(vctxt, in xmlSchemaVAttributesComplex()
25805 ns = xmlNewNs(vctxt->validationRoot, in xmlSchemaVAttributesComplex()
25827 if (vctxt->value != NULL) { in xmlSchemaVAttributesComplex()
25831 xmlSchemaFreeValue(vctxt->value); in xmlSchemaVAttributesComplex()
25832 vctxt->value = NULL; in xmlSchemaVAttributesComplex()
25859 ACTXT_CAST vctxt, in xmlSchemaVAttributesComplex()
25864 ACTXT_CAST vctxt, in xmlSchemaVAttributesComplex()
25946 if (xmlSchemaXPathProcessHistory(vctxt, in xmlSchemaVAttributesComplex()
25947 vctxt->depth +1) == -1) { in xmlSchemaVAttributesComplex()
25952 } else if (vctxt->xpathStates != NULL) in xmlSchemaVAttributesComplex()
25953 xmlSchemaXPathPop(vctxt); in xmlSchemaVAttributesComplex()
25959 for (i = 0; i < vctxt->nbAttrInfos; i++) { in xmlSchemaVAttributesComplex()
25960 iattr = vctxt->attrInfos[i]; in xmlSchemaVAttributesComplex()
25971 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaVAttributesComplex()
25986 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaVAttributesComplex()
26005 xmlSchemaIllegalAttrErr(ACTXT_CAST vctxt, in xmlSchemaVAttributesComplex()
26008 xmlSchemaIllegalAttrErr(ACTXT_CAST vctxt, in xmlSchemaVAttributesComplex()
26025 xmlSchemaValidateElemWildcard(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaValidateElemWildcard() argument
26028 xmlSchemaWildcardPtr wild = (xmlSchemaWildcardPtr) vctxt->inode->decl; in xmlSchemaValidateElemWildcard()
26051 decl = xmlSchemaGetElem(vctxt->schema, in xmlSchemaValidateElemWildcard()
26052 vctxt->inode->localName, vctxt->inode->nsName); in xmlSchemaValidateElemWildcard()
26054 vctxt->inode->decl = decl; in xmlSchemaValidateElemWildcard()
26063 return (vctxt->err); in xmlSchemaValidateElemWildcard()
26065 if (vctxt->nbAttrInfos != 0) { in xmlSchemaValidateElemWildcard()
26073 iattr = xmlSchemaGetMetaAttrInfo(vctxt, in xmlSchemaValidateElemWildcard()
26076 if (xmlSchemaProcessXSIType(vctxt, iattr, in xmlSchemaValidateElemWildcard()
26077 &(vctxt->inode->typeDef), NULL) == -1) { in xmlSchemaValidateElemWildcard()
26094 vctxt->inode->typeDef = in xmlSchemaValidateElemWildcard()
26107 xmlSchemaCheckCOSValidDefault(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaCheckCOSValidDefault() argument
26112 xmlSchemaNodeInfoPtr inode = vctxt->inode; in xmlSchemaCheckCOSValidDefault()
26155 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST vctxt, in xmlSchemaCheckCOSValidDefault()
26160 ret = xmlSchemaVCheckCVCSimpleType(ACTXT_CAST vctxt, in xmlSchemaCheckCOSValidDefault()
26200 xmlSchemaValidatorPushElem(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaValidatorPushElem() argument
26202 vctxt->inode = xmlSchemaGetFreshElemInfo(vctxt); in xmlSchemaValidatorPushElem()
26203 if (vctxt->inode == NULL) { in xmlSchemaValidatorPushElem()
26208 vctxt->nbAttrInfos = 0; in xmlSchemaValidatorPushElem()
26213 xmlSchemaVCheckINodeDataType(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaVCheckINodeDataType() argument
26220 ACTXT_CAST vctxt, NULL, in xmlSchemaVCheckINodeDataType()
26224 ACTXT_CAST vctxt, NULL, in xmlSchemaVCheckINodeDataType()
26234 xmlSchemaValidatorPopElem(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaValidatorPopElem() argument
26237 xmlSchemaNodeInfoPtr inode = vctxt->inode; in xmlSchemaValidatorPopElem()
26239 if (vctxt->nbAttrInfos != 0) in xmlSchemaValidatorPopElem()
26240 xmlSchemaClearAttrInfos(vctxt); in xmlSchemaValidatorPopElem()
26247 vctxt->skipDepth = vctxt->depth -1; in xmlSchemaValidatorPopElem()
26281 xmlSchemaVContentModelCallback, vctxt); in xmlSchemaValidatorPopElem()
26320 xmlSchemaComplexTypeErr(ACTXT_CAST vctxt, in xmlSchemaValidatorPopElem()
26351 if (vctxt->value != NULL) { in xmlSchemaValidatorPopElem()
26352 xmlSchemaFreeValue(vctxt->value); in xmlSchemaValidatorPopElem()
26353 vctxt->value = NULL; in xmlSchemaValidatorPopElem()
26363 ret = xmlSchemaVCheckINodeDataType(vctxt, in xmlSchemaValidatorPopElem()
26366 ret = xmlSchemaVCheckINodeDataType(vctxt, in xmlSchemaValidatorPopElem()
26405 ret = xmlSchemaCheckCOSValidDefault(vctxt, in xmlSchemaValidatorPopElem()
26430 ret = xmlSchemaVCheckINodeDataType(vctxt, in xmlSchemaValidatorPopElem()
26433 ret = xmlSchemaVCheckINodeDataType(vctxt, in xmlSchemaValidatorPopElem()
26450 if ((vctxt->options & XML_SCHEMA_VAL_VC_I_CREATE) && in xmlSchemaValidatorPopElem()
26487 ret = xmlSchemaVCheckINodeDataType(vctxt, in xmlSchemaValidatorPopElem()
26502 ret = xmlSchemaVCheckINodeDataType(vctxt, in xmlSchemaValidatorPopElem()
26558 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaValidatorPopElem()
26581 xmlSchemaCustomErr(ACTXT_CAST vctxt, in xmlSchemaValidatorPopElem()
26595 if (vctxt->depth < 0) { in xmlSchemaValidatorPopElem()
26599 if (vctxt->depth == vctxt->skipDepth) in xmlSchemaValidatorPopElem()
26600 vctxt->skipDepth = -1; in xmlSchemaValidatorPopElem()
26605 (xmlSchemaXPathProcessHistory(vctxt, vctxt->depth) == -1)) in xmlSchemaValidatorPopElem()
26624 (vctxt->hasKeyrefs || vctxt->createIDCNodeTables)) in xmlSchemaValidatorPopElem()
26626 if (xmlSchemaIDCFillNodeTables(vctxt, inode) == -1) in xmlSchemaValidatorPopElem()
26632 if (vctxt->inode->hasKeyrefs) in xmlSchemaValidatorPopElem()
26633 if (xmlSchemaCheckCVCIDCKeyRef(vctxt) == -1) in xmlSchemaValidatorPopElem()
26645 if ((vctxt->depth > 0) && in xmlSchemaValidatorPopElem()
26646 (vctxt->hasKeyrefs || vctxt->createIDCNodeTables)) in xmlSchemaValidatorPopElem()
26651 if (xmlSchemaBubbleIDCNodeTables(vctxt) == -1) in xmlSchemaValidatorPopElem()
26660 xmlSchemaClearElemInfo(vctxt, inode); in xmlSchemaValidatorPopElem()
26664 if (vctxt->depth == 0) { in xmlSchemaValidatorPopElem()
26665 vctxt->depth--; in xmlSchemaValidatorPopElem()
26666 vctxt->inode = NULL; in xmlSchemaValidatorPopElem()
26672 if (vctxt->aidcs != NULL) { in xmlSchemaValidatorPopElem()
26673 xmlSchemaIDCAugPtr aidc = vctxt->aidcs; in xmlSchemaValidatorPopElem()
26675 if (aidc->keyrefDepth == vctxt->depth) { in xmlSchemaValidatorPopElem()
26686 vctxt->depth--; in xmlSchemaValidatorPopElem()
26687 vctxt->inode = vctxt->elemInfos[vctxt->depth]; in xmlSchemaValidatorPopElem()
26695 vctxt->err = -1; in xmlSchemaValidatorPopElem()
26704 xmlSchemaValidateChildElem(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaValidateChildElem() argument
26710 if (vctxt->depth <= 0) { in xmlSchemaValidateChildElem()
26715 pielem = vctxt->elemInfos[vctxt->depth -1]; in xmlSchemaValidateChildElem()
26742 vctxt->inode->decl = xmlSchemaGetElem(vctxt->schema, in xmlSchemaValidateChildElem()
26743 vctxt->inode->localName, in xmlSchemaValidateChildElem()
26744 vctxt->inode->nsName); in xmlSchemaValidateChildElem()
26746 if (vctxt->inode->decl == NULL) { in xmlSchemaValidateChildElem()
26752 iattr = xmlSchemaGetMetaAttrInfo(vctxt, in xmlSchemaValidateChildElem()
26755 ret = xmlSchemaProcessXSIType(vctxt, iattr, in xmlSchemaValidateChildElem()
26756 &(vctxt->inode->typeDef), NULL); in xmlSchemaValidateChildElem()
26777 vctxt->inode->typeDef = in xmlSchemaValidateChildElem()
26829 xmlSchemaVContentModelCallback, vctxt); in xmlSchemaValidateChildElem()
26851 vctxt->inode->localName, in xmlSchemaValidateChildElem()
26852 vctxt->inode->nsName, in xmlSchemaValidateChildElem()
26853 vctxt->inode); in xmlSchemaValidateChildElem()
26858 vctxt->inode->localName, pielem->localName); in xmlSchemaValidateChildElem()
26862 vctxt->inode->localName, pielem->localName); in xmlSchemaValidateChildElem()
26864 if (vctxt->err == XML_SCHEMAV_INTERNAL) { in xmlSchemaValidateChildElem()
26872 xmlSchemaComplexTypeErr(ACTXT_CAST vctxt, in xmlSchemaValidateChildElem()
26876 ret = vctxt->err; in xmlSchemaValidateChildElem()
26905 ret = vctxt->err; in xmlSchemaValidateChildElem()
26918 vctxt->skipDepth = vctxt->depth; in xmlSchemaValidateChildElem()
26919 vctxt->inode->flags |= XML_SCHEMA_NODE_INFO_ERR_NOT_EXPECTED; in xmlSchemaValidateChildElem()
26929 xmlSchemaVPushText(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaVPushText() argument
26944 if (INODE_NILLED(vctxt->inode)) { in xmlSchemaVPushText()
26953 return (vctxt->err); in xmlSchemaVPushText()
26960 if (vctxt->inode->typeDef->contentType == in xmlSchemaVPushText()
26965 return (vctxt->err); in xmlSchemaVPushText()
26968 if (vctxt->inode->typeDef->contentType == in xmlSchemaVPushText()
26983 return (vctxt->err); in xmlSchemaVPushText()
26995 if ((vctxt->inode->typeDef->contentType == XML_SCHEMA_CONTENT_MIXED) && in xmlSchemaVPushText()
26996 ((vctxt->inode->decl == NULL) || in xmlSchemaVPushText()
26997 (vctxt->inode->decl->value == NULL))) in xmlSchemaVPushText()
27000 if (vctxt->inode->value == NULL) { in xmlSchemaVPushText()
27009 vctxt->inode->value = value; in xmlSchemaVPushText()
27016 vctxt->inode->value = value; in xmlSchemaVPushText()
27019 vctxt->inode->flags |= in xmlSchemaVPushText()
27028 vctxt->inode->value = BAD_CAST xmlStrndup(value, len); in xmlSchemaVPushText()
27030 vctxt->inode->value = BAD_CAST xmlStrdup(value); in xmlSchemaVPushText()
27031 vctxt->inode->flags |= in xmlSchemaVPushText()
27043 if (vctxt->inode->flags & XML_SCHEMA_NODE_INFO_FLAG_OWNED_VALUES) { in xmlSchemaVPushText()
27044 vctxt->inode->value = BAD_CAST xmlStrncat( in xmlSchemaVPushText()
27045 (xmlChar *) vctxt->inode->value, value, len); in xmlSchemaVPushText()
27047 vctxt->inode->value = in xmlSchemaVPushText()
27048 BAD_CAST xmlStrncatNew(vctxt->inode->value, value, len); in xmlSchemaVPushText()
27049 vctxt->inode->flags |= XML_SCHEMA_NODE_INFO_FLAG_OWNED_VALUES; in xmlSchemaVPushText()
27057 xmlSchemaValidateElem(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaValidateElem() argument
27061 if ((vctxt->skipDepth != -1) && in xmlSchemaValidateElem()
27062 (vctxt->depth >= vctxt->skipDepth)) { in xmlSchemaValidateElem()
27067 if (vctxt->xsiAssemble) { in xmlSchemaValidateElem()
27078 ret = xmlSchemaAssembleByXSI(vctxt); in xmlSchemaValidateElem()
27082 vctxt->skipDepth = 0; in xmlSchemaValidateElem()
27089 xmlHashScan(vctxt->schema->schemasImports, xmlSchemaAugmentImportedIDC, in xmlSchemaValidateElem()
27090 vctxt); in xmlSchemaValidateElem()
27092 if (vctxt->depth > 0) { in xmlSchemaValidateElem()
27097 ret = xmlSchemaValidateChildElem(vctxt); in xmlSchemaValidateElem()
27106 if (vctxt->depth == vctxt->skipDepth) in xmlSchemaValidateElem()
27108 if ((vctxt->inode->decl == NULL) && in xmlSchemaValidateElem()
27109 (vctxt->inode->typeDef == NULL)) { in xmlSchemaValidateElem()
27119 vctxt->inode->decl = xmlSchemaGetElem(vctxt->schema, in xmlSchemaValidateElem()
27120 vctxt->inode->localName, in xmlSchemaValidateElem()
27121 vctxt->inode->nsName); in xmlSchemaValidateElem()
27122 if (vctxt->inode->decl == NULL) { in xmlSchemaValidateElem()
27131 if (vctxt->inode->decl == NULL) in xmlSchemaValidateElem()
27134 if (vctxt->inode->decl->type == XML_SCHEMA_TYPE_ANY) { in xmlSchemaValidateElem()
27139 ret = xmlSchemaValidateElemWildcard(vctxt, &skip); in xmlSchemaValidateElem()
27149 vctxt->skipDepth = vctxt->depth; in xmlSchemaValidateElem()
27156 if (vctxt->inode->decl->type != XML_SCHEMA_TYPE_ELEMENT) { in xmlSchemaValidateElem()
27160 vctxt->inode->decl = NULL; in xmlSchemaValidateElem()
27167 ret = xmlSchemaValidateElemDecl(vctxt); in xmlSchemaValidateElem()
27181 if (vctxt->inode->typeDef == NULL) { in xmlSchemaValidateElem()
27182 vctxt->inode->flags |= XML_SCHEMA_NODE_INFO_ERR_BAD_TYPE; in xmlSchemaValidateElem()
27188 if (vctxt->inode->typeDef->flags & XML_SCHEMAS_TYPE_ABSTRACT) { in xmlSchemaValidateElem()
27189 vctxt->inode->flags |= XML_SCHEMA_NODE_INFO_ERR_BAD_TYPE; in xmlSchemaValidateElem()
27200 if (vctxt->xpathStates != NULL) { in xmlSchemaValidateElem()
27201 ret = xmlSchemaXPathEvaluate(vctxt, XML_ELEMENT_NODE); in xmlSchemaValidateElem()
27202 vctxt->inode->appliedXPath = 1; in xmlSchemaValidateElem()
27212 if (WXS_IS_COMPLEX(vctxt->inode->typeDef)) { in xmlSchemaValidateElem()
27213 if ((vctxt->nbAttrInfos != 0) || in xmlSchemaValidateElem()
27214 (vctxt->inode->typeDef->attrUses != NULL)) { in xmlSchemaValidateElem()
27216 ret = xmlSchemaVAttributesComplex(vctxt); in xmlSchemaValidateElem()
27218 } else if (vctxt->nbAttrInfos != 0) { in xmlSchemaValidateElem()
27220 ret = xmlSchemaVAttributesSimple(vctxt); in xmlSchemaValidateElem()
27225 if (vctxt->nbAttrInfos != 0) in xmlSchemaValidateElem()
27226 xmlSchemaClearAttrInfos(vctxt); in xmlSchemaValidateElem()
27239 vctxt->skipDepth = vctxt->depth; in xmlSchemaValidateElem()
27247 xmlSchemaVReaderWalk(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaVReaderWalk() argument
27253 vctxt->depth = -1; in xmlSchemaVReaderWalk()
27254 ret = xmlTextReaderRead(vctxt->reader); in xmlSchemaVReaderWalk()
27259 nodeType = xmlTextReaderNodeType(vctxt->reader); in xmlSchemaVReaderWalk()
27262 ret = xmlTextReaderRead(vctxt->reader); in xmlSchemaVReaderWalk()
27269 depth = xmlTextReaderDepth(vctxt->reader); in xmlSchemaVReaderWalk()
27270 nodeType = xmlTextReaderNodeType(vctxt->reader); in xmlSchemaVReaderWalk()
27274 vctxt->depth++; in xmlSchemaVReaderWalk()
27275 if (xmlSchemaValidatorPushElem(vctxt) == -1) { in xmlSchemaVReaderWalk()
27280 ielem = vctxt->inode; in xmlSchemaVReaderWalk()
27281 ielem->localName = xmlTextReaderLocalName(vctxt->reader); in xmlSchemaVReaderWalk()
27282 ielem->nsName = xmlTextReaderNamespaceUri(vctxt->reader); in xmlSchemaVReaderWalk()
27287 ret = xmlTextReaderIsEmptyElement(vctxt->reader); in xmlSchemaVReaderWalk()
27299 vctxt->nbAttrInfos = 0; in xmlSchemaVReaderWalk()
27300 ret = xmlTextReaderMoveToFirstAttribute(vctxt->reader); in xmlSchemaVReaderWalk()
27312 if (xmlSchemaValidatorPushAttribute(vctxt, NULL, in xmlSchemaVReaderWalk()
27313 (const xmlChar *) xmlTextReaderLocalName(vctxt->reader), in xmlSchemaVReaderWalk()
27314 xmlTextReaderNamespaceUri(vctxt->reader), 1, in xmlSchemaVReaderWalk()
27315 xmlTextReaderValue(vctxt->reader), 1) == -1) { in xmlSchemaVReaderWalk()
27321 ret = xmlTextReaderMoveToNextAttribute(vctxt->reader); in xmlSchemaVReaderWalk()
27331 ret = xmlTextReaderMoveToElement(vctxt->reader); in xmlSchemaVReaderWalk()
27341 ret= xmlSchemaValidateElem(vctxt); in xmlSchemaVReaderWalk()
27350 if (vctxt->depth == vctxt->skipDepth) { in xmlSchemaVReaderWalk()
27356 ret = xmlTextReaderRead(vctxt->reader); in xmlSchemaVReaderWalk()
27357 curDepth = xmlTextReaderDepth(vctxt->reader); in xmlSchemaVReaderWalk()
27359 ret = xmlTextReaderRead(vctxt->reader); in xmlSchemaVReaderWalk()
27360 curDepth = xmlTextReaderDepth(vctxt->reader); in xmlSchemaVReaderWalk()
27383 ret = xmlSchemaValidatorPopElem(vctxt); in xmlSchemaVReaderWalk()
27392 if (vctxt->depth >= 0) in xmlSchemaVReaderWalk()
27393 ielem = vctxt->inode; in xmlSchemaVReaderWalk()
27408 value = xmlTextReaderValue(vctxt->reader); in xmlSchemaVReaderWalk()
27409 ret = xmlSchemaVPushText(vctxt, nodeType, BAD_CAST value, in xmlSchemaVReaderWalk()
27428 ret = xmlTextReaderRead(vctxt->reader); in xmlSchemaVReaderWalk()
27452 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctx; in xmlSchemaSAXHandleText() local
27454 if (vctxt->depth < 0) in xmlSchemaSAXHandleText()
27456 if ((vctxt->skipDepth != -1) && (vctxt->depth >= vctxt->skipDepth)) in xmlSchemaSAXHandleText()
27458 if (vctxt->inode->flags & XML_SCHEMA_ELEM_INFO_EMPTY) in xmlSchemaSAXHandleText()
27459 vctxt->inode->flags ^= XML_SCHEMA_ELEM_INFO_EMPTY; in xmlSchemaSAXHandleText()
27460 if (xmlSchemaVPushText(vctxt, XML_TEXT_NODE, ch, len, in xmlSchemaSAXHandleText()
27464 vctxt->err = -1; in xmlSchemaSAXHandleText()
27465 xmlStopParser(vctxt->parserCtxt); in xmlSchemaSAXHandleText()
27477 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctx; in xmlSchemaSAXHandleCDataSection() local
27479 if (vctxt->depth < 0) in xmlSchemaSAXHandleCDataSection()
27481 if ((vctxt->skipDepth != -1) && (vctxt->depth >= vctxt->skipDepth)) in xmlSchemaSAXHandleCDataSection()
27483 if (vctxt->inode->flags & XML_SCHEMA_ELEM_INFO_EMPTY) in xmlSchemaSAXHandleCDataSection()
27484 vctxt->inode->flags ^= XML_SCHEMA_ELEM_INFO_EMPTY; in xmlSchemaSAXHandleCDataSection()
27485 if (xmlSchemaVPushText(vctxt, XML_CDATA_SECTION_NODE, ch, len, in xmlSchemaSAXHandleCDataSection()
27489 vctxt->err = -1; in xmlSchemaSAXHandleCDataSection()
27490 xmlStopParser(vctxt->parserCtxt); in xmlSchemaSAXHandleCDataSection()
27498 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctx; in xmlSchemaSAXHandleReference() local
27500 if (vctxt->depth < 0) in xmlSchemaSAXHandleReference()
27502 if ((vctxt->skipDepth != -1) && (vctxt->depth >= vctxt->skipDepth)) in xmlSchemaSAXHandleReference()
27519 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctx; in xmlSchemaSAXHandleStartElementNs() local
27530 vctxt->depth++; in xmlSchemaSAXHandleStartElementNs()
27531 if ((vctxt->skipDepth != -1) && (vctxt->depth >= vctxt->skipDepth)) in xmlSchemaSAXHandleStartElementNs()
27536 if (xmlSchemaValidatorPushElem(vctxt) == -1) { in xmlSchemaSAXHandleStartElementNs()
27541 ielem = vctxt->inode; in xmlSchemaSAXHandleStartElementNs()
27545 ielem->nodeLine = xmlSAX2GetLineNumber(vctxt->parserCtxt); in xmlSchemaSAXHandleStartElementNs()
27566 xmlSchemaVErrMemory(vctxt, in xmlSchemaSAXHandleStartElementNs()
27580 xmlSchemaVErrMemory(vctxt, in xmlSchemaSAXHandleStartElementNs()
27620 xmlSchemaVErrMemory(vctxt, in xmlSchemaSAXHandleStartElementNs()
27643 ret = xmlSchemaValidatorPushAttribute(vctxt, in xmlSchemaSAXHandleStartElementNs()
27656 ret = xmlSchemaValidateElem(vctxt); in xmlSchemaSAXHandleStartElementNs()
27669 vctxt->err = -1; in xmlSchemaSAXHandleStartElementNs()
27670 xmlStopParser(vctxt->parserCtxt); in xmlSchemaSAXHandleStartElementNs()
27680 xmlSchemaValidCtxtPtr vctxt = (xmlSchemaValidCtxtPtr) ctx; in xmlSchemaSAXHandleEndElementNs() local
27686 if (vctxt->skipDepth != -1) { in xmlSchemaSAXHandleEndElementNs()
27687 if (vctxt->depth > vctxt->skipDepth) { in xmlSchemaSAXHandleEndElementNs()
27688 vctxt->depth--; in xmlSchemaSAXHandleEndElementNs()
27691 vctxt->skipDepth = -1; in xmlSchemaSAXHandleEndElementNs()
27696 if ((!xmlStrEqual(vctxt->inode->localName, localname)) || in xmlSchemaSAXHandleEndElementNs()
27697 (!xmlStrEqual(vctxt->inode->nsName, URI))) { in xmlSchemaSAXHandleEndElementNs()
27701 res = xmlSchemaValidatorPopElem(vctxt); in xmlSchemaSAXHandleEndElementNs()
27713 vctxt->err = -1; in xmlSchemaSAXHandleEndElementNs()
27714 xmlStopParser(vctxt->parserCtxt); in xmlSchemaSAXHandleEndElementNs()
27759 xmlSchemaValidateSetFilename(xmlSchemaValidCtxtPtr vctxt, const char *filename) { in xmlSchemaValidateSetFilename() argument
27760 if (vctxt == NULL) in xmlSchemaValidateSetFilename()
27762 if (vctxt->filename != NULL) in xmlSchemaValidateSetFilename()
27763 xmlFree(vctxt->filename); in xmlSchemaValidateSetFilename()
27765 vctxt->filename = (char *) xmlStrdup((const xmlChar *) filename); in xmlSchemaValidateSetFilename()
27767 vctxt->filename = NULL; in xmlSchemaValidateSetFilename()
27778 xmlSchemaClearValidCtxt(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaClearValidCtxt() argument
27780 if (vctxt == NULL) in xmlSchemaClearValidCtxt()
27788 vctxt->flags = 0; in xmlSchemaClearValidCtxt()
27789 vctxt->validationRoot = NULL; in xmlSchemaClearValidCtxt()
27790 vctxt->doc = NULL; in xmlSchemaClearValidCtxt()
27792 vctxt->reader = NULL; in xmlSchemaClearValidCtxt()
27794 vctxt->hasKeyrefs = 0; in xmlSchemaClearValidCtxt()
27796 if (vctxt->value != NULL) { in xmlSchemaClearValidCtxt()
27797 xmlSchemaFreeValue(vctxt->value); in xmlSchemaClearValidCtxt()
27798 vctxt->value = NULL; in xmlSchemaClearValidCtxt()
27803 if (vctxt->aidcs != NULL) { in xmlSchemaClearValidCtxt()
27804 xmlSchemaIDCAugPtr cur = vctxt->aidcs, next; in xmlSchemaClearValidCtxt()
27810 vctxt->aidcs = NULL; in xmlSchemaClearValidCtxt()
27812 if (vctxt->idcMatcherCache != NULL) { in xmlSchemaClearValidCtxt()
27813 xmlSchemaIDCMatcherPtr matcher = vctxt->idcMatcherCache, tmp; in xmlSchemaClearValidCtxt()
27820 vctxt->idcMatcherCache = NULL; in xmlSchemaClearValidCtxt()
27824 if (vctxt->idcNodes != NULL) { in xmlSchemaClearValidCtxt()
27828 for (i = 0; i < vctxt->nbIdcNodes; i++) { in xmlSchemaClearValidCtxt()
27829 item = vctxt->idcNodes[i]; in xmlSchemaClearValidCtxt()
27833 xmlFree(vctxt->idcNodes); in xmlSchemaClearValidCtxt()
27834 vctxt->idcNodes = NULL; in xmlSchemaClearValidCtxt()
27835 vctxt->nbIdcNodes = 0; in xmlSchemaClearValidCtxt()
27836 vctxt->sizeIdcNodes = 0; in xmlSchemaClearValidCtxt()
27839 if (vctxt->idcKeys != NULL) { in xmlSchemaClearValidCtxt()
27841 for (i = 0; i < vctxt->nbIdcKeys; i++) in xmlSchemaClearValidCtxt()
27842 xmlSchemaIDCFreeKey(vctxt->idcKeys[i]); in xmlSchemaClearValidCtxt()
27843 xmlFree(vctxt->idcKeys); in xmlSchemaClearValidCtxt()
27844 vctxt->idcKeys = NULL; in xmlSchemaClearValidCtxt()
27845 vctxt->nbIdcKeys = 0; in xmlSchemaClearValidCtxt()
27846 vctxt->sizeIdcKeys = 0; in xmlSchemaClearValidCtxt()
27852 if (vctxt->xpathStates != NULL) { in xmlSchemaClearValidCtxt()
27853 xmlSchemaFreeIDCStateObjList(vctxt->xpathStates); in xmlSchemaClearValidCtxt()
27854 vctxt->xpathStates = NULL; in xmlSchemaClearValidCtxt()
27859 if (vctxt->nbAttrInfos != 0) { in xmlSchemaClearValidCtxt()
27860 xmlSchemaClearAttrInfos(vctxt); in xmlSchemaClearValidCtxt()
27865 if (vctxt->elemInfos != NULL) { in xmlSchemaClearValidCtxt()
27869 for (i = 0; i < vctxt->sizeElemInfos; i++) { in xmlSchemaClearValidCtxt()
27870 ei = vctxt->elemInfos[i]; in xmlSchemaClearValidCtxt()
27873 xmlSchemaClearElemInfo(vctxt, ei); in xmlSchemaClearValidCtxt()
27876 xmlSchemaItemListClear(vctxt->nodeQNames); in xmlSchemaClearValidCtxt()
27878 xmlDictFree(vctxt->dict); in xmlSchemaClearValidCtxt()
27883 vctxt->dict = xmlDictCreate(); in xmlSchemaClearValidCtxt()
27885 if (vctxt->filename != NULL) { in xmlSchemaClearValidCtxt()
27886 xmlFree(vctxt->filename); in xmlSchemaClearValidCtxt()
27887 vctxt->filename = NULL; in xmlSchemaClearValidCtxt()
28121 xmlSchemaVDocWalk(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaVDocWalk() argument
28130 if (vctxt->validationRoot != NULL) in xmlSchemaVDocWalk()
28131 valRoot = vctxt->validationRoot; in xmlSchemaVDocWalk()
28133 valRoot = xmlDocGetRootElement(vctxt->doc); in xmlSchemaVDocWalk()
28143 vctxt->depth = -1; in xmlSchemaVDocWalk()
28144 vctxt->validationRoot = valRoot; in xmlSchemaVDocWalk()
28147 if ((vctxt->skipDepth != -1) && (vctxt->depth >= vctxt->skipDepth)) in xmlSchemaVDocWalk()
28154 vctxt->depth++; in xmlSchemaVDocWalk()
28155 if (xmlSchemaValidatorPushElem(vctxt) == -1) in xmlSchemaVDocWalk()
28157 ielem = vctxt->inode; in xmlSchemaVDocWalk()
28169 vctxt->nbAttrInfos = 0; in xmlSchemaVDocWalk()
28177 ret = xmlSchemaValidatorPushAttribute(vctxt, in xmlSchemaVDocWalk()
28197 ret = xmlSchemaValidateElem(vctxt); in xmlSchemaVDocWalk()
28210 if ((vctxt->skipDepth != -1) && in xmlSchemaVDocWalk()
28211 (vctxt->depth >= vctxt->skipDepth)) in xmlSchemaVDocWalk()
28220 ret = xmlSchemaVPushText(vctxt, node->type, node->content, in xmlSchemaVDocWalk()
28260 if (node != vctxt->inode->node) { in xmlSchemaVDocWalk()
28265 ret = xmlSchemaValidatorPopElem(vctxt); in xmlSchemaVDocWalk()
28292 xmlSchemaPreRun(xmlSchemaValidCtxtPtr vctxt) { in xmlSchemaPreRun() argument
28296 vctxt->err = 0; in xmlSchemaPreRun()
28297 vctxt->nberrors = 0; in xmlSchemaPreRun()
28298 vctxt->depth = -1; in xmlSchemaPreRun()
28299 vctxt->skipDepth = -1; in xmlSchemaPreRun()
28300 vctxt->hasKeyrefs = 0; in xmlSchemaPreRun()
28302 vctxt->createIDCNodeTables = 1; in xmlSchemaPreRun()
28304 vctxt->createIDCNodeTables = 0; in xmlSchemaPreRun()
28309 if (vctxt->schema == NULL) { in xmlSchemaPreRun()
28312 vctxt->xsiAssemble = 1; in xmlSchemaPreRun()
28319 if ((vctxt->pctxt == NULL) && in xmlSchemaPreRun()
28320 (xmlSchemaCreatePCtxtOnVCtxt(vctxt) == -1)) in xmlSchemaPreRun()
28322 pctxt = vctxt->pctxt; in xmlSchemaPreRun()
28327 vctxt->schema = xmlSchemaNewSchema(pctxt); in xmlSchemaPreRun()
28328 if (vctxt->schema == NULL) in xmlSchemaPreRun()
28336 pctxt->constructor->mainSchema = vctxt->schema; in xmlSchemaPreRun()
28346 xmlHashScan(vctxt->schema->schemasImports, xmlSchemaAugmentImportedIDC, in xmlSchemaPreRun()
28347 vctxt); in xmlSchemaPreRun()
28353 xmlSchemaPostRun(xmlSchemaValidCtxtPtr vctxt) { in xmlSchemaPostRun() argument
28354 if (vctxt->xsiAssemble) { in xmlSchemaPostRun()
28355 if (vctxt->schema != NULL) { in xmlSchemaPostRun()
28356 xmlSchemaFree(vctxt->schema); in xmlSchemaPostRun()
28357 vctxt->schema = NULL; in xmlSchemaPostRun()
28360 xmlSchemaClearValidCtxt(vctxt); in xmlSchemaPostRun()
28364 xmlSchemaVStart(xmlSchemaValidCtxtPtr vctxt) in xmlSchemaVStart() argument
28368 if (xmlSchemaPreRun(vctxt) < 0) in xmlSchemaVStart()
28371 if (vctxt->doc != NULL) { in xmlSchemaVStart()
28375 ret = xmlSchemaVDocWalk(vctxt); in xmlSchemaVStart()
28377 } else if (vctxt->reader != NULL) { in xmlSchemaVStart()
28382 ret = xmlSchemaVReaderWalk(vctxt); in xmlSchemaVStart()
28385 } else if ((vctxt->sax != NULL) && (vctxt->parserCtxt != NULL)) { in xmlSchemaVStart()
28389 ret = xmlParseDocument(vctxt->parserCtxt); in xmlSchemaVStart()
28396 xmlSchemaPostRun(vctxt); in xmlSchemaVStart()
28398 ret = vctxt->err; in xmlSchemaVStart()
28989 xmlSchemaValidateSetLocator(xmlSchemaValidCtxtPtr vctxt, in xmlSchemaValidateSetLocator() argument
28993 if (vctxt == NULL) return; in xmlSchemaValidateSetLocator()
28994 vctxt->locFunc = f; in xmlSchemaValidateSetLocator()
28995 vctxt->locCtxt = ctxt; in xmlSchemaValidateSetLocator()