Lines Matching refs:elemDecl

1095 xmlSchemaCheckElementDeclComponent(xmlSchemaElementPtr elemDecl,
4130 if (schema->elemDecl != NULL) in xmlSchemaFree()
4131 xmlHashFree(schema->elemDecl, NULL); in xmlSchemaFree()
4526 xmlHashScanFull(schema->elemDecl, in xmlSchemaDump()
4757 WXS_FIND_GLOBAL_ITEM(elemDecl) in xmlSchemaGetElem()
12559 xmlSchemaElementPtr elemDecl, member; in xmlSchemaBuildContentModelForSubstGroup() local
12564 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForSubstGroup()
12571 substGroup = xmlSchemaSubstGroupGet(pctxt, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12577 "available.\n", elemDecl->name, NULL); in xmlSchemaBuildContentModelForSubstGroup()
12589 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForSubstGroup()
12605 elemDecl->name, elemDecl->targetNamespace, elemDecl), end); in xmlSchemaBuildContentModelForSubstGroup()
12642 elemDecl->name, elemDecl->targetNamespace, elemDecl), in xmlSchemaBuildContentModelForSubstGroup()
12684 xmlSchemaElementPtr elemDecl; in xmlSchemaBuildContentModelForElement() local
12687 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForElement()
12689 if (elemDecl->flags & XML_SCHEMAS_ELEM_ABSTRACT) in xmlSchemaBuildContentModelForElement()
12694 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
12700 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
12702 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
12713 elemDecl->name, elemDecl->targetNamespace, elemDecl); in xmlSchemaBuildContentModelForElement()
13044 xmlSchemaElementPtr elemDecl; in xmlSchemaBuildAContentModel() local
13061 elemDecl = (xmlSchemaElementPtr) sub->children; in xmlSchemaBuildAContentModel()
13062 if (elemDecl == NULL) { in xmlSchemaBuildAContentModel()
13073 if (elemDecl->flags & XML_SCHEMAS_ELEM_SUBST_GROUP_HEAD) { in xmlSchemaBuildAContentModel()
13090 elemDecl->name, in xmlSchemaBuildAContentModel()
13091 elemDecl->targetNamespace, in xmlSchemaBuildAContentModel()
13092 1, 1, elemDecl); in xmlSchemaBuildAContentModel()
13098 elemDecl->name, in xmlSchemaBuildAContentModel()
13099 elemDecl->targetNamespace, in xmlSchemaBuildAContentModel()
13102 elemDecl); in xmlSchemaBuildAContentModel()
13204 xmlSchemaResolveElementReferences(xmlSchemaElementPtr elemDecl, in xmlSchemaResolveElementReferences() argument
13207 if ((ctxt == NULL) || (elemDecl == NULL) || in xmlSchemaResolveElementReferences()
13208 ((elemDecl != NULL) && in xmlSchemaResolveElementReferences()
13209 (elemDecl->flags & XML_SCHEMAS_ELEM_INTERNAL_RESOLVED))) in xmlSchemaResolveElementReferences()
13211 elemDecl->flags |= XML_SCHEMAS_ELEM_INTERNAL_RESOLVED; in xmlSchemaResolveElementReferences()
13213 if ((elemDecl->subtypes == NULL) && (elemDecl->namedType != NULL)) { in xmlSchemaResolveElementReferences()
13219 type = xmlSchemaGetType(ctxt->schema, elemDecl->namedType, in xmlSchemaResolveElementReferences()
13220 elemDecl->namedTypeNs); in xmlSchemaResolveElementReferences()
13224 WXS_BASIC_CAST elemDecl, elemDecl->node, in xmlSchemaResolveElementReferences()
13225 "type", elemDecl->namedType, elemDecl->namedTypeNs, in xmlSchemaResolveElementReferences()
13228 elemDecl->subtypes = type; in xmlSchemaResolveElementReferences()
13230 if (elemDecl->substGroup != NULL) { in xmlSchemaResolveElementReferences()
13237 substHead = xmlSchemaGetElem(ctxt->schema, elemDecl->substGroup, in xmlSchemaResolveElementReferences()
13238 elemDecl->substGroupNs); in xmlSchemaResolveElementReferences()
13242 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaResolveElementReferences()
13243 "substitutionGroup", elemDecl->substGroup, in xmlSchemaResolveElementReferences()
13244 elemDecl->substGroupNs, XML_SCHEMA_TYPE_ELEMENT, NULL); in xmlSchemaResolveElementReferences()
13251 WXS_SUBST_HEAD(elemDecl) = substHead; in xmlSchemaResolveElementReferences()
13258 if (elemDecl->subtypes == NULL) in xmlSchemaResolveElementReferences()
13259 elemDecl->subtypes = substHead->subtypes; in xmlSchemaResolveElementReferences()
13266 if ((elemDecl->subtypes == NULL) && in xmlSchemaResolveElementReferences()
13267 (elemDecl->namedType == NULL) && in xmlSchemaResolveElementReferences()
13268 (elemDecl->substGroup == NULL)) in xmlSchemaResolveElementReferences()
13269 elemDecl->subtypes = xmlSchemaGetBuiltInType(XML_SCHEMAS_ANYTYPE); in xmlSchemaResolveElementReferences()
19553 xmlSchemaCheckSubstGroupCircular(xmlSchemaElementPtr elemDecl, in xmlSchemaCheckSubstGroupCircular() argument
19560 if (WXS_SUBST_HEAD(ancestor) == elemDecl) in xmlSchemaCheckSubstGroupCircular()
19566 ret = xmlSchemaCheckSubstGroupCircular(elemDecl, in xmlSchemaCheckSubstGroupCircular()
19587 xmlSchemaElementPtr elemDecl) in xmlSchemaCheckElemPropsCorrect() argument
19590 xmlSchemaTypePtr typeDef = WXS_ELEM_TYPEDEF(elemDecl); in xmlSchemaCheckElemPropsCorrect()
19597 if (WXS_SUBST_HEAD(elemDecl) != NULL) { in xmlSchemaCheckElemPropsCorrect()
19598 xmlSchemaElementPtr head = WXS_SUBST_HEAD(elemDecl), circ; in xmlSchemaCheckElemPropsCorrect()
19605 if ((elemDecl->flags & XML_SCHEMAS_ELEM_GLOBAL) == 0) { in xmlSchemaCheckElemPropsCorrect()
19608 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaCheckElemPropsCorrect()
19619 if (head == elemDecl) in xmlSchemaCheckElemPropsCorrect()
19655 if (typeDef != WXS_ELEM_TYPEDEF(WXS_SUBST_HEAD(elemDecl))) { in xmlSchemaCheckElemPropsCorrect()
19670 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaCheckElemPropsCorrect()
19691 if ((elemDecl->value != NULL) && in xmlSchemaCheckElemPropsCorrect()
19702 WXS_BASIC_CAST elemDecl, NULL, in xmlSchemaCheckElemPropsCorrect()
19706 } else if (elemDecl->value != NULL) { in xmlSchemaCheckElemPropsCorrect()
19717 xmlSchemaPErr(pctxt, elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19724 if (elemDecl->node != NULL) { in xmlSchemaCheckElemPropsCorrect()
19725 if (elemDecl->flags & XML_SCHEMAS_ELEM_FIXED) in xmlSchemaCheckElemPropsCorrect()
19726 node = (xmlNodePtr) xmlHasProp(elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19729 node = (xmlNodePtr) xmlHasProp(elemDecl->node, in xmlSchemaCheckElemPropsCorrect()
19733 typeDef, elemDecl->value, &(elemDecl->defVal)); in xmlSchemaCheckElemPropsCorrect()
19769 xmlSchemaElementPtr elemDecl) in xmlSchemaCheckElemSubstGroup() argument
19771 if ((WXS_SUBST_HEAD(elemDecl) == NULL) || in xmlSchemaCheckElemSubstGroup()
19773 (elemDecl->flags & XML_SCHEMAS_ELEM_ABSTRACT)) in xmlSchemaCheckElemSubstGroup()
19784 for (head = WXS_SUBST_HEAD(elemDecl); head != NULL; in xmlSchemaCheckElemSubstGroup()
19794 type = elemDecl->subtypes; in xmlSchemaCheckElemSubstGroup()
19834 type = elemDecl->subtypes->baseType; in xmlSchemaCheckElemSubstGroup()
19859 xmlSchemaAddElementSubstitutionMember(ctxt, head, elemDecl); in xmlSchemaCheckElemSubstGroup()
19993 xmlSchemaCheckElementDeclComponent(xmlSchemaElementPtr elemDecl, in xmlSchemaCheckElementDeclComponent() argument
19996 if (elemDecl == NULL) in xmlSchemaCheckElementDeclComponent()
19998 if (elemDecl->flags & XML_SCHEMAS_ELEM_INTERNAL_CHECKED) in xmlSchemaCheckElementDeclComponent()
20000 elemDecl->flags |= XML_SCHEMAS_ELEM_INTERNAL_CHECKED; in xmlSchemaCheckElementDeclComponent()
20001 if (xmlSchemaCheckElemPropsCorrect(ctxt, elemDecl) == 0) { in xmlSchemaCheckElementDeclComponent()
20005 xmlSchemaCheckElemSubstGroup(ctxt, elemDecl); in xmlSchemaCheckElementDeclComponent()
20749 WXS_GET_GLOBAL_HASH(bucket, elemDecl) in xmlSchemaAddComponents()
20829 xmlSchemaElementPtr elemDecl; in xmlSchemaFixupComponents() local
21203 elemDecl = (xmlSchemaElementPtr) item; in xmlSchemaFixupComponents()
21205 if ((elemDecl->flags & XML_SCHEMAS_ELEM_INTERNAL_CHECKED) == 0) in xmlSchemaFixupComponents()
21208 (xmlSchemaElementPtr) elemDecl, pctxt); in xmlSchemaFixupComponents()
21217 if ((WXS_ELEM_TYPEDEF(elemDecl) != NULL) && in xmlSchemaFixupComponents()
21218 (WXS_IS_COMPLEX(WXS_ELEM_TYPEDEF(elemDecl))) && in xmlSchemaFixupComponents()
21219 (WXS_TYPE_IS_LOCAL(WXS_ELEM_TYPEDEF(elemDecl)))) in xmlSchemaFixupComponents()
21222 WXS_BASIC_CAST elemDecl, in xmlSchemaFixupComponents()
21223 WXS_TYPE_PARTICLE(WXS_ELEM_TYPEDEF(elemDecl)), in xmlSchemaFixupComponents()
23172 xmlSchemaElementPtr elemDecl) in xmlSchemaIDCRegisterMatchers() argument
23178 idc = (xmlSchemaIDCPtr) elemDecl->idcs; in xmlSchemaIDCRegisterMatchers()
24871 xmlSchemaElementPtr elemDecl) in xmlSchemaProcessXSIType() argument
24926 if (elemDecl != NULL) { in xmlSchemaProcessXSIType()
24949 if ((elemDecl->flags & XML_SCHEMAS_ELEM_BLOCK_EXTENSION) || in xmlSchemaProcessXSIType()
24950 (elemDecl->subtypes->flags & in xmlSchemaProcessXSIType()
24954 if ((elemDecl->flags & XML_SCHEMAS_ELEM_BLOCK_RESTRICTION) || in xmlSchemaProcessXSIType()
24955 (elemDecl->subtypes->flags & in xmlSchemaProcessXSIType()
24971 elemDecl->subtypes, set) != 0) { in xmlSchemaProcessXSIType()
25000 xmlSchemaElementPtr elemDecl = vctxt->inode->decl; in xmlSchemaValidateElemDecl() local
25006 if (elemDecl == NULL) { in xmlSchemaValidateElemDecl()
25011 actualType = WXS_ELEM_TYPEDEF(elemDecl); in xmlSchemaValidateElemDecl()
25015 if (elemDecl->flags & XML_SCHEMAS_ELEM_ABSTRACT) { in xmlSchemaValidateElemDecl()
25051 if ((elemDecl->flags & XML_SCHEMAS_ELEM_NILLABLE) == 0) { in xmlSchemaValidateElemDecl()
25063 if ((elemDecl->flags & XML_SCHEMAS_ELEM_FIXED) && in xmlSchemaValidateElemDecl()
25064 (elemDecl->value != NULL)) { in xmlSchemaValidateElemDecl()
25087 elemDecl); in xmlSchemaValidateElemDecl()
25106 if ((elemDecl->idcs != NULL) && in xmlSchemaValidateElemDecl()
25107 (xmlSchemaIDCRegisterMatchers(vctxt, elemDecl) == -1)) in xmlSchemaValidateElemDecl()