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()
3505 xmlElementPtr elemDecl; in xmlIsMixedElement() local
3509 elemDecl = xmlGetDtdElementDesc(doc->intSubset, name); in xmlIsMixedElement()
3510 if ((elemDecl == NULL) && (doc->extSubset != NULL)) in xmlIsMixedElement()
3511 elemDecl = xmlGetDtdElementDesc(doc->extSubset, name); in xmlIsMixedElement()
3512 if (elemDecl == NULL) return(-1); in xmlIsMixedElement()
3513 switch (elemDecl->etype) { in xmlIsMixedElement()
5335 xmlElementPtr elemDecl, int warn, xmlNodePtr parent) { in xmlValidateElementContent() argument
5344 if ((elemDecl == NULL) || (parent == NULL) || (ctxt == NULL)) in xmlValidateElementContent()
5346 cont = elemDecl->content; in xmlValidateElementContent()
5347 name = elemDecl->name; in xmlValidateElementContent()
5351 if (elemDecl->contModel == NULL) in xmlValidateElementContent()
5352 ret = xmlValidBuildContentModel(ctxt, elemDecl); in xmlValidateElementContent()
5353 if (elemDecl->contModel == NULL) { in xmlValidateElementContent()
5358 if (!xmlRegexpIsDeterminist(elemDecl->contModel)) { in xmlValidateElementContent()
5364 exec = xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); in xmlValidateElementContent()
5757 xmlElementPtr elemDecl = NULL; in xmlValidGetElemDecl() local
5773 elemDecl = xmlGetDtdQElementDesc(doc->intSubset, in xmlValidGetElemDecl()
5775 if ((elemDecl == NULL) && (doc->extSubset != NULL)) { in xmlValidGetElemDecl()
5776 elemDecl = xmlGetDtdQElementDesc(doc->extSubset, in xmlValidGetElemDecl()
5778 if ((elemDecl != NULL) && (extsubset != NULL)) in xmlValidGetElemDecl()
5788 if (elemDecl == NULL) { in xmlValidGetElemDecl()
5789 elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name); in xmlValidGetElemDecl()
5790 if ((elemDecl == NULL) && (doc->extSubset != NULL)) { in xmlValidGetElemDecl()
5791 elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name); in xmlValidGetElemDecl()
5792 if ((elemDecl != NULL) && (extsubset != NULL)) in xmlValidGetElemDecl()
5796 if (elemDecl == NULL) { in xmlValidGetElemDecl()
5802 return(elemDecl); in xmlValidGetElemDecl()
5829 xmlElementPtr elemDecl; in xmlValidatePushElement() local
5834 if (state->elemDecl != NULL) { in xmlValidatePushElement()
5835 elemDecl = state->elemDecl; in xmlValidatePushElement()
5837 switch(elemDecl->etype) { in xmlValidatePushElement()
5853 if ((elemDecl->content != NULL) && in xmlValidatePushElement()
5854 (elemDecl->content->type == in xmlValidatePushElement()
5862 ret = xmlValidateCheckMixed(ctxt, elemDecl->content, in xmlValidatePushElement()
5921 xmlElementPtr elemDecl; in xmlValidatePushCData() local
5926 if (state->elemDecl != NULL) { in xmlValidatePushCData()
5927 elemDecl = state->elemDecl; in xmlValidatePushCData()
5929 switch(elemDecl->etype) { in xmlValidatePushCData()
5994 xmlElementPtr elemDecl; in xmlValidatePopElement() local
5999 if (state->elemDecl != NULL) { in xmlValidatePopElement()
6000 elemDecl = state->elemDecl; in xmlValidatePopElement()
6002 if (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT) { in xmlValidatePopElement()
6047 xmlElementPtr elemDecl = NULL; in xmlValidateOneElement() local
6120 elemDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset); in xmlValidateOneElement()
6121 if (elemDecl == NULL) in xmlValidateOneElement()
6130 switch (elemDecl->etype) { in xmlValidateOneElement()
6150 if ((elemDecl->content != NULL) && in xmlValidateOneElement()
6151 (elemDecl->content->type == XML_ELEMENT_CONTENT_PCDATA)) { in xmlValidateOneElement()
6173 cont = elemDecl->content; in xmlValidateOneElement()
6198 cont = elemDecl->content; in xmlValidateOneElement()
6254 cont = elemDecl->content; in xmlValidateOneElement()
6255 tmp = xmlValidateElementContent(ctxt, child, elemDecl, 1, elem); in xmlValidateOneElement()
6263 attr = elemDecl->attributes; in xmlValidateOneElement()