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()
3383 xmlElementPtr elemDecl; in xmlIsMixedElement() local
3387 elemDecl = xmlGetDtdElementDesc(doc->intSubset, name); in xmlIsMixedElement()
3388 if ((elemDecl == NULL) && (doc->extSubset != NULL)) in xmlIsMixedElement()
3389 elemDecl = xmlGetDtdElementDesc(doc->extSubset, name); in xmlIsMixedElement()
3390 if (elemDecl == NULL) return(-1); in xmlIsMixedElement()
3391 switch (elemDecl->etype) { in xmlIsMixedElement()
5229 xmlElementPtr elemDecl, int warn, xmlNodePtr parent) { in xmlValidateElementContent() argument
5238 if ((elemDecl == NULL) || (parent == NULL) || (ctxt == NULL)) in xmlValidateElementContent()
5240 cont = elemDecl->content; in xmlValidateElementContent()
5241 name = elemDecl->name; in xmlValidateElementContent()
5245 if (elemDecl->contModel == NULL) in xmlValidateElementContent()
5246 ret = xmlValidBuildContentModel(ctxt, elemDecl); in xmlValidateElementContent()
5247 if (elemDecl->contModel == NULL) { in xmlValidateElementContent()
5252 if (!xmlRegexpIsDeterminist(elemDecl->contModel)) { in xmlValidateElementContent()
5258 exec = xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); in xmlValidateElementContent()
5651 xmlElementPtr elemDecl = NULL; in xmlValidGetElemDecl() local
5667 elemDecl = xmlGetDtdQElementDesc(doc->intSubset, in xmlValidGetElemDecl()
5669 if ((elemDecl == NULL) && (doc->extSubset != NULL)) { in xmlValidGetElemDecl()
5670 elemDecl = xmlGetDtdQElementDesc(doc->extSubset, in xmlValidGetElemDecl()
5672 if ((elemDecl != NULL) && (extsubset != NULL)) in xmlValidGetElemDecl()
5682 if (elemDecl == NULL) { in xmlValidGetElemDecl()
5683 elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name); in xmlValidGetElemDecl()
5684 if ((elemDecl == NULL) && (doc->extSubset != NULL)) { in xmlValidGetElemDecl()
5685 elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name); in xmlValidGetElemDecl()
5686 if ((elemDecl != NULL) && (extsubset != NULL)) in xmlValidGetElemDecl()
5690 if (elemDecl == NULL) { in xmlValidGetElemDecl()
5696 return(elemDecl); in xmlValidGetElemDecl()
5723 xmlElementPtr elemDecl; in xmlValidatePushElement() local
5728 if (state->elemDecl != NULL) { in xmlValidatePushElement()
5729 elemDecl = state->elemDecl; in xmlValidatePushElement()
5731 switch(elemDecl->etype) { in xmlValidatePushElement()
5747 if ((elemDecl->content != NULL) && in xmlValidatePushElement()
5748 (elemDecl->content->type == in xmlValidatePushElement()
5756 ret = xmlValidateCheckMixed(ctxt, elemDecl->content, in xmlValidatePushElement()
5815 xmlElementPtr elemDecl; in xmlValidatePushCData() local
5820 if (state->elemDecl != NULL) { in xmlValidatePushCData()
5821 elemDecl = state->elemDecl; in xmlValidatePushCData()
5823 switch(elemDecl->etype) { in xmlValidatePushCData()
5889 xmlElementPtr elemDecl; in xmlValidatePopElement() local
5894 if (state->elemDecl != NULL) { in xmlValidatePopElement()
5895 elemDecl = state->elemDecl; in xmlValidatePopElement()
5897 if (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT) { in xmlValidatePopElement()
5942 xmlElementPtr elemDecl = NULL; in xmlValidateOneElement() local
6015 elemDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset); in xmlValidateOneElement()
6016 if (elemDecl == NULL) in xmlValidateOneElement()
6025 switch (elemDecl->etype) { in xmlValidateOneElement()
6045 if ((elemDecl->content != NULL) && in xmlValidateOneElement()
6046 (elemDecl->content->type == XML_ELEMENT_CONTENT_PCDATA)) { in xmlValidateOneElement()
6068 cont = elemDecl->content; in xmlValidateOneElement()
6093 cont = elemDecl->content; in xmlValidateOneElement()
6149 cont = elemDecl->content; in xmlValidateOneElement()
6150 tmp = xmlValidateElementContent(ctxt, child, elemDecl, 1, elem); in xmlValidateOneElement()
6158 attr = elemDecl->attributes; in xmlValidateOneElement()