Lines Matching refs:particle

4354 xmlSchemaContentModelDump(xmlSchemaParticlePtr particle, FILE * output, int depth)  in xmlSchemaContentModelDump()  argument
4361 if (particle == NULL) in xmlSchemaContentModelDump()
4367 if (particle->children == NULL) { in xmlSchemaContentModelDump()
4371 term = particle->children; in xmlSchemaContentModelDump()
4399 if (particle->minOccurs != 1) in xmlSchemaContentModelDump()
4400 fprintf(output, " min: %d", particle->minOccurs); in xmlSchemaContentModelDump()
4401 if (particle->maxOccurs >= UNBOUNDED) in xmlSchemaContentModelDump()
4403 else if (particle->maxOccurs != 1) in xmlSchemaContentModelDump()
4404 fprintf(output, " max: %d", particle->maxOccurs); in xmlSchemaContentModelDump()
4414 if (particle->next != NULL) in xmlSchemaContentModelDump()
4415 xmlSchemaContentModelDump((xmlSchemaParticlePtr) particle->next, in xmlSchemaContentModelDump()
6980 xmlSchemaParticlePtr particle; in xmlSchemaParseAny() local
7049 particle = xmlSchemaAddParticle(ctxt, node, min, max); in xmlSchemaParseAny()
7050 if (particle == NULL) in xmlSchemaParseAny()
7052 particle->annot = annot; in xmlSchemaParseAny()
7053 particle->children = (xmlSchemaTreeItemPtr) wild; in xmlSchemaParseAny()
7055 return (particle); in xmlSchemaParseAny()
8545 xmlSchemaParticlePtr particle = NULL; in xmlSchemaParseElement() local
8594 particle = xmlSchemaAddParticle(ctxt, node, min, max); in xmlSchemaParseElement()
8595 if (particle == NULL) in xmlSchemaParseElement()
8664 particle->children = (xmlSchemaTreeItemPtr) refer; in xmlSchemaParseElement()
8665 particle->annot = annot; in xmlSchemaParseElement()
8670 WXS_ADD_PENDING(ctxt, particle); in xmlSchemaParseElement()
8671 return ((xmlSchemaBasicItemPtr) particle); in xmlSchemaParseElement()
8910 particle->children = (xmlSchemaTreeItemPtr) decl; in xmlSchemaParseElement()
8911 return ((xmlSchemaBasicItemPtr) particle); in xmlSchemaParseElement()
8917 if (particle != NULL) in xmlSchemaParseElement()
8918 particle->annot = NULL; in xmlSchemaParseElement()
11302 xmlSchemaParticlePtr particle = NULL; in xmlSchemaParseModelGroup() local
11330 particle = xmlSchemaAddParticle(ctxt, node, min, max); in xmlSchemaParseModelGroup()
11331 if (particle == NULL) in xmlSchemaParseModelGroup()
11333 particle->children = (xmlSchemaTreeItemPtr) item; in xmlSchemaParseModelGroup()
11546 return ((xmlSchemaTreeItemPtr) particle); in xmlSchemaParseModelGroup()
12640 xmlSchemaParticlePtr particle, int counter, xmlAutomataStatePtr end) in xmlSchemaBuildContentModelForSubstGroup() argument
12648 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForSubstGroup()
12657 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle), in xmlSchemaBuildContentModelForSubstGroup()
12682 } else if (particle->maxOccurs == 1) { in xmlSchemaBuildContentModelForSubstGroup()
12714 int maxOccurs = particle->maxOccurs == UNBOUNDED ? in xmlSchemaBuildContentModelForSubstGroup()
12715 UNBOUNDED : particle->maxOccurs - 1; in xmlSchemaBuildContentModelForSubstGroup()
12716 int minOccurs = particle->minOccurs < 1 ? 0 : particle->minOccurs - 1; in xmlSchemaBuildContentModelForSubstGroup()
12742 if (particle->minOccurs == 0) { in xmlSchemaBuildContentModelForSubstGroup()
12757 xmlSchemaParticlePtr particle) in xmlSchemaBuildContentModelForElement() argument
12761 if (((xmlSchemaElementPtr) particle->children)->flags & in xmlSchemaBuildContentModelForElement()
12766 ret = xmlSchemaBuildContentModelForSubstGroup(ctxt, particle, -1, NULL); in xmlSchemaBuildContentModelForElement()
12771 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForElement()
12775 if (particle->maxOccurs == 1) { in xmlSchemaBuildContentModelForElement()
12779 } else if ((particle->maxOccurs >= UNBOUNDED) && in xmlSchemaBuildContentModelForElement()
12780 (particle->minOccurs < 2)) { in xmlSchemaBuildContentModelForElement()
12789 int maxOccurs = particle->maxOccurs == UNBOUNDED ? in xmlSchemaBuildContentModelForElement()
12790 UNBOUNDED : particle->maxOccurs - 1; in xmlSchemaBuildContentModelForElement()
12791 int minOccurs = particle->minOccurs < 1 ? in xmlSchemaBuildContentModelForElement()
12792 0 : particle->minOccurs - 1; in xmlSchemaBuildContentModelForElement()
12802 if (particle->minOccurs == 0) { in xmlSchemaBuildContentModelForElement()
12822 xmlSchemaParticlePtr particle) in xmlSchemaBuildAContentModel() argument
12826 if (particle == NULL) { in xmlSchemaBuildAContentModel()
12830 if (particle->children == NULL) { in xmlSchemaBuildAContentModel()
12838 switch (particle->children->type) { in xmlSchemaBuildAContentModel()
12844 wild = (xmlSchemaWildcardPtr) particle->children; in xmlSchemaBuildAContentModel()
12849 if (particle->maxOccurs == 1) { in xmlSchemaBuildAContentModel()
12887 particle->maxOccurs == UNBOUNDED ? UNBOUNDED : in xmlSchemaBuildAContentModel()
12888 particle->maxOccurs - 1; in xmlSchemaBuildAContentModel()
12890 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1; in xmlSchemaBuildAContentModel()
12921 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
12929 ret = xmlSchemaBuildContentModelForElement(pctxt, particle); in xmlSchemaBuildAContentModel()
12939 if ((particle->minOccurs == 1) && (particle->maxOccurs == 1)) { in xmlSchemaBuildAContentModel()
12940 sub = particle->children->children; in xmlSchemaBuildAContentModel()
12951 if (particle->maxOccurs >= UNBOUNDED) { in xmlSchemaBuildAContentModel()
12952 if (particle->minOccurs > 1) { in xmlSchemaBuildAContentModel()
12961 particle->minOccurs - 1, UNBOUNDED); in xmlSchemaBuildAContentModel()
12963 sub = particle->children->children; in xmlSchemaBuildAContentModel()
12985 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13001 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13007 } else if ((particle->maxOccurs > 1) in xmlSchemaBuildAContentModel()
13008 || (particle->minOccurs > 1)) { in xmlSchemaBuildAContentModel()
13017 particle->minOccurs - 1, in xmlSchemaBuildAContentModel()
13018 particle->maxOccurs - 1); in xmlSchemaBuildAContentModel()
13020 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13033 if ((particle->minOccurs == 0) || (ret == 1)) { in xmlSchemaBuildAContentModel()
13039 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13055 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13076 if (particle->maxOccurs == 1) { in xmlSchemaBuildAContentModel()
13077 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13089 int maxOccurs = particle->maxOccurs == UNBOUNDED ? in xmlSchemaBuildAContentModel()
13090 UNBOUNDED : particle->maxOccurs - 1; in xmlSchemaBuildAContentModel()
13092 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1; in xmlSchemaBuildAContentModel()
13103 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13118 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13132 sub = (xmlSchemaParticlePtr) particle->children->children; in xmlSchemaBuildAContentModel()
13193 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13213 WXS_ITEM_TYPE_NAME(particle->children), NULL); in xmlSchemaBuildAContentModel()
14735 xmlSchemaGetParticleTotalRangeMin(xmlSchemaParticlePtr particle)
14737 if ((particle->children == NULL) ||
14738 (particle->minOccurs == 0))
14740 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14743 (xmlSchemaParticlePtr) particle->children->children;
14759 return (particle->minOccurs * min);
14764 (xmlSchemaParticlePtr) particle->children->children;
14776 return (particle->minOccurs * sum);
14790 xmlSchemaGetParticleTotalRangeMax(xmlSchemaParticlePtr particle)
14792 if ((particle->children == NULL) ||
14793 (particle->children->children == NULL))
14795 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14798 (xmlSchemaParticlePtr) particle->children->children;
14814 return (particle->maxOccurs * max);
14819 (xmlSchemaParticlePtr) particle->children->children;
14831 if ((cur > 0) && (particle->maxOccurs == UNBOUNDED))
14836 return (particle->maxOccurs * sum);
14848 xmlSchemaGetParticleEmptiable(xmlSchemaParticlePtr particle) in xmlSchemaGetParticleEmptiable() argument
14853 if ((particle->children == NULL) || (particle->minOccurs == 0)) in xmlSchemaGetParticleEmptiable()
14856 part = (xmlSchemaParticlePtr) particle->children->children; in xmlSchemaGetParticleEmptiable()
14866 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) { in xmlSchemaGetParticleEmptiable()
14877 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) in xmlSchemaGetParticleEmptiable()
14893 xmlSchemaIsParticleEmptiable(xmlSchemaParticlePtr particle) in xmlSchemaIsParticleEmptiable() argument
14898 if ((particle == NULL) || (particle->minOccurs == 0) || in xmlSchemaIsParticleEmptiable()
14899 (particle->children == NULL)) in xmlSchemaIsParticleEmptiable()
14905 if (WXS_IS_MODEL_GROUP(particle->children)) in xmlSchemaIsParticleEmptiable()
14906 return (xmlSchemaGetParticleEmptiable(particle)); in xmlSchemaIsParticleEmptiable()
18452 xmlSchemaParticlePtr particle = in xmlSchemaFixupComplexType() local
18464 if ((particle == NULL) || in xmlSchemaFixupComplexType()
18465 ((particle->type == XML_SCHEMA_TYPE_PARTICLE) && in xmlSchemaFixupComplexType()
18466 ((particle->children->type == XML_SCHEMA_TYPE_ALL) || in xmlSchemaFixupComplexType()
18467 (particle->children->type == XML_SCHEMA_TYPE_SEQUENCE) || in xmlSchemaFixupComplexType()
18468 ((particle->children->type == XML_SCHEMA_TYPE_CHOICE) && in xmlSchemaFixupComplexType()
18469 (particle->minOccurs == 0))) && in xmlSchemaFixupComplexType()
18470 ( ((xmlSchemaTreeItemPtr) particle->children)->children == NULL))) { in xmlSchemaFixupComplexType()
18481 if ((particle == NULL) || in xmlSchemaFixupComplexType()
18482 (particle->children->type != XML_SCHEMA_TYPE_SEQUENCE)) { in xmlSchemaFixupComplexType()
18486 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18488 if (particle == NULL) in xmlSchemaFixupComplexType()
18493 particle->children = (xmlSchemaTreeItemPtr) in xmlSchemaFixupComplexType()
18496 if (particle->children == NULL) in xmlSchemaFixupComplexType()
18499 type->subtypes = (xmlSchemaTypePtr) particle; in xmlSchemaFixupComplexType()
18611 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18613 if (particle == NULL) in xmlSchemaFixupComplexType()
18618 particle->children = (xmlSchemaTreeItemPtr) in xmlSchemaFixupComplexType()
18621 if (particle->children == NULL) in xmlSchemaFixupComplexType()
18623 WXS_TYPE_CONTENTTYPE(type) = (xmlSchemaTypePtr) particle; in xmlSchemaFixupComplexType()
18630 particle->children->children = in xmlSchemaFixupComplexType()
18635 if (particle->children->children == NULL) in xmlSchemaFixupComplexType()
18637 particle = (xmlSchemaParticlePtr) in xmlSchemaFixupComplexType()
18638 particle->children->children; in xmlSchemaFixupComplexType()
18639 particle->children = in xmlSchemaFixupComplexType()
18644 particle->next = effectiveContent; in xmlSchemaFixupComplexType()
18665 particle->children->children = in xmlSchemaFixupComplexType()
19011 xmlSchemaTreeItemPtr particle) in xmlSchemaGetCircModelGrDefRef() argument
19017 for (; particle != NULL; particle = particle->next) { in xmlSchemaGetCircModelGrDefRef()
19018 term = particle->children; in xmlSchemaGetCircModelGrDefRef()
19025 return (particle); in xmlSchemaGetCircModelGrDefRef()
19125 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg); in xmlSchemaModelGroupToModelGroupDefFixup() local
19127 while (particle != NULL) { in xmlSchemaModelGroupToModelGroupDefFixup()
19128 if ((WXS_PARTICLE_TERM(particle) == NULL) || in xmlSchemaModelGroupToModelGroupDefFixup()
19129 ((WXS_PARTICLE_TERM(particle))->type != in xmlSchemaModelGroupToModelGroupDefFixup()
19132 particle = WXS_PTC_CAST particle->next; in xmlSchemaModelGroupToModelGroupDefFixup()
19135 if (WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle)) == NULL) { in xmlSchemaModelGroupToModelGroupDefFixup()
19139 WXS_PARTICLE_TERM(particle) = NULL; in xmlSchemaModelGroupToModelGroupDefFixup()
19140 particle = WXS_PTC_CAST particle->next; in xmlSchemaModelGroupToModelGroupDefFixup()
19146 WXS_PARTICLE_TERM(particle) = in xmlSchemaModelGroupToModelGroupDefFixup()
19147 WXS_TREE_CAST WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle)); in xmlSchemaModelGroupToModelGroupDefFixup()
19149 particle = WXS_PTC_CAST particle->next; in xmlSchemaModelGroupToModelGroupDefFixup()
20146 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg); in xmlSchemaResolveModelGroupParticleReferences() local
20153 while (particle != NULL) { in xmlSchemaResolveModelGroupParticleReferences()
20154 if ((WXS_PARTICLE_TERM(particle) == NULL) || in xmlSchemaResolveModelGroupParticleReferences()
20155 ((WXS_PARTICLE_TERM(particle))->type != in xmlSchemaResolveModelGroupParticleReferences()
20160 ref = WXS_QNAME_CAST WXS_PARTICLE_TERM(particle); in xmlSchemaResolveModelGroupParticleReferences()
20165 particle->children = NULL; in xmlSchemaResolveModelGroupParticleReferences()
20171 NULL, WXS_ITEM_NODE(particle), "ref", ref->name, in xmlSchemaResolveModelGroupParticleReferences()
20202 WXS_ITEM_NODE(particle), NULL, in xmlSchemaResolveModelGroupParticleReferences()
20210 particle->children = (xmlSchemaTreeItemPtr) refItem; in xmlSchemaResolveModelGroupParticleReferences()
20216 particle->children = (xmlSchemaTreeItemPtr) refItem; in xmlSchemaResolveModelGroupParticleReferences()
20219 particle = WXS_PTC_CAST particle->next; in xmlSchemaResolveModelGroupParticleReferences()