Lines Matching refs:elemDecl
267 xmlElementPtr elemDecl; /* pointer to the content model */ member
274 vstateVPush(xmlValidCtxtPtr ctxt, xmlElementPtr elemDecl, xmlNodePtr node) { in vstateVPush() argument
298 ctxt->vstateTab[ctxt->vstateNr].elemDecl = elemDecl; in vstateVPush()
300 if ((elemDecl != NULL) && (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT)) { in vstateVPush()
301 if (elemDecl->contModel == NULL) in vstateVPush()
302 xmlValidBuildContentModel(ctxt, elemDecl); in vstateVPush()
303 if (elemDecl->contModel != NULL) { in vstateVPush()
305 xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); in vstateVPush()
308 xmlErrValidNode(ctxt, (xmlNodePtr) elemDecl, in vstateVPush()
319 xmlElementPtr elemDecl; in vstateVPop() local
323 elemDecl = ctxt->vstateTab[ctxt->vstateNr].elemDecl; in vstateVPop()
324 ctxt->vstateTab[ctxt->vstateNr].elemDecl = NULL; in vstateVPop()
326 if ((elemDecl != NULL) && (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT)) { in vstateVPop()
3414 xmlElementPtr elemDecl; in xmlIsMixedElement() local
3418 elemDecl = xmlGetDtdElementDesc(doc->intSubset, name); in xmlIsMixedElement()
3419 if ((elemDecl == NULL) && (doc->extSubset != NULL)) in xmlIsMixedElement()
3420 elemDecl = xmlGetDtdElementDesc(doc->extSubset, name); in xmlIsMixedElement()
3421 if (elemDecl == NULL) return(-1); in xmlIsMixedElement()
3422 switch (elemDecl->etype) { in xmlIsMixedElement()
5270 xmlElementPtr elemDecl, int warn, xmlNodePtr parent) { in xmlValidateElementContent() argument
5279 if ((elemDecl == NULL) || (parent == NULL) || (ctxt == NULL)) in xmlValidateElementContent()
5281 cont = elemDecl->content; in xmlValidateElementContent()
5282 name = elemDecl->name; in xmlValidateElementContent()
5286 if (elemDecl->contModel == NULL) in xmlValidateElementContent()
5287 ret = xmlValidBuildContentModel(ctxt, elemDecl); in xmlValidateElementContent()
5288 if (elemDecl->contModel == NULL) { in xmlValidateElementContent()
5293 if (!xmlRegexpIsDeterminist(elemDecl->contModel)) { in xmlValidateElementContent()
5299 exec = xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); in xmlValidateElementContent()
5692 xmlElementPtr elemDecl = NULL; in xmlValidGetElemDecl() local
5708 elemDecl = xmlGetDtdQElementDesc(doc->intSubset, in xmlValidGetElemDecl()
5710 if ((elemDecl == NULL) && (doc->extSubset != NULL)) { in xmlValidGetElemDecl()
5711 elemDecl = xmlGetDtdQElementDesc(doc->extSubset, in xmlValidGetElemDecl()
5713 if ((elemDecl != NULL) && (extsubset != NULL)) in xmlValidGetElemDecl()
5723 if (elemDecl == NULL) { in xmlValidGetElemDecl()
5724 elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name); in xmlValidGetElemDecl()
5725 if ((elemDecl == NULL) && (doc->extSubset != NULL)) { in xmlValidGetElemDecl()
5726 elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name); in xmlValidGetElemDecl()
5727 if ((elemDecl != NULL) && (extsubset != NULL)) in xmlValidGetElemDecl()
5731 if (elemDecl == NULL) { in xmlValidGetElemDecl()
5737 return(elemDecl); in xmlValidGetElemDecl()
5764 xmlElementPtr elemDecl; in xmlValidatePushElement() local
5769 if (state->elemDecl != NULL) { in xmlValidatePushElement()
5770 elemDecl = state->elemDecl; in xmlValidatePushElement()
5772 switch(elemDecl->etype) { in xmlValidatePushElement()
5788 if ((elemDecl->content != NULL) && in xmlValidatePushElement()
5789 (elemDecl->content->type == in xmlValidatePushElement()
5797 ret = xmlValidateCheckMixed(ctxt, elemDecl->content, in xmlValidatePushElement()
5856 xmlElementPtr elemDecl; in xmlValidatePushCData() local
5861 if (state->elemDecl != NULL) { in xmlValidatePushCData()
5862 elemDecl = state->elemDecl; in xmlValidatePushCData()
5864 switch(elemDecl->etype) { in xmlValidatePushCData()
5930 xmlElementPtr elemDecl; in xmlValidatePopElement() local
5935 if (state->elemDecl != NULL) { in xmlValidatePopElement()
5936 elemDecl = state->elemDecl; in xmlValidatePopElement()
5938 if (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT) { in xmlValidatePopElement()
5983 xmlElementPtr elemDecl = NULL; in xmlValidateOneElement() local
6056 elemDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset); in xmlValidateOneElement()
6057 if (elemDecl == NULL) in xmlValidateOneElement()
6066 switch (elemDecl->etype) { in xmlValidateOneElement()
6086 if ((elemDecl->content != NULL) && in xmlValidateOneElement()
6087 (elemDecl->content->type == XML_ELEMENT_CONTENT_PCDATA)) { in xmlValidateOneElement()
6109 cont = elemDecl->content; in xmlValidateOneElement()
6134 cont = elemDecl->content; in xmlValidateOneElement()
6190 cont = elemDecl->content; in xmlValidateOneElement()
6191 tmp = xmlValidateElementContent(ctxt, child, elemDecl, 1, elem); in xmlValidateOneElement()
6199 attr = elemDecl->attributes; in xmlValidateOneElement()