Lines Matching full:child
1912 * @node: the current child
1922 xmlNodePtr child, int error,
1925 if (child != NULL)
1926 xmlSchemaPErr(ctxt, child, error, msg, str1, str2);
3165 * @child: the invalid child node
3176 xmlNodePtr child,
3184 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3189 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3193 xmlSchemaPErr2(ctxt, ownerElem, child, error,
6449 xmlNodePtr *child, xmlSchemaItemListPtr *list,
6454 while ((IS_SCHEMA((*child), "attribute")) ||
6455 (IS_SCHEMA((*child), "attributeGroup"))) {
6456 if (IS_SCHEMA((*child), "attribute")) {
6457 item = xmlSchemaParseLocalAttribute(ctxt, schema, *child,
6460 item = xmlSchemaParseAttributeGroupRef(ctxt, schema, *child);
6474 *child = (*child)->next;
6495 xmlNodePtr child = NULL;
6529 child = node->children;
6530 while (child != NULL) {
6531 if (IS_SCHEMA(child, "appinfo")) {
6538 attr = child->properties;
6550 xmlSchemaPValAttr(ctxt, NULL, child, "source",
6552 child = child->next;
6553 } else if (IS_SCHEMA(child, "documentation")) {
6560 attr = child->properties;
6581 attr = xmlSchemaGetPropNodeNs(child, (const char *) XML_XML_NAMESPACE, "lang");
6585 child = child->next;
6590 NULL, node, child, NULL, "(appinfo | documentation)*");
6592 child = child->next;
6615 xmlNodePtr child = NULL;
6629 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_FACET_NO_VALUE,
6659 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_TYPE,
6676 child = node->children;
6678 if (IS_SCHEMA(child, "annotation")) {
6679 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6680 child = child->next;
6682 if (child != NULL) {
6683 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_CHILD,
6684 "Facet %s has unexpected child content\n",
6875 xmlNodePtr child = NULL;
6922 child = node->children;
6923 if (IS_SCHEMA(child, "annotation")) {
6924 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6925 child = child->next;
6927 if (child != NULL) {
6930 NULL, node, child,
6968 xmlNodePtr child = NULL;
6974 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_NOTATION_NO_NAME,
6984 child = node->children;
6985 if (IS_SCHEMA(child, "annotation")) {
6986 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6987 child = child->next;
6989 if (child != NULL) {
6992 NULL, node, child,
7015 xmlNodePtr child = NULL;
7053 child = node->children;
7054 if (IS_SCHEMA(child, "annotation")) {
7055 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7056 child = child->next;
7058 if (child != NULL) {
7061 NULL, node, child,
7089 xmlNodePtr child = NULL;
7341 child = node->children;
7345 if (IS_SCHEMA(child, "annotation")) {
7346 xmlSchemaParseAnnotation(pctxt, child, 0);
7347 child = child->next;
7349 if (child != NULL) {
7352 NULL, node, child, NULL,
7421 if (IS_SCHEMA(child, "annotation")) {
7425 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7426 child = child->next;
7429 if (child != NULL) {
7430 if (IS_SCHEMA(child, "simpleType"))
7438 NULL, node, child, NULL,
7443 NULL, node, child, NULL,
7447 if (IS_SCHEMA(child, "simpleType")) {
7454 NULL, node, child,
7455 "The attribute 'type' and the <simpleType> child "
7459 xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7460 child = child->next;
7462 if (child != NULL)
7464 NULL, node, child, NULL,
7479 xmlNodePtr child = NULL;
7585 child = node->children;
7586 if (IS_SCHEMA(child, "annotation")) {
7587 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7588 child = child->next;
7590 if (IS_SCHEMA(child, "simpleType")) {
7597 NULL, node, child,
7598 "The attribute 'type' and the <simpleType> child "
7601 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7602 child = child->next;
7604 if (child != NULL)
7606 NULL, node, child, NULL,
7631 xmlNodePtr child = NULL;
7674 child = node->children;
7675 if (IS_SCHEMA(child, "annotation")) {
7679 xmlSchemaParseAnnotation(pctxt, child, 0);
7680 child = child->next;
7682 if (child != NULL) {
7685 NULL, node, child, NULL,
7763 xmlNodePtr child = NULL;
7812 child = node->children;
7813 if (IS_SCHEMA(child, "annotation")) {
7814 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7815 child = child->next;
7820 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child,
7829 if (IS_SCHEMA(child, "anyAttribute")) {
7831 schema, child);
7832 child = child->next;
7834 if (child != NULL) {
7837 NULL, node, child, NULL,
8194 xmlNodePtr child = NULL;
8255 child = node->children;
8256 if (IS_SCHEMA(child, "annotation")) {
8261 xmlSchemaParseAnnotation(ctxt, child, 1));
8262 child = child->next;
8264 if (child != NULL) {
8267 NULL, node, child,
8292 xmlNodePtr child = NULL;
8367 child = node->children;
8368 if (IS_SCHEMA(child, "annotation")) {
8369 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8370 child = child->next;
8372 if (child == NULL) {
8375 NULL, node, child,
8376 "A child element is missing",
8380 * Child element <selector>.
8382 if (IS_SCHEMA(child, "selector")) {
8384 item, child, 0);
8385 child = child->next;
8387 * Child elements <field>.
8389 if (IS_SCHEMA(child, "field")) {
8392 item, child, 1);
8402 child = child->next;
8403 } while (IS_SCHEMA(child, "field"));
8407 NULL, node, child,
8411 if (child != NULL) {
8414 NULL, node, child,
8441 xmlNodePtr child = NULL;
8472 child = node->children;
8473 if (IS_SCHEMA(child, "annotation")) {
8474 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8475 child = child->next;
8545 if (child != NULL) {
8547 NULL, node, child, NULL, "(annotation?)");
8737 if (IS_SCHEMA(child, "complexType")) {
8746 NULL, node, child,
8747 "The attribute 'type' and the <complexType> child are "
8750 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseComplexType(ctxt, schema, child, 0);
8751 child = child->next;
8752 } else if (IS_SCHEMA(child, "simpleType")) {
8761 NULL, node, child,
8762 "The attribute 'type' and the <simpleType> child are "
8765 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
8766 child = child->next;
8768 while ((IS_SCHEMA(child, "unique")) ||
8769 (IS_SCHEMA(child, "key")) || (IS_SCHEMA(child, "keyref"))) {
8770 if (IS_SCHEMA(child, "unique")) {
8771 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8773 } else if (IS_SCHEMA(child, "key")) {
8774 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8776 } else if (IS_SCHEMA(child, "keyref")) {
8777 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8785 child = child->next;
8787 if (child != NULL) {
8790 NULL, node, child,
8837 xmlNodePtr child = NULL;
8937 child = node->children;
8938 if (IS_SCHEMA(child, "annotation")) {
8943 xmlSchemaParseAnnotation(ctxt, child, 1));
8944 child = child->next;
8946 if (IS_SCHEMA(child, "simpleType")) {
8953 while (IS_SCHEMA(child, "simpleType")) {
8955 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
8966 child = child->next;
8969 if (child != NULL) {
8972 NULL, node, child, NULL, "(annotation?, simpleType*)");
8978 * be non-empty or there must be at least one simpleType [child].
8984 "at least one <simpleType> child must be present", NULL);
9006 xmlNodePtr child = NULL;
9054 child = node->children;
9055 if (IS_SCHEMA(child, "annotation")) {
9057 xmlSchemaParseAnnotation(ctxt, child, 1));
9058 child = child->next;
9060 if (IS_SCHEMA(child, "simpleType")) {
9063 * Either the itemType [attribute] or the <simpleType> [child] of
9070 "The attribute 'itemType' and the <simpleType> child "
9073 type->subtypes = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
9075 child = child->next;
9080 "Either the attribute 'itemType' or the <simpleType> child "
9083 if (child != NULL) {
9086 NULL, node, child, NULL, "(annotation?, simpleType?)");
9094 "Either the attribute 'itemType' or the <simpleType> child "
9117 xmlNodePtr child = NULL;
9272 child = node->children;
9273 if (IS_SCHEMA(child, "annotation")) {
9274 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9275 child = child->next;
9277 if (child == NULL) {
9279 NULL, node, child, NULL,
9281 } else if (IS_SCHEMA(child, "restriction")) {
9282 xmlSchemaParseRestriction(ctxt, schema, child,
9285 child = child->next;
9286 } else if (IS_SCHEMA(child, "list")) {
9287 xmlSchemaParseList(ctxt, schema, child);
9288 child = child->next;
9289 } else if (IS_SCHEMA(child, "union")) {
9290 xmlSchemaParseUnion(ctxt, schema, child);
9291 child = child->next;
9293 if (child != NULL) {
9295 NULL, node, child, NULL,
9308 "<simpleType> must have a <restriction> child", NULL);
9332 xmlNodePtr child = NULL;
9387 child = node->children;
9389 if (IS_SCHEMA(child, "annotation")) {
9393 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9394 child = child->next;
9396 if (child != NULL) {
9399 NULL, node, child, NULL,
9434 xmlNodePtr child = NULL;
9477 child = node->children;
9478 if (IS_SCHEMA(child, "annotation")) {
9479 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9480 child = child->next;
9482 if (IS_SCHEMA(child, "all")) {
9483 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9485 child = child->next;
9486 } else if (IS_SCHEMA(child, "choice")) {
9487 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9489 child = child->next;
9490 } else if (IS_SCHEMA(child, "sequence")) {
9491 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9493 child = child->next;
9498 if (child != NULL) {
9501 NULL, node, child, NULL,
9730 xmlNodePtr child;
9738 child = nodes;
9739 while ((IS_SCHEMA(child, "include")) ||
9740 (IS_SCHEMA(child, "import")) ||
9741 (IS_SCHEMA(child, "redefine")) ||
9742 (IS_SCHEMA(child, "annotation"))) {
9743 if (IS_SCHEMA(child, "annotation")) {
9744 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9749 } else if (IS_SCHEMA(child, "import")) {
9751 res = xmlSchemaParseImport(ctxt, schema, child);
9756 } else if (IS_SCHEMA(child, "include")) {
9758 res = xmlSchemaParseInclude(ctxt, schema, child);
9763 } else if (IS_SCHEMA(child, "redefine")) {
9765 res = xmlSchemaParseRedefine(ctxt, schema, child);
9771 child = child->next;
9777 while (child != NULL) {
9778 if (IS_SCHEMA(child, "complexType")) {
9779 xmlSchemaParseComplexType(ctxt, schema, child, 1);
9780 child = child->next;
9781 } else if (IS_SCHEMA(child, "simpleType")) {
9782 xmlSchemaParseSimpleType(ctxt, schema, child, 1);
9783 child = child->next;
9784 } else if (IS_SCHEMA(child, "element")) {
9785 xmlSchemaParseElement(ctxt, schema, child, NULL, 1);
9786 child = child->next;
9787 } else if (IS_SCHEMA(child, "attribute")) {
9788 xmlSchemaParseGlobalAttribute(ctxt, schema, child);
9789 child = child->next;
9790 } else if (IS_SCHEMA(child, "attributeGroup")) {
9791 xmlSchemaParseAttributeGroupDefinition(ctxt, schema, child);
9792 child = child->next;
9793 } else if (IS_SCHEMA(child, "group")) {
9794 xmlSchemaParseModelGroupDefinition(ctxt, schema, child);
9795 child = child->next;
9796 } else if (IS_SCHEMA(child, "notation")) {
9797 xmlSchemaParseNotation(ctxt, schema, child);
9798 child = child->next;
9802 NULL, child->parent, child,
9806 child = child->next;
9808 while (IS_SCHEMA(child, "annotation")) {
9812 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9817 child = child->next;
10678 xmlNodePtr child;
10733 child = node->children;
10734 if (IS_SCHEMA(child, "annotation")) {
10739 child = child->next;
10741 if (child != NULL) {
10744 NULL, node, child, NULL,
10923 xmlNodePtr child = NULL;
11061 child = node->children;
11071 while (IS_SCHEMA(child, "annotation") ||
11072 IS_SCHEMA(child, "simpleType") ||
11073 IS_SCHEMA(child, "complexType") ||
11074 IS_SCHEMA(child, "group") ||
11075 IS_SCHEMA(child, "attributeGroup")) {
11076 if (IS_SCHEMA(child, "annotation")) {
11080 } else if (IS_SCHEMA(child, "simpleType")) {
11081 xmlSchemaParseSimpleType(pctxt, schema, child, 1);
11082 } else if (IS_SCHEMA(child, "complexType")) {
11083 xmlSchemaParseComplexType(pctxt, schema, child, 1);
11085 } else if (IS_SCHEMA(child, "group")) {
11088 schema, child);
11089 } else if (IS_SCHEMA(child, "attributeGroup")) {
11092 child);
11094 child = child->next;
11099 if (IS_SCHEMA(child, "annotation")) {
11103 child = child->next;
11106 if (child != NULL) {
11110 NULL, node, child, NULL,
11114 NULL, node, child, NULL,
11185 xmlNodePtr child = NULL;
11260 child = node->children;
11261 if (IS_SCHEMA(child, "annotation")) {
11262 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
11263 child = child->next;
11268 while (IS_SCHEMA(child, "element")) {
11270 schema, child, &isElemRef, 0);
11282 NULL, child,
11291 NULL, child,
11303 child = child->next;
11305 if (child != NULL) {
11308 NULL, node, child, NULL,
11315 while ((IS_SCHEMA(child, "element")) ||
11316 (IS_SCHEMA(child, "group")) ||
11317 (IS_SCHEMA(child, "any")) ||
11318 (IS_SCHEMA(child, "choice")) ||
11319 (IS_SCHEMA(child, "sequence"))) {
11321 if (IS_SCHEMA(child, "element")) {
11323 xmlSchemaParseElement(ctxt, schema, child, &isElemRef, 0);
11326 } else if (IS_SCHEMA(child, "group")) {
11328 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11356 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11377 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11393 } else if (IS_SCHEMA(child, "any")) {
11395 xmlSchemaParseAny(ctxt, schema, child);
11396 } else if (IS_SCHEMA(child, "choice")) {
11397 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11399 } else if (IS_SCHEMA(child, "sequence")) {
11400 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11410 child = child->next;
11412 if (child != NULL) {
11415 NULL, node, child, NULL,
11449 xmlNodePtr child = NULL;
11534 child = node->children;
11535 if (IS_SCHEMA(child, "annotation")) {
11540 xmlSchemaParseAnnotation(ctxt, child, 1));
11541 child = child->next;
11547 if (IS_SCHEMA(child, "simpleType")) {
11551 * Either the base [attribute] or the simpleType [child] of the
11556 NULL, node, child,
11557 "The attribute 'base' and the <simpleType> child are "
11561 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11563 child = child->next;
11567 NULL, node, child,
11568 "Either the attribute 'base' or a <simpleType> child "
11578 if (IS_SCHEMA(child, "all")) {
11580 xmlSchemaParseModelGroup(ctxt, schema, child,
11582 child = child->next;
11583 } else if (IS_SCHEMA(child, "choice")) {
11586 schema, child, XML_SCHEMA_TYPE_CHOICE, 1);
11587 child = child->next;
11588 } else if (IS_SCHEMA(child, "sequence")) {
11590 xmlSchemaParseModelGroup(ctxt, schema, child,
11592 child = child->next;
11596 } else if (IS_SCHEMA(child, "group")) {
11598 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11603 child = child->next;
11612 if (IS_SCHEMA(child, "simpleType")) {
11618 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11621 child = child->next;
11641 while ((IS_SCHEMA(child, "minInclusive")) ||
11642 (IS_SCHEMA(child, "minExclusive")) ||
11643 (IS_SCHEMA(child, "maxInclusive")) ||
11644 (IS_SCHEMA(child, "maxExclusive")) ||
11645 (IS_SCHEMA(child, "totalDigits")) ||
11646 (IS_SCHEMA(child, "fractionDigits")) ||
11647 (IS_SCHEMA(child, "pattern")) ||
11648 (IS_SCHEMA(child, "enumeration")) ||
11649 (IS_SCHEMA(child, "whiteSpace")) ||
11650 (IS_SCHEMA(child, "length")) ||
11651 (IS_SCHEMA(child, "maxLength")) ||
11652 (IS_SCHEMA(child, "minLength"))) {
11653 facet = xmlSchemaParseFacet(ctxt, schema, child);
11662 child = child->next;
11694 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11701 if (IS_SCHEMA(child, "anyAttribute")) {
11703 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11704 child = child->next;
11707 if (child != NULL) {
11711 NULL, node, child, NULL,
11717 NULL, node, child, NULL,
11726 NULL, node, child, NULL,
11753 xmlNodePtr child = NULL;
11795 child = node->children;
11796 if (IS_SCHEMA(child, "annotation")) {
11801 xmlSchemaParseAnnotation(ctxt, child, 1));
11802 child = child->next;
11810 if (IS_SCHEMA(child, "all")) {
11813 child, XML_SCHEMA_TYPE_ALL, 1);
11814 child = child->next;
11815 } else if (IS_SCHEMA(child, "choice")) {
11818 child, XML_SCHEMA_TYPE_CHOICE, 1);
11819 child = child->next;
11820 } else if (IS_SCHEMA(child, "sequence")) {
11823 child, XML_SCHEMA_TYPE_SEQUENCE, 1);
11824 child = child->next;
11825 } else if (IS_SCHEMA(child, "group")) {
11827 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11832 child = child->next;
11835 if (child != NULL) {
11839 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11846 if (IS_SCHEMA(child, "anyAttribute")) {
11848 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11849 child = child->next;
11852 if (child != NULL) {
11857 NULL, node, child, NULL,
11864 NULL, node, child, NULL,
11889 xmlNodePtr child = NULL;
11921 child = node->children;
11922 if (IS_SCHEMA(child, "annotation")) {
11927 xmlSchemaParseAnnotation(ctxt, child, 1));
11928 child = child->next;
11930 if (child == NULL) {
11936 if (child == NULL) {
11942 if (IS_SCHEMA(child, "restriction")) {
11943 xmlSchemaParseRestriction(ctxt, schema, child,
11946 child = child->next;
11947 } else if (IS_SCHEMA(child, "extension")) {
11948 xmlSchemaParseExtension(ctxt, schema, child,
11951 child = child->next;
11953 if (child != NULL) {
11956 NULL, node, child, NULL,
11979 xmlNodePtr child = NULL;
12016 child = node->children;
12017 if (IS_SCHEMA(child, "annotation")) {
12022 xmlSchemaParseAnnotation(ctxt, child, 1));
12023 child = child->next;
12025 if (child == NULL) {
12031 if (child == NULL) {
12037 if (IS_SCHEMA(child, "restriction")) {
12038 xmlSchemaParseRestriction(ctxt, schema, child,
12041 child = child->next;
12042 } else if (IS_SCHEMA(child, "extension")) {
12043 xmlSchemaParseExtension(ctxt, schema, child,
12046 child = child->next;
12048 if (child != NULL) {
12051 NULL, node, child,
12073 xmlNodePtr child = NULL;
12241 child = node->children;
12242 if (IS_SCHEMA(child, "annotation")) {
12243 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
12244 child = child->next;
12247 if (IS_SCHEMA(child, "simpleContent")) {
12256 xmlSchemaParseSimpleContent(ctxt, schema, child,
12258 child = child->next;
12259 } else if (IS_SCHEMA(child, "complexContent")) {
12264 xmlSchemaParseComplexContent(ctxt, schema, child,
12266 child = child->next;
12282 if (IS_SCHEMA(child, "all")) {
12284 xmlSchemaParseModelGroup(ctxt, schema, child,
12286 child = child->next;
12287 } else if (IS_SCHEMA(child, "choice")) {
12289 xmlSchemaParseModelGroup(ctxt, schema, child,
12291 child = child->next;
12292 } else if (IS_SCHEMA(child, "sequence")) {
12294 xmlSchemaParseModelGroup(ctxt, schema, child,
12296 child = child->next;
12297 } else if (IS_SCHEMA(child, "group")) {
12299 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
12304 child = child->next;
12309 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
12316 if (IS_SCHEMA(child, "anyAttribute")) {
12317 type->attributeWildcard = xmlSchemaParseAnyAttribute(ctxt, schema, child);
12318 child = child->next;
12321 if (child != NULL) {
12324 NULL, node, child,
12336 "grand-child", NULL);
16593 * Attention: at this point the <simpleType> child is in
18171 * restricts the <restriction>'s <simpleType> child.
18183 "is missing a <simpleType> child, but was not catched "
23382 * both, the parent node-table entry and child entry are discarded from the
23442 * Compare every node-table entry of the child node,
23564 * the child node to the node table of the parent node.
25916 * we will not validate child elements of broken parents.
25981 "Missing child element(s)",
26762 "the child element was valid but neither the "