Lines Matching refs:child
1917 * @node: the current child
1927 xmlNodePtr child, int error,
1930 if (child != NULL)
1931 xmlSchemaPErr(ctxt, child, error, msg, str1, str2);
3199 * @child: the invalid child node
3210 xmlNodePtr child,
3218 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3223 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3227 xmlSchemaPErr2(ctxt, ownerElem, child, error,
6483 xmlNodePtr *child, xmlSchemaItemListPtr *list,
6488 while ((IS_SCHEMA((*child), "attribute")) ||
6489 (IS_SCHEMA((*child), "attributeGroup"))) {
6490 if (IS_SCHEMA((*child), "attribute")) {
6491 item = xmlSchemaParseLocalAttribute(ctxt, schema, *child,
6494 item = xmlSchemaParseAttributeGroupRef(ctxt, schema, *child);
6508 *child = (*child)->next;
6529 xmlNodePtr child = NULL;
6563 child = node->children;
6564 while (child != NULL) {
6565 if (IS_SCHEMA(child, "appinfo")) {
6572 attr = child->properties;
6584 xmlSchemaPValAttr(ctxt, NULL, child, "source",
6586 child = child->next;
6587 } else if (IS_SCHEMA(child, "documentation")) {
6594 attr = child->properties;
6615 attr = xmlSchemaGetPropNodeNs(child, (const char *) XML_XML_NAMESPACE, "lang");
6619 child = child->next;
6624 NULL, node, child, NULL, "(appinfo | documentation)*");
6626 child = child->next;
6649 xmlNodePtr child = NULL;
6663 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_FACET_NO_VALUE,
6693 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_TYPE,
6710 child = node->children;
6712 if (IS_SCHEMA(child, "annotation")) {
6713 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6714 child = child->next;
6716 if (child != NULL) {
6717 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_CHILD,
6718 "Facet %s has unexpected child content\n",
6909 xmlNodePtr child = NULL;
6956 child = node->children;
6957 if (IS_SCHEMA(child, "annotation")) {
6958 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6959 child = child->next;
6961 if (child != NULL) {
6964 NULL, node, child,
7002 xmlNodePtr child = NULL;
7008 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_NOTATION_NO_NAME,
7018 child = node->children;
7019 if (IS_SCHEMA(child, "annotation")) {
7020 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7021 child = child->next;
7023 if (child != NULL) {
7026 NULL, node, child,
7049 xmlNodePtr child = NULL;
7087 child = node->children;
7088 if (IS_SCHEMA(child, "annotation")) {
7089 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7090 child = child->next;
7092 if (child != NULL) {
7095 NULL, node, child,
7123 xmlNodePtr child = NULL;
7375 child = node->children;
7379 if (IS_SCHEMA(child, "annotation")) {
7380 xmlSchemaParseAnnotation(pctxt, child, 0);
7381 child = child->next;
7383 if (child != NULL) {
7386 NULL, node, child, NULL,
7455 if (IS_SCHEMA(child, "annotation")) {
7459 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7460 child = child->next;
7463 if (child != NULL) {
7464 if (IS_SCHEMA(child, "simpleType"))
7472 NULL, node, child, NULL,
7477 NULL, node, child, NULL,
7481 if (IS_SCHEMA(child, "simpleType")) {
7488 NULL, node, child,
7489 "The attribute 'type' and the <simpleType> child "
7493 xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7494 child = child->next;
7496 if (child != NULL)
7498 NULL, node, child, NULL,
7513 xmlNodePtr child = NULL;
7619 child = node->children;
7620 if (IS_SCHEMA(child, "annotation")) {
7621 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7622 child = child->next;
7624 if (IS_SCHEMA(child, "simpleType")) {
7631 NULL, node, child,
7632 "The attribute 'type' and the <simpleType> child "
7635 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7636 child = child->next;
7638 if (child != NULL)
7640 NULL, node, child, NULL,
7665 xmlNodePtr child = NULL;
7708 child = node->children;
7709 if (IS_SCHEMA(child, "annotation")) {
7713 xmlSchemaParseAnnotation(pctxt, child, 0);
7714 child = child->next;
7716 if (child != NULL) {
7719 NULL, node, child, NULL,
7797 xmlNodePtr child = NULL;
7846 child = node->children;
7847 if (IS_SCHEMA(child, "annotation")) {
7848 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7849 child = child->next;
7854 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child,
7863 if (IS_SCHEMA(child, "anyAttribute")) {
7865 schema, child);
7866 child = child->next;
7868 if (child != NULL) {
7871 NULL, node, child, NULL,
8228 xmlNodePtr child = NULL;
8289 child = node->children;
8290 if (IS_SCHEMA(child, "annotation")) {
8295 xmlSchemaParseAnnotation(ctxt, child, 1));
8296 child = child->next;
8298 if (child != NULL) {
8301 NULL, node, child,
8326 xmlNodePtr child = NULL;
8401 child = node->children;
8402 if (IS_SCHEMA(child, "annotation")) {
8403 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8404 child = child->next;
8406 if (child == NULL) {
8409 NULL, node, child,
8410 "A child element is missing",
8414 * Child element <selector>.
8416 if (IS_SCHEMA(child, "selector")) {
8418 item, child, 0);
8419 child = child->next;
8421 * Child elements <field>.
8423 if (IS_SCHEMA(child, "field")) {
8426 item, child, 1);
8436 child = child->next;
8437 } while (IS_SCHEMA(child, "field"));
8441 NULL, node, child,
8445 if (child != NULL) {
8448 NULL, node, child,
8475 xmlNodePtr child = NULL;
8506 child = node->children;
8507 if (IS_SCHEMA(child, "annotation")) {
8508 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8509 child = child->next;
8579 if (child != NULL) {
8581 NULL, node, child, NULL, "(annotation?)");
8771 if (IS_SCHEMA(child, "complexType")) {
8780 NULL, node, child,
8781 "The attribute 'type' and the <complexType> child are "
8784 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseComplexType(ctxt, schema, child, 0);
8785 child = child->next;
8786 } else if (IS_SCHEMA(child, "simpleType")) {
8795 NULL, node, child,
8796 "The attribute 'type' and the <simpleType> child are "
8799 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
8800 child = child->next;
8802 while ((IS_SCHEMA(child, "unique")) ||
8803 (IS_SCHEMA(child, "key")) || (IS_SCHEMA(child, "keyref"))) {
8804 if (IS_SCHEMA(child, "unique")) {
8805 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8807 } else if (IS_SCHEMA(child, "key")) {
8808 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8810 } else if (IS_SCHEMA(child, "keyref")) {
8811 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8819 child = child->next;
8821 if (child != NULL) {
8824 NULL, node, child,
8871 xmlNodePtr child = NULL;
8971 child = node->children;
8972 if (IS_SCHEMA(child, "annotation")) {
8977 xmlSchemaParseAnnotation(ctxt, child, 1));
8978 child = child->next;
8980 if (IS_SCHEMA(child, "simpleType")) {
8987 while (IS_SCHEMA(child, "simpleType")) {
8989 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
9000 child = child->next;
9003 if (child != NULL) {
9006 NULL, node, child, NULL, "(annotation?, simpleType*)");
9012 * be non-empty or there must be at least one simpleType [child].
9018 "at least one <simpleType> child must be present", NULL);
9040 xmlNodePtr child = NULL;
9088 child = node->children;
9089 if (IS_SCHEMA(child, "annotation")) {
9091 xmlSchemaParseAnnotation(ctxt, child, 1));
9092 child = child->next;
9094 if (IS_SCHEMA(child, "simpleType")) {
9097 * Either the itemType [attribute] or the <simpleType> [child] of
9104 "The attribute 'itemType' and the <simpleType> child "
9107 type->subtypes = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
9109 child = child->next;
9114 "Either the attribute 'itemType' or the <simpleType> child "
9117 if (child != NULL) {
9120 NULL, node, child, NULL, "(annotation?, simpleType?)");
9128 "Either the attribute 'itemType' or the <simpleType> child "
9151 xmlNodePtr child = NULL;
9306 child = node->children;
9307 if (IS_SCHEMA(child, "annotation")) {
9308 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9309 child = child->next;
9311 if (child == NULL) {
9313 NULL, node, child, NULL,
9315 } else if (IS_SCHEMA(child, "restriction")) {
9316 xmlSchemaParseRestriction(ctxt, schema, child,
9319 child = child->next;
9320 } else if (IS_SCHEMA(child, "list")) {
9321 xmlSchemaParseList(ctxt, schema, child);
9322 child = child->next;
9323 } else if (IS_SCHEMA(child, "union")) {
9324 xmlSchemaParseUnion(ctxt, schema, child);
9325 child = child->next;
9327 if (child != NULL) {
9329 NULL, node, child, NULL,
9342 "<simpleType> must have a <restriction> child", NULL);
9366 xmlNodePtr child = NULL;
9421 child = node->children;
9423 if (IS_SCHEMA(child, "annotation")) {
9427 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9428 child = child->next;
9430 if (child != NULL) {
9433 NULL, node, child, NULL,
9468 xmlNodePtr child = NULL;
9511 child = node->children;
9512 if (IS_SCHEMA(child, "annotation")) {
9513 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9514 child = child->next;
9516 if (IS_SCHEMA(child, "all")) {
9517 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9519 child = child->next;
9520 } else if (IS_SCHEMA(child, "choice")) {
9521 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9523 child = child->next;
9524 } else if (IS_SCHEMA(child, "sequence")) {
9525 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9527 child = child->next;
9532 if (child != NULL) {
9535 NULL, node, child, NULL,
9764 xmlNodePtr child;
9772 child = nodes;
9773 while ((IS_SCHEMA(child, "include")) ||
9774 (IS_SCHEMA(child, "import")) ||
9775 (IS_SCHEMA(child, "redefine")) ||
9776 (IS_SCHEMA(child, "annotation"))) {
9777 if (IS_SCHEMA(child, "annotation")) {
9778 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9783 } else if (IS_SCHEMA(child, "import")) {
9785 res = xmlSchemaParseImport(ctxt, schema, child);
9790 } else if (IS_SCHEMA(child, "include")) {
9792 res = xmlSchemaParseInclude(ctxt, schema, child);
9797 } else if (IS_SCHEMA(child, "redefine")) {
9799 res = xmlSchemaParseRedefine(ctxt, schema, child);
9805 child = child->next;
9811 while (child != NULL) {
9812 if (IS_SCHEMA(child, "complexType")) {
9813 xmlSchemaParseComplexType(ctxt, schema, child, 1);
9814 child = child->next;
9815 } else if (IS_SCHEMA(child, "simpleType")) {
9816 xmlSchemaParseSimpleType(ctxt, schema, child, 1);
9817 child = child->next;
9818 } else if (IS_SCHEMA(child, "element")) {
9819 xmlSchemaParseElement(ctxt, schema, child, NULL, 1);
9820 child = child->next;
9821 } else if (IS_SCHEMA(child, "attribute")) {
9822 xmlSchemaParseGlobalAttribute(ctxt, schema, child);
9823 child = child->next;
9824 } else if (IS_SCHEMA(child, "attributeGroup")) {
9825 xmlSchemaParseAttributeGroupDefinition(ctxt, schema, child);
9826 child = child->next;
9827 } else if (IS_SCHEMA(child, "group")) {
9828 xmlSchemaParseModelGroupDefinition(ctxt, schema, child);
9829 child = child->next;
9830 } else if (IS_SCHEMA(child, "notation")) {
9831 xmlSchemaParseNotation(ctxt, schema, child);
9832 child = child->next;
9836 NULL, child->parent, child,
9840 child = child->next;
9842 while (IS_SCHEMA(child, "annotation")) {
9846 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9851 child = child->next;
10724 xmlNodePtr child;
10779 child = node->children;
10780 if (IS_SCHEMA(child, "annotation")) {
10785 child = child->next;
10787 if (child != NULL) {
10790 NULL, node, child, NULL,
10969 xmlNodePtr child = NULL;
11108 child = node->children;
11118 while (IS_SCHEMA(child, "annotation") ||
11119 IS_SCHEMA(child, "simpleType") ||
11120 IS_SCHEMA(child, "complexType") ||
11121 IS_SCHEMA(child, "group") ||
11122 IS_SCHEMA(child, "attributeGroup")) {
11123 if (IS_SCHEMA(child, "annotation")) {
11127 } else if (IS_SCHEMA(child, "simpleType")) {
11128 xmlSchemaParseSimpleType(pctxt, schema, child, 1);
11129 } else if (IS_SCHEMA(child, "complexType")) {
11130 xmlSchemaParseComplexType(pctxt, schema, child, 1);
11132 } else if (IS_SCHEMA(child, "group")) {
11135 schema, child);
11136 } else if (IS_SCHEMA(child, "attributeGroup")) {
11139 child);
11141 child = child->next;
11146 if (IS_SCHEMA(child, "annotation")) {
11150 child = child->next;
11153 if (child != NULL) {
11157 NULL, node, child, NULL,
11161 NULL, node, child, NULL,
11232 xmlNodePtr child = NULL;
11307 child = node->children;
11308 if (IS_SCHEMA(child, "annotation")) {
11309 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
11310 child = child->next;
11315 while (IS_SCHEMA(child, "element")) {
11317 schema, child, &isElemRef, 0);
11329 NULL, child,
11338 NULL, child,
11350 child = child->next;
11352 if (child != NULL) {
11355 NULL, node, child, NULL,
11362 while ((IS_SCHEMA(child, "element")) ||
11363 (IS_SCHEMA(child, "group")) ||
11364 (IS_SCHEMA(child, "any")) ||
11365 (IS_SCHEMA(child, "choice")) ||
11366 (IS_SCHEMA(child, "sequence"))) {
11368 if (IS_SCHEMA(child, "element")) {
11370 xmlSchemaParseElement(ctxt, schema, child, &isElemRef, 0);
11373 } else if (IS_SCHEMA(child, "group")) {
11375 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11403 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11424 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11440 } else if (IS_SCHEMA(child, "any")) {
11442 xmlSchemaParseAny(ctxt, schema, child);
11443 } else if (IS_SCHEMA(child, "choice")) {
11444 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11446 } else if (IS_SCHEMA(child, "sequence")) {
11447 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11457 child = child->next;
11459 if (child != NULL) {
11462 NULL, node, child, NULL,
11496 xmlNodePtr child = NULL;
11581 child = node->children;
11582 if (IS_SCHEMA(child, "annotation")) {
11587 xmlSchemaParseAnnotation(ctxt, child, 1));
11588 child = child->next;
11594 if (IS_SCHEMA(child, "simpleType")) {
11598 * Either the base [attribute] or the simpleType [child] of the
11603 NULL, node, child,
11604 "The attribute 'base' and the <simpleType> child are "
11608 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11610 child = child->next;
11614 NULL, node, child,
11615 "Either the attribute 'base' or a <simpleType> child "
11625 if (IS_SCHEMA(child, "all")) {
11627 xmlSchemaParseModelGroup(ctxt, schema, child,
11629 child = child->next;
11630 } else if (IS_SCHEMA(child, "choice")) {
11633 schema, child, XML_SCHEMA_TYPE_CHOICE, 1);
11634 child = child->next;
11635 } else if (IS_SCHEMA(child, "sequence")) {
11637 xmlSchemaParseModelGroup(ctxt, schema, child,
11639 child = child->next;
11643 } else if (IS_SCHEMA(child, "group")) {
11645 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11650 child = child->next;
11659 if (IS_SCHEMA(child, "simpleType")) {
11665 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11668 child = child->next;
11688 while ((IS_SCHEMA(child, "minInclusive")) ||
11689 (IS_SCHEMA(child, "minExclusive")) ||
11690 (IS_SCHEMA(child, "maxInclusive")) ||
11691 (IS_SCHEMA(child, "maxExclusive")) ||
11692 (IS_SCHEMA(child, "totalDigits")) ||
11693 (IS_SCHEMA(child, "fractionDigits")) ||
11694 (IS_SCHEMA(child, "pattern")) ||
11695 (IS_SCHEMA(child, "enumeration")) ||
11696 (IS_SCHEMA(child, "whiteSpace")) ||
11697 (IS_SCHEMA(child, "length")) ||
11698 (IS_SCHEMA(child, "maxLength")) ||
11699 (IS_SCHEMA(child, "minLength"))) {
11700 facet = xmlSchemaParseFacet(ctxt, schema, child);
11709 child = child->next;
11741 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11748 if (IS_SCHEMA(child, "anyAttribute")) {
11750 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11751 child = child->next;
11754 if (child != NULL) {
11758 NULL, node, child, NULL,
11764 NULL, node, child, NULL,
11773 NULL, node, child, NULL,
11800 xmlNodePtr child = NULL;
11842 child = node->children;
11843 if (IS_SCHEMA(child, "annotation")) {
11848 xmlSchemaParseAnnotation(ctxt, child, 1));
11849 child = child->next;
11857 if (IS_SCHEMA(child, "all")) {
11860 child, XML_SCHEMA_TYPE_ALL, 1);
11861 child = child->next;
11862 } else if (IS_SCHEMA(child, "choice")) {
11865 child, XML_SCHEMA_TYPE_CHOICE, 1);
11866 child = child->next;
11867 } else if (IS_SCHEMA(child, "sequence")) {
11870 child, XML_SCHEMA_TYPE_SEQUENCE, 1);
11871 child = child->next;
11872 } else if (IS_SCHEMA(child, "group")) {
11874 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11879 child = child->next;
11882 if (child != NULL) {
11886 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11893 if (IS_SCHEMA(child, "anyAttribute")) {
11895 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11896 child = child->next;
11899 if (child != NULL) {
11904 NULL, node, child, NULL,
11911 NULL, node, child, NULL,
11936 xmlNodePtr child = NULL;
11968 child = node->children;
11969 if (IS_SCHEMA(child, "annotation")) {
11974 xmlSchemaParseAnnotation(ctxt, child, 1));
11975 child = child->next;
11977 if (child == NULL) {
11983 if (child == NULL) {
11989 if (IS_SCHEMA(child, "restriction")) {
11990 xmlSchemaParseRestriction(ctxt, schema, child,
11993 child = child->next;
11994 } else if (IS_SCHEMA(child, "extension")) {
11995 xmlSchemaParseExtension(ctxt, schema, child,
11998 child = child->next;
12000 if (child != NULL) {
12003 NULL, node, child, NULL,
12026 xmlNodePtr child = NULL;
12063 child = node->children;
12064 if (IS_SCHEMA(child, "annotation")) {
12069 xmlSchemaParseAnnotation(ctxt, child, 1));
12070 child = child->next;
12072 if (child == NULL) {
12078 if (child == NULL) {
12084 if (IS_SCHEMA(child, "restriction")) {
12085 xmlSchemaParseRestriction(ctxt, schema, child,
12088 child = child->next;
12089 } else if (IS_SCHEMA(child, "extension")) {
12090 xmlSchemaParseExtension(ctxt, schema, child,
12093 child = child->next;
12095 if (child != NULL) {
12098 NULL, node, child,
12120 xmlNodePtr child = NULL;
12288 child = node->children;
12289 if (IS_SCHEMA(child, "annotation")) {
12290 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
12291 child = child->next;
12294 if (IS_SCHEMA(child, "simpleContent")) {
12303 xmlSchemaParseSimpleContent(ctxt, schema, child,
12305 child = child->next;
12306 } else if (IS_SCHEMA(child, "complexContent")) {
12311 xmlSchemaParseComplexContent(ctxt, schema, child,
12313 child = child->next;
12329 if (IS_SCHEMA(child, "all")) {
12331 xmlSchemaParseModelGroup(ctxt, schema, child,
12333 child = child->next;
12334 } else if (IS_SCHEMA(child, "choice")) {
12336 xmlSchemaParseModelGroup(ctxt, schema, child,
12338 child = child->next;
12339 } else if (IS_SCHEMA(child, "sequence")) {
12341 xmlSchemaParseModelGroup(ctxt, schema, child,
12343 child = child->next;
12344 } else if (IS_SCHEMA(child, "group")) {
12346 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
12351 child = child->next;
12356 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
12363 if (IS_SCHEMA(child, "anyAttribute")) {
12364 type->attributeWildcard = xmlSchemaParseAnyAttribute(ctxt, schema, child);
12365 child = child->next;
12368 if (child != NULL) {
12371 NULL, node, child,
12383 "grand-child", NULL);
16706 * Attention: at this point the <simpleType> child is in
18284 * restricts the <restriction>'s <simpleType> child.
18296 "is missing a <simpleType> child, but was not catched "
23495 * both, the parent node-table entry and child entry are discarded from the
23555 * Compare every node-table entry of the child node,
23677 * the child node to the node table of the parent node.
26032 * we will not validate child elements of broken parents.
26111 "Missing child element(s)",
26900 "the child element was valid but neither the "