Lines Matching refs:child
1926 * @node: the current child
1936 xmlNodePtr child, int error,
1939 if (child != NULL)
1940 xmlSchemaPErr(ctxt, child, error, msg, str1, str2);
3208 * @child: the invalid child node
3219 xmlNodePtr child,
3227 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3232 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3236 xmlSchemaPErr2(ctxt, ownerElem, child, error,
6510 xmlNodePtr *child, xmlSchemaItemListPtr *list,
6515 while ((IS_SCHEMA((*child), "attribute")) ||
6516 (IS_SCHEMA((*child), "attributeGroup"))) {
6517 if (IS_SCHEMA((*child), "attribute")) {
6518 item = xmlSchemaParseLocalAttribute(ctxt, schema, *child,
6521 item = xmlSchemaParseAttributeGroupRef(ctxt, schema, *child);
6535 *child = (*child)->next;
6556 xmlNodePtr child = NULL;
6590 child = node->children;
6591 while (child != NULL) {
6592 if (IS_SCHEMA(child, "appinfo")) {
6599 attr = child->properties;
6611 xmlSchemaPValAttr(ctxt, NULL, child, "source",
6613 child = child->next;
6614 } else if (IS_SCHEMA(child, "documentation")) {
6621 attr = child->properties;
6642 attr = xmlSchemaGetPropNodeNs(child, (const char *) XML_XML_NAMESPACE, "lang");
6646 child = child->next;
6651 NULL, node, child, NULL, "(appinfo | documentation)*");
6653 child = child->next;
6676 xmlNodePtr child = NULL;
6690 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_FACET_NO_VALUE,
6720 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_TYPE,
6737 child = node->children;
6739 if (IS_SCHEMA(child, "annotation")) {
6740 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6741 child = child->next;
6743 if (child != NULL) {
6744 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_CHILD,
6745 "Facet %s has unexpected child content\n",
6936 xmlNodePtr child = NULL;
6983 child = node->children;
6984 if (IS_SCHEMA(child, "annotation")) {
6985 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6986 child = child->next;
6988 if (child != NULL) {
6991 NULL, node, child,
7029 xmlNodePtr child = NULL;
7035 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_NOTATION_NO_NAME,
7045 child = node->children;
7046 if (IS_SCHEMA(child, "annotation")) {
7047 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7048 child = child->next;
7050 if (child != NULL) {
7053 NULL, node, child,
7076 xmlNodePtr child = NULL;
7114 child = node->children;
7115 if (IS_SCHEMA(child, "annotation")) {
7116 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7117 child = child->next;
7119 if (child != NULL) {
7122 NULL, node, child,
7150 xmlNodePtr child = NULL;
7402 child = node->children;
7406 if (IS_SCHEMA(child, "annotation")) {
7407 xmlSchemaParseAnnotation(pctxt, child, 0);
7408 child = child->next;
7410 if (child != NULL) {
7413 NULL, node, child, NULL,
7482 if (IS_SCHEMA(child, "annotation")) {
7486 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7487 child = child->next;
7490 if (child != NULL) {
7491 if (IS_SCHEMA(child, "simpleType"))
7499 NULL, node, child, NULL,
7504 NULL, node, child, NULL,
7508 if (IS_SCHEMA(child, "simpleType")) {
7515 NULL, node, child,
7516 "The attribute 'type' and the <simpleType> child "
7520 xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7521 child = child->next;
7523 if (child != NULL)
7525 NULL, node, child, NULL,
7540 xmlNodePtr child = NULL;
7646 child = node->children;
7647 if (IS_SCHEMA(child, "annotation")) {
7648 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7649 child = child->next;
7651 if (IS_SCHEMA(child, "simpleType")) {
7658 NULL, node, child,
7659 "The attribute 'type' and the <simpleType> child "
7662 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7663 child = child->next;
7665 if (child != NULL)
7667 NULL, node, child, NULL,
7692 xmlNodePtr child = NULL;
7735 child = node->children;
7736 if (IS_SCHEMA(child, "annotation")) {
7740 xmlSchemaParseAnnotation(pctxt, child, 0);
7741 child = child->next;
7743 if (child != NULL) {
7746 NULL, node, child, NULL,
7824 xmlNodePtr child = NULL;
7873 child = node->children;
7874 if (IS_SCHEMA(child, "annotation")) {
7875 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7876 child = child->next;
7881 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child,
7890 if (IS_SCHEMA(child, "anyAttribute")) {
7892 schema, child);
7893 child = child->next;
7895 if (child != NULL) {
7898 NULL, node, child, NULL,
8255 xmlNodePtr child = NULL;
8316 child = node->children;
8317 if (IS_SCHEMA(child, "annotation")) {
8322 xmlSchemaParseAnnotation(ctxt, child, 1));
8323 child = child->next;
8325 if (child != NULL) {
8328 NULL, node, child,
8353 xmlNodePtr child = NULL;
8428 child = node->children;
8429 if (IS_SCHEMA(child, "annotation")) {
8430 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8431 child = child->next;
8433 if (child == NULL) {
8436 NULL, node, child,
8437 "A child element is missing",
8441 * Child element <selector>.
8443 if (IS_SCHEMA(child, "selector")) {
8445 item, child, 0);
8446 child = child->next;
8448 * Child elements <field>.
8450 if (IS_SCHEMA(child, "field")) {
8453 item, child, 1);
8463 child = child->next;
8464 } while (IS_SCHEMA(child, "field"));
8468 NULL, node, child,
8472 if (child != NULL) {
8475 NULL, node, child,
8502 xmlNodePtr child = NULL;
8533 child = node->children;
8534 if (IS_SCHEMA(child, "annotation")) {
8535 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8536 child = child->next;
8606 if (child != NULL) {
8608 NULL, node, child, NULL, "(annotation?)");
8798 if (IS_SCHEMA(child, "complexType")) {
8807 NULL, node, child,
8808 "The attribute 'type' and the <complexType> child are "
8811 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseComplexType(ctxt, schema, child, 0);
8812 child = child->next;
8813 } else if (IS_SCHEMA(child, "simpleType")) {
8822 NULL, node, child,
8823 "The attribute 'type' and the <simpleType> child are "
8826 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
8827 child = child->next;
8829 while ((IS_SCHEMA(child, "unique")) ||
8830 (IS_SCHEMA(child, "key")) || (IS_SCHEMA(child, "keyref"))) {
8831 if (IS_SCHEMA(child, "unique")) {
8832 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8834 } else if (IS_SCHEMA(child, "key")) {
8835 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8837 } else if (IS_SCHEMA(child, "keyref")) {
8838 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8846 child = child->next;
8848 if (child != NULL) {
8851 NULL, node, child,
8898 xmlNodePtr child = NULL;
8998 child = node->children;
8999 if (IS_SCHEMA(child, "annotation")) {
9004 xmlSchemaParseAnnotation(ctxt, child, 1));
9005 child = child->next;
9007 if (IS_SCHEMA(child, "simpleType")) {
9014 while (IS_SCHEMA(child, "simpleType")) {
9016 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
9027 child = child->next;
9030 if (child != NULL) {
9033 NULL, node, child, NULL, "(annotation?, simpleType*)");
9039 * be non-empty or there must be at least one simpleType [child].
9045 "at least one <simpleType> child must be present", NULL);
9067 xmlNodePtr child = NULL;
9115 child = node->children;
9116 if (IS_SCHEMA(child, "annotation")) {
9118 xmlSchemaParseAnnotation(ctxt, child, 1));
9119 child = child->next;
9121 if (IS_SCHEMA(child, "simpleType")) {
9124 * Either the itemType [attribute] or the <simpleType> [child] of
9131 "The attribute 'itemType' and the <simpleType> child "
9134 type->subtypes = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
9136 child = child->next;
9141 "Either the attribute 'itemType' or the <simpleType> child "
9144 if (child != NULL) {
9147 NULL, node, child, NULL, "(annotation?, simpleType?)");
9155 "Either the attribute 'itemType' or the <simpleType> child "
9178 xmlNodePtr child = NULL;
9333 child = node->children;
9334 if (IS_SCHEMA(child, "annotation")) {
9335 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9336 child = child->next;
9338 if (child == NULL) {
9340 NULL, node, child, NULL,
9342 } else if (IS_SCHEMA(child, "restriction")) {
9343 xmlSchemaParseRestriction(ctxt, schema, child,
9346 child = child->next;
9347 } else if (IS_SCHEMA(child, "list")) {
9348 xmlSchemaParseList(ctxt, schema, child);
9349 child = child->next;
9350 } else if (IS_SCHEMA(child, "union")) {
9351 xmlSchemaParseUnion(ctxt, schema, child);
9352 child = child->next;
9354 if (child != NULL) {
9356 NULL, node, child, NULL,
9369 "<simpleType> must have a <restriction> child", NULL);
9393 xmlNodePtr child = NULL;
9448 child = node->children;
9450 if (IS_SCHEMA(child, "annotation")) {
9454 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9455 child = child->next;
9457 if (child != NULL) {
9460 NULL, node, child, NULL,
9495 xmlNodePtr child = NULL;
9538 child = node->children;
9539 if (IS_SCHEMA(child, "annotation")) {
9540 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9541 child = child->next;
9543 if (IS_SCHEMA(child, "all")) {
9544 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9546 child = child->next;
9547 } else if (IS_SCHEMA(child, "choice")) {
9548 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9550 child = child->next;
9551 } else if (IS_SCHEMA(child, "sequence")) {
9552 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9554 child = child->next;
9559 if (child != NULL) {
9562 NULL, node, child, NULL,
9791 xmlNodePtr child;
9799 child = nodes;
9800 while ((IS_SCHEMA(child, "include")) ||
9801 (IS_SCHEMA(child, "import")) ||
9802 (IS_SCHEMA(child, "redefine")) ||
9803 (IS_SCHEMA(child, "annotation"))) {
9804 if (IS_SCHEMA(child, "annotation")) {
9805 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9810 } else if (IS_SCHEMA(child, "import")) {
9812 res = xmlSchemaParseImport(ctxt, schema, child);
9817 } else if (IS_SCHEMA(child, "include")) {
9819 res = xmlSchemaParseInclude(ctxt, schema, child);
9824 } else if (IS_SCHEMA(child, "redefine")) {
9826 res = xmlSchemaParseRedefine(ctxt, schema, child);
9832 child = child->next;
9838 while (child != NULL) {
9839 if (IS_SCHEMA(child, "complexType")) {
9840 xmlSchemaParseComplexType(ctxt, schema, child, 1);
9841 child = child->next;
9842 } else if (IS_SCHEMA(child, "simpleType")) {
9843 xmlSchemaParseSimpleType(ctxt, schema, child, 1);
9844 child = child->next;
9845 } else if (IS_SCHEMA(child, "element")) {
9846 xmlSchemaParseElement(ctxt, schema, child, NULL, 1);
9847 child = child->next;
9848 } else if (IS_SCHEMA(child, "attribute")) {
9849 xmlSchemaParseGlobalAttribute(ctxt, schema, child);
9850 child = child->next;
9851 } else if (IS_SCHEMA(child, "attributeGroup")) {
9852 xmlSchemaParseAttributeGroupDefinition(ctxt, schema, child);
9853 child = child->next;
9854 } else if (IS_SCHEMA(child, "group")) {
9855 xmlSchemaParseModelGroupDefinition(ctxt, schema, child);
9856 child = child->next;
9857 } else if (IS_SCHEMA(child, "notation")) {
9858 xmlSchemaParseNotation(ctxt, schema, child);
9859 child = child->next;
9863 NULL, child->parent, child,
9867 child = child->next;
9869 while (IS_SCHEMA(child, "annotation")) {
9873 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9878 child = child->next;
10750 xmlNodePtr child;
10805 child = node->children;
10806 if (IS_SCHEMA(child, "annotation")) {
10811 child = child->next;
10813 if (child != NULL) {
10816 NULL, node, child, NULL,
10995 xmlNodePtr child = NULL;
11134 child = node->children;
11144 while (IS_SCHEMA(child, "annotation") ||
11145 IS_SCHEMA(child, "simpleType") ||
11146 IS_SCHEMA(child, "complexType") ||
11147 IS_SCHEMA(child, "group") ||
11148 IS_SCHEMA(child, "attributeGroup")) {
11149 if (IS_SCHEMA(child, "annotation")) {
11153 } else if (IS_SCHEMA(child, "simpleType")) {
11154 xmlSchemaParseSimpleType(pctxt, schema, child, 1);
11155 } else if (IS_SCHEMA(child, "complexType")) {
11156 xmlSchemaParseComplexType(pctxt, schema, child, 1);
11158 } else if (IS_SCHEMA(child, "group")) {
11161 schema, child);
11162 } else if (IS_SCHEMA(child, "attributeGroup")) {
11165 child);
11167 child = child->next;
11172 if (IS_SCHEMA(child, "annotation")) {
11176 child = child->next;
11179 if (child != NULL) {
11183 NULL, node, child, NULL,
11187 NULL, node, child, NULL,
11258 xmlNodePtr child = NULL;
11333 child = node->children;
11334 if (IS_SCHEMA(child, "annotation")) {
11335 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
11336 child = child->next;
11341 while (IS_SCHEMA(child, "element")) {
11343 schema, child, &isElemRef, 0);
11355 NULL, child,
11364 NULL, child,
11376 child = child->next;
11378 if (child != NULL) {
11381 NULL, node, child, NULL,
11388 while ((IS_SCHEMA(child, "element")) ||
11389 (IS_SCHEMA(child, "group")) ||
11390 (IS_SCHEMA(child, "any")) ||
11391 (IS_SCHEMA(child, "choice")) ||
11392 (IS_SCHEMA(child, "sequence"))) {
11394 if (IS_SCHEMA(child, "element")) {
11396 xmlSchemaParseElement(ctxt, schema, child, &isElemRef, 0);
11399 } else if (IS_SCHEMA(child, "group")) {
11401 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11429 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11450 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11466 } else if (IS_SCHEMA(child, "any")) {
11468 xmlSchemaParseAny(ctxt, schema, child);
11469 } else if (IS_SCHEMA(child, "choice")) {
11470 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11472 } else if (IS_SCHEMA(child, "sequence")) {
11473 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11483 child = child->next;
11485 if (child != NULL) {
11488 NULL, node, child, NULL,
11522 xmlNodePtr child = NULL;
11607 child = node->children;
11608 if (IS_SCHEMA(child, "annotation")) {
11613 xmlSchemaParseAnnotation(ctxt, child, 1));
11614 child = child->next;
11620 if (IS_SCHEMA(child, "simpleType")) {
11624 * Either the base [attribute] or the simpleType [child] of the
11629 NULL, node, child,
11630 "The attribute 'base' and the <simpleType> child are "
11634 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11636 child = child->next;
11640 NULL, node, child,
11641 "Either the attribute 'base' or a <simpleType> child "
11651 if (IS_SCHEMA(child, "all")) {
11653 xmlSchemaParseModelGroup(ctxt, schema, child,
11655 child = child->next;
11656 } else if (IS_SCHEMA(child, "choice")) {
11659 schema, child, XML_SCHEMA_TYPE_CHOICE, 1);
11660 child = child->next;
11661 } else if (IS_SCHEMA(child, "sequence")) {
11663 xmlSchemaParseModelGroup(ctxt, schema, child,
11665 child = child->next;
11669 } else if (IS_SCHEMA(child, "group")) {
11671 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11676 child = child->next;
11685 if (IS_SCHEMA(child, "simpleType")) {
11691 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11694 child = child->next;
11714 while ((IS_SCHEMA(child, "minInclusive")) ||
11715 (IS_SCHEMA(child, "minExclusive")) ||
11716 (IS_SCHEMA(child, "maxInclusive")) ||
11717 (IS_SCHEMA(child, "maxExclusive")) ||
11718 (IS_SCHEMA(child, "totalDigits")) ||
11719 (IS_SCHEMA(child, "fractionDigits")) ||
11720 (IS_SCHEMA(child, "pattern")) ||
11721 (IS_SCHEMA(child, "enumeration")) ||
11722 (IS_SCHEMA(child, "whiteSpace")) ||
11723 (IS_SCHEMA(child, "length")) ||
11724 (IS_SCHEMA(child, "maxLength")) ||
11725 (IS_SCHEMA(child, "minLength"))) {
11726 facet = xmlSchemaParseFacet(ctxt, schema, child);
11735 child = child->next;
11767 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11774 if (IS_SCHEMA(child, "anyAttribute")) {
11776 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11777 child = child->next;
11780 if (child != NULL) {
11784 NULL, node, child, NULL,
11790 NULL, node, child, NULL,
11799 NULL, node, child, NULL,
11826 xmlNodePtr child = NULL;
11868 child = node->children;
11869 if (IS_SCHEMA(child, "annotation")) {
11874 xmlSchemaParseAnnotation(ctxt, child, 1));
11875 child = child->next;
11883 if (IS_SCHEMA(child, "all")) {
11886 child, XML_SCHEMA_TYPE_ALL, 1);
11887 child = child->next;
11888 } else if (IS_SCHEMA(child, "choice")) {
11891 child, XML_SCHEMA_TYPE_CHOICE, 1);
11892 child = child->next;
11893 } else if (IS_SCHEMA(child, "sequence")) {
11896 child, XML_SCHEMA_TYPE_SEQUENCE, 1);
11897 child = child->next;
11898 } else if (IS_SCHEMA(child, "group")) {
11900 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11905 child = child->next;
11908 if (child != NULL) {
11912 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11919 if (IS_SCHEMA(child, "anyAttribute")) {
11921 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11922 child = child->next;
11925 if (child != NULL) {
11930 NULL, node, child, NULL,
11937 NULL, node, child, NULL,
11962 xmlNodePtr child = NULL;
11994 child = node->children;
11995 if (IS_SCHEMA(child, "annotation")) {
12000 xmlSchemaParseAnnotation(ctxt, child, 1));
12001 child = child->next;
12003 if (child == NULL) {
12009 if (child == NULL) {
12015 if (IS_SCHEMA(child, "restriction")) {
12016 xmlSchemaParseRestriction(ctxt, schema, child,
12019 child = child->next;
12020 } else if (IS_SCHEMA(child, "extension")) {
12021 xmlSchemaParseExtension(ctxt, schema, child,
12024 child = child->next;
12026 if (child != NULL) {
12029 NULL, node, child, NULL,
12052 xmlNodePtr child = NULL;
12089 child = node->children;
12090 if (IS_SCHEMA(child, "annotation")) {
12095 xmlSchemaParseAnnotation(ctxt, child, 1));
12096 child = child->next;
12098 if (child == NULL) {
12104 if (child == NULL) {
12110 if (IS_SCHEMA(child, "restriction")) {
12111 xmlSchemaParseRestriction(ctxt, schema, child,
12114 child = child->next;
12115 } else if (IS_SCHEMA(child, "extension")) {
12116 xmlSchemaParseExtension(ctxt, schema, child,
12119 child = child->next;
12121 if (child != NULL) {
12124 NULL, node, child,
12146 xmlNodePtr child = NULL;
12314 child = node->children;
12315 if (IS_SCHEMA(child, "annotation")) {
12316 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
12317 child = child->next;
12320 if (IS_SCHEMA(child, "simpleContent")) {
12329 xmlSchemaParseSimpleContent(ctxt, schema, child,
12331 child = child->next;
12332 } else if (IS_SCHEMA(child, "complexContent")) {
12337 xmlSchemaParseComplexContent(ctxt, schema, child,
12339 child = child->next;
12355 if (IS_SCHEMA(child, "all")) {
12357 xmlSchemaParseModelGroup(ctxt, schema, child,
12359 child = child->next;
12360 } else if (IS_SCHEMA(child, "choice")) {
12362 xmlSchemaParseModelGroup(ctxt, schema, child,
12364 child = child->next;
12365 } else if (IS_SCHEMA(child, "sequence")) {
12367 xmlSchemaParseModelGroup(ctxt, schema, child,
12369 child = child->next;
12370 } else if (IS_SCHEMA(child, "group")) {
12372 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
12377 child = child->next;
12382 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
12389 if (IS_SCHEMA(child, "anyAttribute")) {
12390 type->attributeWildcard = xmlSchemaParseAnyAttribute(ctxt, schema, child);
12391 child = child->next;
12394 if (child != NULL) {
12397 NULL, node, child,
12409 "grand-child", NULL);
16732 * Attention: at this point the <simpleType> child is in
18310 * restricts the <restriction>'s <simpleType> child.
18322 "is missing a <simpleType> child, but was not catched "
23524 * both, the parent node-table entry and child entry are discarded from the
23584 * Compare every node-table entry of the child node,
23706 * the child node to the node table of the parent node.
26062 * we will not validate child elements of broken parents.
26140 "Missing child element(s)",
26929 "the child element was valid but neither the "