Lines Matching refs:elemDecl
1103 xmlSchemaCheckElementDeclComponent(xmlSchemaElementPtr elemDecl,
4158 if (schema->elemDecl != NULL) in xmlSchemaFree()
4159 xmlHashFree(schema->elemDecl, NULL); in xmlSchemaFree()
4561 xmlHashScanFull(schema->elemDecl, xmlSchemaElementDump, output); in xmlSchemaDump()
4791 WXS_FIND_GLOBAL_ITEM(elemDecl) in xmlSchemaGetElem()
12598 xmlSchemaElementPtr elemDecl, member; in xmlSchemaBuildContentModelForSubstGroup() local
12603 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForSubstGroup()
12610 substGroup = xmlSchemaSubstGroupGet(pctxt, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12616 "available.\n", elemDecl->name, NULL); in xmlSchemaBuildContentModelForSubstGroup()
12628 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12644 elemDecl->name, elemDecl->targetNamespace, elemDecl), end); in xmlSchemaBuildContentModelForSubstGroup()
12681 elemDecl->name, elemDecl->targetNamespace, elemDecl), in xmlSchemaBuildContentModelForSubstGroup()
12723 xmlSchemaElementPtr elemDecl; in xmlSchemaBuildContentModelForElement() local
12726 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForElement()
12728 if (elemDecl->flags & XML_SCHEMAS_ELEM_ABSTRACT) in xmlSchemaBuildContentModelForElement()
12733 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
12739 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
12741 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
12752 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
13083 xmlSchemaElementPtr elemDecl; in xmlSchemaBuildAContentModel() local
13100 elemDecl = (xmlSchemaElementPtr) sub->children; in xmlSchemaBuildAContentModel()
13101 if (elemDecl == NULL) { in xmlSchemaBuildAContentModel()
13112 if (elemDecl->flags & XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD) { in xmlSchemaBuildAContentModel()
13129 elemDecl->name, in xmlSchemaBuildAContentModel()
13130 elemDecl->targetNamespace, in xmlSchemaBuildAContentModel()
13131 1, 1, elemDecl); in xmlSchemaBuildAContentModel()
13137 elemDecl->name, in xmlSchemaBuildAContentModel()
13138 elemDecl->targetNamespace, in xmlSchemaBuildAContentModel()
13141 elemDecl); in xmlSchemaBuildAContentModel()
13243 xmlSchemaResolveElementReferences(xmlSchemaElementPtr elemDecl, in xmlSchemaResolveElementReferences() argument
13246 if ((ctxt == NULL) || (elemDecl == NULL) || in xmlSchemaResolveElementReferences()
13247 ((elemDecl != NULL) && in xmlSchemaResolveElementReferences()
13248 (elemDecl->flags & XML_SCHEMAS_ELEM_INTERNAL_RESOLVED))) in xmlSchemaResolveElementReferences()
13250 elemDecl->flags |= XML_SCHEMAS_ELEM_INTERNAL_RESOLVED; in xmlSchemaResolveElementReferences()
13252 if ((elemDecl->subtypes == NULL) && (elemDecl->namedType != NULL)) { in xmlSchemaResolveElementReferences()
13258 type = xmlSchemaGetType(ctxt->schema, elemDecl->namedType, in xmlSchemaResolveElementReferences()
13259 elemDecl->namedTypeNs); in xmlSchemaResolveElementReferences()
13263 WXS_BASIC_CAST elemDecl, elemDecl->node, in xmlSchemaResolveElementReferences()
13264 "type", elemDecl->namedType, elemDecl->namedTypeNs, in xmlSchemaResolveElementReferences()
13267 elemDecl->subtypes = type; in xmlSchemaResolveElementReferences()
13269 if (elemDecl->substGroup != NULL) { in xmlSchemaResolveElementReferences()
13276 substHead = xmlSchemaGetElem(ctxt->schema, elemDecl->substGroup, in xmlSchemaResolveElementReferences()
13277 elemDecl->substGroupNs); in xmlSchemaResolveElementReferences()
13281 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaResolveElementReferences()
13282 "substitutionGroup", elemDecl->substGroup, in xmlSchemaResolveElementReferences()
13283 elemDecl->substGroupNs, XML_SCHEMA_TYPE_ELEMENT, NULL); in xmlSchemaResolveElementReferences()
13290 WXS_SUBST_HEAD(elemDecl) = substHead; in xmlSchemaResolveElementReferences()
13297 if (elemDecl->subtypes == NULL) in xmlSchemaResolveElementReferences()
13298 elemDecl->subtypes = substHead->subtypes; in xmlSchemaResolveElementReferences()
13305 if ((elemDecl->subtypes == NULL) && in xmlSchemaResolveElementReferences()
13306 (elemDecl->namedType == NULL) && in xmlSchemaResolveElementReferences()
13307 (elemDecl->substGroup == NULL)) in xmlSchemaResolveElementReferences()
13308 elemDecl->subtypes = xmlSchemaGetBuiltInType(XML_SCHEMAS_ANYTYPE); in xmlSchemaResolveElementReferences()
19592 xmlSchemaCheckSubstGroupCircular(xmlSchemaElementPtr elemDecl, in xmlSchemaCheckSubstGroupCircular() argument
19599 if (WXS_SUBST_HEAD(ancestor) == elemDecl) in xmlSchemaCheckSubstGroupCircular()
19605 ret = xmlSchemaCheckSubstGroupCircular(elemDecl, in xmlSchemaCheckSubstGroupCircular()
19626 xmlSchemaElementPtr elemDecl) in xmlSchemaCheckElemPropsCorrect() argument
19629 xmlSchemaTypePtr typeDef = WXS_ELEM_TYPEDEF(elemDecl); in xmlSchemaCheckElemPropsCorrect()
19636 if (WXS_SUBST_HEAD(elemDecl) != NULL) { in xmlSchemaCheckElemPropsCorrect()
19637 xmlSchemaElementPtr head = WXS_SUBST_HEAD(elemDecl), circ; in xmlSchemaCheckElemPropsCorrect()
19644 if ((elemDecl->flags & XML_SCHEMAS_ELEM_GLOBAL) == 0) { in xmlSchemaCheckElemPropsCorrect()
19647 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaCheckElemPropsCorrect()
19658 if (head == elemDecl) in xmlSchemaCheckElemPropsCorrect()
19694 if (typeDef != WXS_ELEM_TYPEDEF(WXS_SUBST_HEAD(elemDecl))) { in xmlSchemaCheckElemPropsCorrect()
19709 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaCheckElemPropsCorrect()
19730 if ((elemDecl->value != NULL) && in xmlSchemaCheckElemPropsCorrect()
19741 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaCheckElemPropsCorrect()
19745 } else if (elemDecl->value != NULL) { in xmlSchemaCheckElemPropsCorrect()
19756 xmlSchemaPErr(pctxt, elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19763 if (elemDecl->node != NULL) { in xmlSchemaCheckElemPropsCorrect()
19764 if (elemDecl->flags & XML_SCHEMAS_ELEM_FIXED) in xmlSchemaCheckElemPropsCorrect()
19765 node = (xmlNodePtr) xmlHasProp(elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19768 node = (xmlNodePtr) xmlHasProp(elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19772 typeDef, elemDecl->value, &(elemDecl->defVal)); in xmlSchemaCheckElemPropsCorrect()
19808 xmlSchemaElementPtr elemDecl) in xmlSchemaCheckElemSubstGroup() argument
19810 if ((WXS_SUBST_HEAD(elemDecl) == NULL) || in xmlSchemaCheckElemSubstGroup()
19812 (elemDecl->flags & XML_SCHEMAS_ELEM_ABSTRACT)) in xmlSchemaCheckElemSubstGroup()
19823 for (head = WXS_SUBST_HEAD(elemDecl); head != NULL; in xmlSchemaCheckElemSubstGroup()
19833 type = elemDecl->subtypes; in xmlSchemaCheckElemSubstGroup()
19873 type = elemDecl->subtypes->baseType; in xmlSchemaCheckElemSubstGroup()
19898 xmlSchemaAddElementSubstitutionMember(ctxt, head, elemDecl); in xmlSchemaCheckElemSubstGroup()
20032 xmlSchemaCheckElementDeclComponent(xmlSchemaElementPtr elemDecl, in xmlSchemaCheckElementDeclComponent() argument
20035 if (elemDecl == NULL) in xmlSchemaCheckElementDeclComponent()
20037 if (elemDecl->flags & XML_SCHEMAS_ELEM_INTERNAL_CHECKED) in xmlSchemaCheckElementDeclComponent()
20039 elemDecl->flags |= XML_SCHEMAS_ELEM_INTERNAL_CHECKED; in xmlSchemaCheckElementDeclComponent()
20040 if (xmlSchemaCheckElemPropsCorrect(ctxt, elemDecl) == 0) { in xmlSchemaCheckElementDeclComponent()
20044 xmlSchemaCheckElemSubstGroup(ctxt, elemDecl); in xmlSchemaCheckElementDeclComponent()
20788 WXS_GET_GLOBAL_HASH(bucket, elemDecl) in xmlSchemaAddComponents()
20868 xmlSchemaElementPtr elemDecl; in xmlSchemaFixupComponents() local
21242 elemDecl = (xmlSchemaElementPtr) item; in xmlSchemaFixupComponents()
21244 if ((elemDecl->flags & XML_SCHEMAS_ELEM_INTERNAL_CHECKED) == 0) in xmlSchemaFixupComponents()
21247 (xmlSchemaElementPtr) elemDecl, pctxt); in xmlSchemaFixupComponents()
21256 if ((WXS_ELEM_TYPEDEF(elemDecl) != NULL) && in xmlSchemaFixupComponents()
21257 (WXS_IS_COMPLEX(WXS_ELEM_TYPEDEF(elemDecl))) && in xmlSchemaFixupComponents()
21258 (WXS_TYPE_IS_LOCAL(WXS_ELEM_TYPEDEF(elemDecl)))) in xmlSchemaFixupComponents()
21261 WXS_BASIC_CAST elemDecl, in xmlSchemaFixupComponents()
21262 WXS_TYPE_PARTICLE(WXS_ELEM_TYPEDEF(elemDecl)), in xmlSchemaFixupComponents()
23214 xmlSchemaElementPtr elemDecl) in xmlSchemaIDCRegisterMatchers() argument
23220 idc = (xmlSchemaIDCPtr) elemDecl->idcs; in xmlSchemaIDCRegisterMatchers()
24913 xmlSchemaElementPtr elemDecl) in xmlSchemaProcessXSIType() argument
24968 if (elemDecl != NULL) { in xmlSchemaProcessXSIType()
24991 if ((elemDecl->flags & XML_SCHEMAS_ELEM_BLOCK_EXTENSION) || in xmlSchemaProcessXSIType()
24992 (elemDecl->subtypes->flags & in xmlSchemaProcessXSIType()
24996 if ((elemDecl->flags & XML_SCHEMAS_ELEM_BLOCK_RESTRICTION) || in xmlSchemaProcessXSIType()
24997 (elemDecl->subtypes->flags & in xmlSchemaProcessXSIType()
25013 elemDecl->subtypes, set) != 0) { in xmlSchemaProcessXSIType()
25042 xmlSchemaElementPtr elemDecl = vctxt->inode->decl; in xmlSchemaValidateElemDecl() local
25048 if (elemDecl == NULL) { in xmlSchemaValidateElemDecl()
25053 actualType = WXS_ELEM_TYPEDEF(elemDecl); in xmlSchemaValidateElemDecl()
25057 if (elemDecl->flags & XML_SCHEMAS_ELEM_ABSTRACT) { in xmlSchemaValidateElemDecl()
25093 if ((elemDecl->flags & XML_SCHEMAS_ELEM_NILLABLE) == 0) { in xmlSchemaValidateElemDecl()
25105 if ((elemDecl->flags & XML_SCHEMAS_ELEM_FIXED) && in xmlSchemaValidateElemDecl()
25106 (elemDecl->value != NULL)) { in xmlSchemaValidateElemDecl()
25129 elemDecl); in xmlSchemaValidateElemDecl()
25148 if ((elemDecl->idcs != NULL) && in xmlSchemaValidateElemDecl()
25149 (xmlSchemaIDCRegisterMatchers(vctxt, elemDecl) == -1)) in xmlSchemaValidateElemDecl()