• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

Lines Matching defs:particle

656  * A particle component.
664 xmlSchemaTreeItemPtr next; /* next particle */
685 xmlSchemaTreeItemPtr children; /* first particle (OR "element decl" OR "wildcard") */
1140 return(BAD_CAST "particle");
4258 * @particle: the schema particle
4265 xmlSchemaContentModelDump(xmlSchemaParticlePtr particle, FILE * output, int depth)
4272 if (particle == NULL)
4278 if (particle->children == NULL) {
4279 fprintf(output, "MISSING particle term\n");
4282 term = particle->children;
4310 if (particle->minOccurs != 1)
4311 fprintf(output, " min: %d", particle->minOccurs);
4312 if (particle->maxOccurs >= UNBOUNDED)
4314 else if (particle->maxOccurs != 1)
4315 fprintf(output, " max: %d", particle->maxOccurs);
4325 if (particle->next != NULL)
4326 xmlSchemaContentModelDump((xmlSchemaParticlePtr) particle->next,
5480 * Adds an XML schema particle component.
5494 fprintf(stderr, "Adding particle component\n");
5499 xmlSchemaPErrMemory(ctxt, "allocating particle component",
6824 * TODO: Maybe we should better not create the particle,
6863 * Parsea a XML schema <any> element. A particle and wildcard
6868 * Returns the particle or NULL in case of error or if minOccurs==maxOccurs==0
6874 xmlSchemaParticlePtr particle;
6941 * Create the particle.
6943 particle = xmlSchemaAddParticle(ctxt, node, min, max);
6944 if (particle == NULL)
6946 particle->annot = annot;
6947 particle->children = (xmlSchemaTreeItemPtr) wild;
6949 return (particle);
8431 * Returns the element declaration or a particle; NULL in case
8432 * of an error or if the particle has minOccurs==maxOccurs==0.
8439 xmlSchemaParticlePtr particle = NULL;
8478 * Skip particle part if a global declaration.
8483 * The particle part ==================================================
8488 particle = xmlSchemaAddParticle(ctxt, node, min, max);
8489 if (particle == NULL)
8552 * Create the reference item and attach it to the particle.
8558 particle->children = (xmlSchemaTreeItemPtr) refer;
8559 particle->annot = annot;
8561 * Add the particle to pending components, since the reference
8564 WXS_ADD_PENDING(ctxt, particle);
8565 return ((xmlSchemaBasicItemPtr) particle);
8804 particle->children = (xmlSchemaTreeItemPtr) decl;
8805 return ((xmlSchemaBasicItemPtr) particle);
8811 if (particle != NULL)
8812 particle->annot = NULL;
9323 * We will return a particle component with a qname-component or
11151 * @particleNeeded: if a a model group with a particle
11176 xmlSchemaParticlePtr particle = NULL;
11202 * Create a particle
11204 particle = xmlSchemaAddParticle(ctxt, node, min, max);
11205 if (particle == NULL)
11207 particle->children = (xmlSchemaTreeItemPtr) item;
11420 return ((xmlSchemaTreeItemPtr) particle);
12509 xmlSchemaParticlePtr particle, int counter, xmlAutomataStatePtr end)
12516 elemDecl = (xmlSchemaElementPtr) particle->children;
12525 xmlSchemaPErr(pctxt, WXS_ITEM_NODE(particle),
12550 } else if (particle->maxOccurs == 1) {
12582 int maxOccurs = particle->maxOccurs == UNBOUNDED ?
12583 UNBOUNDED : particle->maxOccurs - 1;
12584 int minOccurs = particle->minOccurs < 1 ? 0 : particle->minOccurs - 1;
12610 if (particle->minOccurs == 0)
12617 xmlSchemaParticlePtr particle)
12619 if (((xmlSchemaElementPtr) particle->children)->flags &
12624 xmlSchemaBuildContentModelForSubstGroup(ctxt, particle, -1, NULL);
12629 elemDecl = (xmlSchemaElementPtr) particle->children;
12633 if (particle->maxOccurs == 1) {
12637 } else if ((particle->maxOccurs >= UNBOUNDED) &&
12638 (particle->minOccurs < 2)) {
12647 int maxOccurs = particle->maxOccurs == UNBOUNDED ?
12648 UNBOUNDED : particle->maxOccurs - 1;
12649 int minOccurs = particle->minOccurs < 1 ?
12650 0 : particle->minOccurs - 1;
12660 if (particle->minOccurs == 0)
12668 * @particle: the particle component
12676 xmlSchemaParticlePtr particle)
12678 if (particle == NULL) {
12679 PERROR_INT("xmlSchemaBuildAContentModel", "particle is NULL");
12682 if (particle->children == NULL) {
12684 * Just return in this case. A missing "term" of the particle
12690 switch (particle->children->type) {
12696 wild = (xmlSchemaWildcardPtr) particle->children;
12701 if (particle->maxOccurs == 1) {
12739 particle->maxOccurs == UNBOUNDED ? UNBOUNDED : particle->maxOccurs - 1;
12741 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1;
12772 if (particle->minOccurs == 0) {
12779 xmlSchemaBuildContentModelForElement(pctxt, particle);
12788 if ((particle->minOccurs == 1) && (particle->maxOccurs == 1)) {
12789 sub = particle->children->children;
12798 if (particle->maxOccurs >= UNBOUNDED) {
12799 if (particle->minOccurs > 1) {
12808 particle->minOccurs - 1, UNBOUNDED);
12810 sub = particle->children->children;
12828 sub = particle->children->children;
12843 if (particle->minOccurs == 0) {
12848 } else if ((particle->maxOccurs > 1)
12849 || (particle->minOccurs > 1)) {
12858 particle->minOccurs - 1,
12859 particle->maxOccurs - 1);
12861 sub = particle->children->children;
12873 if (particle->minOccurs == 0) {
12878 sub = particle->children->children;
12884 if (particle->minOccurs == 0) {
12903 if (particle->maxOccurs == 1) {
12904 sub = particle->children->children;
12915 int maxOccurs = particle->maxOccurs == UNBOUNDED ?
12916 UNBOUNDED : particle->maxOccurs - 1;
12918 particle->minOccurs < 1 ? 0 : particle->minOccurs - 1;
12929 sub = particle->children->children;
12941 if (particle->minOccurs == 0) {
12953 sub = (xmlSchemaParticlePtr) particle->children->children;
12963 "<element> particle has no term");
13006 lax = particle->minOccurs == 0;
13024 WXS_ITEM_TYPE_NAME(particle->children), NULL);
13094 * or particle, which has an element declaration as it's
14536 * @particle: the particle
14544 xmlSchemaGetParticleTotalRangeMin(xmlSchemaParticlePtr particle)
14546 if ((particle->children == NULL) ||
14547 (particle->minOccurs == 0))
14549 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14552 (xmlSchemaParticlePtr) particle->children->children;
14568 return (particle->minOccurs * min);
14573 (xmlSchemaParticlePtr) particle->children->children;
14585 return (particle->minOccurs * sum);
14591 * @particle: the particle
14599 xmlSchemaGetParticleTotalRangeMax(xmlSchemaParticlePtr particle)
14601 if ((particle->children == NULL) ||
14602 (particle->children->children == NULL))
14604 if (particle->children->type == XML_SCHEMA_TYPE_CHOICE) {
14607 (xmlSchemaParticlePtr) particle->children->children;
14623 return (particle->maxOccurs * max);
14628 (xmlSchemaParticlePtr) particle->children->children;
14640 if ((cur > 0) && (particle->maxOccurs == UNBOUNDED))
14645 return (particle->maxOccurs * sum);
14651 * @particle: the particle
14654 * Checks whether the given particle is emptiable.
14659 xmlSchemaIsParticleEmptiable(xmlSchemaParticlePtr particle)
14664 if ((particle == NULL) || (particle->minOccurs == 0) ||
14665 (particle->children == NULL))
14671 if (WXS_IS_MODEL_GROUP(particle->children)) {
14672 if (xmlSchemaGetParticleTotalRangeMin(particle) == 0)
14966 * The ball of letters below means, that if we have a particle
14996 /* Remove the particle. */
14999 /* Remove the particle. */
15004 * particle's {term}.
15011 * "1.2 the {term} property of a particle with
15020 "The particle's {max occurs} must be 1, since the "
15716 * type}'s particle must be �emptiable� as defined by
15727 "and a particle emptiable", NULL);
16171 * definition itself must specify a particle.
16176 "The content type must specify a particle", NULL);
16207 * URGENT TODO SPEC (1.4.3.2.2.2) "The particle of the
16209 * of the {base type definition}'s particle, as defined
16377 * and have a particle which is �emptiable� as defined in
16386 "a simple type or 'mixed' and an emptiable particle", NULL);
16406 * definition} must be elementOnly or mixed and have a particle
16416 "particle", NULL);
16439 * SPEC (5.4.2) "The particle of the complex type definition itself
16440 * must be a �valid restriction� of the particle of the {content
16576 * is mixed and a particle emptiable.
16617 "mixed content and particle emptiable. The base type "
16680 * @r: the restricting element declaration particle
16681 * @b: the base element declaration particle
16787 * @r: the restricting element declaration particle
16788 * @b: the base wildcard particle
16807 * SPEC "For an element declaration particle to be a �valid restriction�
16808 * of a wildcard particle all of the following must be true:"
16831 * @r: the restricting element declaration particle
16832 * @b: the base model group particle
16857 * @r: the restricting wildcard particle
16858 * @b: the base wildcard particle
16913 * Particle Valid (Restriction) (cos-particle-restrict)
16934 * SPEC (1) "They are the same particle."
16946 * @r: the model group particle
16947 * @b: the base wildcard particle
16970 * SPEC "For a group particle to be a �valid restriction� of a
16971 * wildcard particle..."
16999 * @r: the <all> or <sequence> model group particle
17000 * @b: the base <all> or <sequence> model group particle
17025 * SPEC "For an all or sequence group particle to be a �valid
17026 * restriction� of another group particle with the same {compositor}..."
17917 "mixed as emptiable particle\n");
18158 * an emptiable particle, then a simple type definition which
18216 xmlSchemaParticlePtr particle =
18228 if ((particle == NULL) ||
18229 ((particle->type == XML_SCHEMA_TYPE_PARTICLE) &&
18230 ((particle->children->type == XML_SCHEMA_TYPE_ALL) ||
18231 (particle->children->type == XML_SCHEMA_TYPE_SEQUENCE) ||
18232 ((particle->children->type == XML_SCHEMA_TYPE_CHOICE) &&
18233 (particle->minOccurs == 0))) &&
18234 ( ((xmlSchemaTreeItemPtr) particle->children)->children == NULL))) {
18238 * a particle whose properties are as follows:..."
18241 * minOccurs/maxOccurs = 1 (i.e. a "particle emptiable").
18245 if ((particle == NULL) ||
18246 (particle->children->type != XML_SCHEMA_TYPE_SEQUENCE)) {
18248 * Create the particle.
18250 particle = xmlSchemaAddParticle(pctxt,
18252 if (particle == NULL)
18257 particle->children = (xmlSchemaTreeItemPtr)
18260 if (particle->children == NULL)
18263 type->subtypes = (xmlSchemaTypePtr) particle;
18275 * SPEC (2.2) "otherwise the particle corresponding to the
18373 * Create the particle.
18375 particle = xmlSchemaAddParticle(pctxt,
18377 if (particle == NULL)
18382 particle->children = (xmlSchemaTreeItemPtr)
18385 if (particle->children == NULL)
18387 WXS_TYPE_CONTENTTYPE(type) = (xmlSchemaTypePtr) particle;
18389 * SPEC "the particle of the {content type} of
18391 * Create a duplicate of the base type's particle
18394 particle->children->children =
18399 if (particle->children->children == NULL)
18401 particle = (xmlSchemaParticlePtr)
18402 particle->children->children;
18403 particle->children =
18408 particle->next = effectiveContent;
18411 * new-particle
18413 * new-particle
18415 * this-particle
18429 particle->children->children =
18765 * @particle: the first particle
18770 * Returns the particle with the circular model group definition reference,
18775 xmlSchemaTreeItemPtr particle)
18781 for (; particle != NULL; particle = particle->next) {
18782 term = particle->children;
18789 return (particle);
18834 * of a group there must not be at any depth a particle whose {term}
18876 * of the referencing particle.
18889 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg);
18891 while (particle != NULL) {
18892 if ((WXS_PARTICLE_TERM(particle) == NULL) ||
18893 ((WXS_PARTICLE_TERM(particle))->type !=
18896 particle = WXS_PTC_CAST particle->next;
18899 if (WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle)) == NULL) {
18901 * TODO: Remove the particle.
18903 WXS_PARTICLE_TERM(particle) = NULL;
18904 particle = WXS_PTC_CAST particle->next;
18908 * Assign the model group to the {term} of the particle.
18910 WXS_PARTICLE_TERM(particle) =
18911 WXS_TREE_CAST WXS_MODELGROUPDEF_MODEL(WXS_PARTICLE_TERM(particle));
18913 particle = WXS_PTC_CAST particle->next;
19761 * @ctxtParticle: the first particle of the context component
19762 * @searchParticle: the element declaration particle to be analysed
19783 * Just return in this case. A missing "term" of the particle
19843 sub = WXS_PARTICLE_TERM(particle)->children; (xmlSchemaParticlePtr)
19875 * @item: an schema element declaration/particle
19901 * @particle: a particle component
19912 xmlSchemaParticlePtr particle = WXS_MODELGROUP_PARTICLE(mg);
19919 while (particle != NULL) {
19920 if ((WXS_PARTICLE_TERM(particle) == NULL) ||
19921 ((WXS_PARTICLE_TERM(particle))->type !=
19926 ref = WXS_QNAME_CAST WXS_PARTICLE_TERM(particle);
19931 particle->children = NULL;
19937 NULL, WXS_ITEM_NODE(particle), "ref", ref->name,
19939 /* TODO: remove the particle. */
19944 /* TODO: remove the particle. */
19948 * itself to the "term" of the particle. This will ease
19962 * (1.2) "the {term} property of a particle [... of] the "
19968 WXS_ITEM_NODE(particle), NULL,
19973 /* TODO: remove the particle. */
19976 particle->children = (xmlSchemaTreeItemPtr) refItem;
19982 particle->children = (xmlSchemaTreeItemPtr) refItem;
19985 particle = WXS_PTC_CAST particle->next;
20729 * (local components), and those particle components need a bucket
20779 * - the term of the particle (e.g. a model group)
20891 * Such a reference is reflected by a particle at the component
25776 * type}'s particle must be �emptiable� as defined by
25787 "or mixed content and a particle emptiable");
26480 * particle, as defined in Element Sequence Locally Valid