• Home
  • Raw
  • Download

Lines Matching refs:particle

4315 xmlSchemaContentModelDump(xmlSchemaParticlePtr particle, FILE * output, int depth)  in xmlSchemaContentModelDump()  argument
4322 if (particle == NULL) in xmlSchemaContentModelDump()
4328 if (particle->children == NULL) { in xmlSchemaContentModelDump()
4332 term = particle->children; in xmlSchemaContentModelDump()
4360 if (particle->minOccurs != 1) in xmlSchemaContentModelDump()
4361 fprintf(output, " min: %d", particle->minOccurs); in xmlSchemaContentModelDump()
4362 if (particle->maxOccurs >= UNBOUNDED) in xmlSchemaContentModelDump()
4364 else if (particle->maxOccurs != 1) in xmlSchemaContentModelDump()
4365 fprintf(output, " max: %d", particle->maxOccurs); in xmlSchemaContentModelDump()
4375 if (particle->next != NULL) in xmlSchemaContentModelDump()
4376 xmlSchemaContentModelDump((xmlSchemaParticlePtr) particle->next, in xmlSchemaContentModelDump()
6935 xmlSchemaParticlePtr particle; in xmlSchemaParseAny() local
7004 particle = xmlSchemaAddParticle(ctxt, node, min, max); in xmlSchemaParseAny()
7005 if (particle == NULL) in xmlSchemaParseAny()
7007 particle->annot = annot; in xmlSchemaParseAny()
7008 particle->children = (xmlSchemaTreeItemPtr) wild; in xmlSchemaParseAny()
7010 return (particle); in xmlSchemaParseAny()
8500 xmlSchemaParticlePtr particle = NULL; in xmlSchemaParseElement() local
8549 particle = xmlSchemaAddParticle(ctxt, node, min, max); in xmlSchemaParseElement()
8550 if (particle == NULL) in xmlSchemaParseElement()
8619 particle->children = (xmlSchemaTreeItemPtr) refer; in xmlSchemaParseElement()
8620 particle->annot = annot; in xmlSchemaParseElement()
8625 WXS_ADD_PENDING(ctxt, particle); in xmlSchemaParseElement()
8626 return ((xmlSchemaBasicItemPtr) particle); in xmlSchemaParseElement()
8865 particle->children = (xmlSchemaTreeItemPtr) decl; in xmlSchemaParseElement()
8866 return ((xmlSchemaBasicItemPtr) particle); in xmlSchemaParseElement()
8872 if (particle != NULL) in xmlSchemaParseElement()
8873 particle->annot = NULL; in xmlSchemaParseElement()
11257 xmlSchemaParticlePtr particle = NULL; in xmlSchemaParseModelGroup() local
11285 particle = xmlSchemaAddParticle(ctxt, node, min, max); in xmlSchemaParseModelGroup()
11286 if (particle == NULL) in xmlSchemaParseModelGroup()
11288 particle->children = (xmlSchemaTreeItemPtr) item; in xmlSchemaParseModelGroup()
11501 return ((xmlSchemaTreeItemPtr) particle); in xmlSchemaParseModelGroup()
12595 xmlSchemaParticlePtr particle, int counter, xmlAutomataStatePtr end) in xmlSchemaBuildContentModelForSubstGroup() argument
12603 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForSubstGroup()
12612 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle), in xmlSchemaBuildContentModelForSubstGroup()
12637 } else if (particle->maxOccurs == 1) { in xmlSchemaBuildContentModelForSubstGroup()
12669 int maxOccurs = particle->maxOccurs == UNBOUNDED ? in xmlSchemaBuildContentModelForSubstGroup()
12670 UNBOUNDED : particle->maxOccurs - 1; in xmlSchemaBuildContentModelForSubstGroup()
12671 int minOccurs = particle->minOccurs < 1 ? 0 : particle->minOccurs - 1; in xmlSchemaBuildContentModelForSubstGroup()
12697 if (particle->minOccurs == 0) { in xmlSchemaBuildContentModelForSubstGroup()
12712 xmlSchemaParticlePtr particle) in xmlSchemaBuildContentModelForElement() argument
12716 if (((xmlSchemaElementPtr) particle->children)->flags & in xmlSchemaBuildContentModelForElement()
12721 ret = xmlSchemaBuildContentModelForSubstGroup(ctxt, particle, -1, NULL); in xmlSchemaBuildContentModelForElement()
12726 elemDecl = (xmlSchemaElementPtr) particle->children; in xmlSchemaBuildContentModelForElement()
12730 if (particle->maxOccurs == 1) { in xmlSchemaBuildContentModelForElement()
12734 } else if ((particle->maxOccurs >= UNBOUNDED) && in xmlSchemaBuildContentModelForElement()
12735 (particle->minOccurs < 2)) { in xmlSchemaBuildContentModelForElement()
12744 int maxOccurs = particle->maxOccurs == UNBOUNDED ? in xmlSchemaBuildContentModelForElement()
12745 UNBOUNDED : particle->maxOccurs - 1; in xmlSchemaBuildContentModelForElement()
12746 int minOccurs = particle->minOccurs < 1 ? in xmlSchemaBuildContentModelForElement()
12747 0 : particle->minOccurs - 1; in xmlSchemaBuildContentModelForElement()
12757 if (particle->minOccurs == 0) { in xmlSchemaBuildContentModelForElement()
12777 xmlSchemaParticlePtr particle) in xmlSchemaBuildAContentModel() argument
12781 if (particle == NULL) { in xmlSchemaBuildAContentModel()
12785 if (particle->children == NULL) { in xmlSchemaBuildAContentModel()
12793 switch (particle->children->type) { in xmlSchemaBuildAContentModel()
12799 wild = (xmlSchemaWildcardPtr) particle->children; in xmlSchemaBuildAContentModel()
12804 if (particle->maxOccurs == 1) { in xmlSchemaBuildAContentModel()
12842 particle->maxOccurs == UNBOUNDED ? UNBOUNDED : in xmlSchemaBuildAContentModel()
12843 particle->maxOccurs - 1; in xmlSchemaBuildAContentModel()
12845 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1; in xmlSchemaBuildAContentModel()
12876 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
12884 ret = xmlSchemaBuildContentModelForElement(pctxt, particle); in xmlSchemaBuildAContentModel()
12894 if ((particle->minOccurs == 1) && (particle->maxOccurs == 1)) { in xmlSchemaBuildAContentModel()
12895 sub = particle->children->children; in xmlSchemaBuildAContentModel()
12906 if (particle->maxOccurs >= UNBOUNDED) { in xmlSchemaBuildAContentModel()
12907 if (particle->minOccurs > 1) { in xmlSchemaBuildAContentModel()
12916 particle->minOccurs - 1, UNBOUNDED); in xmlSchemaBuildAContentModel()
12918 sub = particle->children->children; in xmlSchemaBuildAContentModel()
12940 sub = particle->children->children; in xmlSchemaBuildAContentModel()
12956 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
12962 } else if ((particle->maxOccurs > 1) in xmlSchemaBuildAContentModel()
12963 || (particle->minOccurs > 1)) { in xmlSchemaBuildAContentModel()
12972 particle->minOccurs - 1, in xmlSchemaBuildAContentModel()
12973 particle->maxOccurs - 1); in xmlSchemaBuildAContentModel()
12975 sub = particle->children->children; in xmlSchemaBuildAContentModel()
12988 if ((particle->minOccurs == 0) || (ret == 1)) { in xmlSchemaBuildAContentModel()
12994 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13010 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13031 if (particle->maxOccurs == 1) { in xmlSchemaBuildAContentModel()
13032 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13044 int maxOccurs = particle->maxOccurs == UNBOUNDED ? in xmlSchemaBuildAContentModel()
13045 UNBOUNDED : particle->maxOccurs - 1; in xmlSchemaBuildAContentModel()
13047 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1; in xmlSchemaBuildAContentModel()
13058 sub = particle->children->children; in xmlSchemaBuildAContentModel()
13073 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13087 sub = (xmlSchemaParticlePtr) particle->children->children; in xmlSchemaBuildAContentModel()
13148 if (particle->minOccurs == 0) { in xmlSchemaBuildAContentModel()
13168 WXS_ITEM_TYPE_NAME(particle->children), NULL); in xmlSchemaBuildAContentModel()
14689 xmlSchemaGetParticleTotalRangeMin(xmlSchemaParticlePtr particle) in xmlSchemaGetParticleTotalRangeMin() argument
14691 if ((particle->children == NULL) || in xmlSchemaGetParticleTotalRangeMin()
14692 (particle->minOccurs == 0)) in xmlSchemaGetParticleTotalRangeMin()
14694 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) { in xmlSchemaGetParticleTotalRangeMin()
14697 (xmlSchemaParticlePtr) particle->children->children; in xmlSchemaGetParticleTotalRangeMin()
14713 return (particle->minOccurs * min); in xmlSchemaGetParticleTotalRangeMin()
14718 (xmlSchemaParticlePtr) particle->children->children; in xmlSchemaGetParticleTotalRangeMin()
14730 return (particle->minOccurs * sum); in xmlSchemaGetParticleTotalRangeMin()
14745 xmlSchemaGetParticleTotalRangeMax(xmlSchemaParticlePtr particle)
14747 if ((particle->children == NULL) ||
14748 (particle->children->children == NULL))
14750 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14753 (xmlSchemaParticlePtr) particle->children->children;
14769 return (particle->maxOccurs * max);
14774 (xmlSchemaParticlePtr) particle->children->children;
14786 if ((cur > 0) && (particle->maxOccurs == UNBOUNDED))
14791 return (particle->maxOccurs * sum);
14806 xmlSchemaIsParticleEmptiable(xmlSchemaParticlePtr particle) in xmlSchemaIsParticleEmptiable() argument
14811 if ((particle == NULL) || (particle->minOccurs == 0) || in xmlSchemaIsParticleEmptiable()
14812 (particle->children == NULL)) in xmlSchemaIsParticleEmptiable()
14818 if (WXS_IS_MODEL_GROUP(particle->children)) { in xmlSchemaIsParticleEmptiable()
14819 if (xmlSchemaGetParticleTotalRangeMin(particle) == 0) in xmlSchemaIsParticleEmptiable()
18367 xmlSchemaParticlePtr particle = in xmlSchemaFixupComplexType() local
18379 if ((particle == NULL) || in xmlSchemaFixupComplexType()
18380 ((particle->type == XML_SCHEMA_TYPE_PARTICLE) && in xmlSchemaFixupComplexType()
18381 ((particle->children->type == XML_SCHEMA_TYPE_ALL) || in xmlSchemaFixupComplexType()
18382 (particle->children->type == XML_SCHEMA_TYPE_SEQUENCE) || in xmlSchemaFixupComplexType()
18383 ((particle->children->type == XML_SCHEMA_TYPE_CHOICE) && in xmlSchemaFixupComplexType()
18384 (particle->minOccurs == 0))) && in xmlSchemaFixupComplexType()
18385 ( ((xmlSchemaTreeItemPtr) particle->children)->children == NULL))) { in xmlSchemaFixupComplexType()
18396 if ((particle == NULL) || in xmlSchemaFixupComplexType()
18397 (particle->children->type != XML_SCHEMA_TYPE_SEQUENCE)) { in xmlSchemaFixupComplexType()
18401 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18403 if (particle == NULL) in xmlSchemaFixupComplexType()
18408 particle->children = (xmlSchemaTreeItemPtr) in xmlSchemaFixupComplexType()
18411 if (particle->children == NULL) in xmlSchemaFixupComplexType()
18414 type->subtypes = (xmlSchemaTypePtr) particle; in xmlSchemaFixupComplexType()
18526 particle = xmlSchemaAddParticle(pctxt, in xmlSchemaFixupComplexType()
18528 if (particle == NULL) in xmlSchemaFixupComplexType()
18533 particle->children = (xmlSchemaTreeItemPtr) in xmlSchemaFixupComplexType()
18536 if (particle->children == NULL) in xmlSchemaFixupComplexType()
18538 WXS_TYPE_CONTENTTYPE(type) = (xmlSchemaTypePtr) particle; in xmlSchemaFixupComplexType()
18545 particle->children->children = in xmlSchemaFixupComplexType()
18550 if (particle->children->children == NULL) in xmlSchemaFixupComplexType()
18552 particle = (xmlSchemaParticlePtr) in xmlSchemaFixupComplexType()
18553 particle->children->children; in xmlSchemaFixupComplexType()
18554 particle->children = in xmlSchemaFixupComplexType()
18559 particle->next = effectiveContent; in xmlSchemaFixupComplexType()
18580 particle->children->children = in xmlSchemaFixupComplexType()
18926 xmlSchemaTreeItemPtr particle) in xmlSchemaGetCircModelGrDefRef() argument
18932 for (; particle != NULL; particle = particle->next) { in xmlSchemaGetCircModelGrDefRef()
18933 term = particle->children; in xmlSchemaGetCircModelGrDefRef()
18940 return (particle); in xmlSchemaGetCircModelGrDefRef()
19040 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg); in xmlSchemaModelGroupToModelGroupDefFixup() local
19042 while (particle != NULL) { in xmlSchemaModelGroupToModelGroupDefFixup()
19043 if ((WXS_PARTICLE_TERM(particle) == NULL) || in xmlSchemaModelGroupToModelGroupDefFixup()
19044 ((WXS_PARTICLE_TERM(particle))->type != in xmlSchemaModelGroupToModelGroupDefFixup()
19047 particle = WXS_PTC_CAST particle->next; in xmlSchemaModelGroupToModelGroupDefFixup()
19050 if (WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle)) == NULL) { in xmlSchemaModelGroupToModelGroupDefFixup()
19054 WXS_PARTICLE_TERM(particle) = NULL; in xmlSchemaModelGroupToModelGroupDefFixup()
19055 particle = WXS_PTC_CAST particle->next; in xmlSchemaModelGroupToModelGroupDefFixup()
19061 WXS_PARTICLE_TERM(particle) = in xmlSchemaModelGroupToModelGroupDefFixup()
19062 WXS_TREE_CAST WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle)); in xmlSchemaModelGroupToModelGroupDefFixup()
19064 particle = WXS_PTC_CAST particle->next; in xmlSchemaModelGroupToModelGroupDefFixup()
20061 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg); in xmlSchemaResolveModelGroupParticleReferences() local
20068 while (particle != NULL) { in xmlSchemaResolveModelGroupParticleReferences()
20069 if ((WXS_PARTICLE_TERM(particle) == NULL) || in xmlSchemaResolveModelGroupParticleReferences()
20070 ((WXS_PARTICLE_TERM(particle))->type != in xmlSchemaResolveModelGroupParticleReferences()
20075 ref = WXS_QNAME_CAST WXS_PARTICLE_TERM(particle); in xmlSchemaResolveModelGroupParticleReferences()
20080 particle->children = NULL; in xmlSchemaResolveModelGroupParticleReferences()
20086 NULL, WXS_ITEM_NODE(particle), "ref", ref->name, in xmlSchemaResolveModelGroupParticleReferences()
20117 WXS_ITEM_NODE(particle), NULL, in xmlSchemaResolveModelGroupParticleReferences()
20125 particle->children = (xmlSchemaTreeItemPtr) refItem; in xmlSchemaResolveModelGroupParticleReferences()
20131 particle->children = (xmlSchemaTreeItemPtr) refItem; in xmlSchemaResolveModelGroupParticleReferences()
20134 particle = WXS_PTC_CAST particle->next; in xmlSchemaResolveModelGroupParticleReferences()