Home | History | Annotate | Download | only in libxml2

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);
3184 * @child: the invalid child node
3195 xmlNodePtr child,
3203 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3208 xmlSchemaPErr2(ctxt, ownerElem, child, error,
3212 xmlSchemaPErr2(ctxt, ownerElem, child, error,
6468 xmlNodePtr *child, xmlSchemaItemListPtr *list,
6473 while ((IS_SCHEMA((*child), "attribute")) ||
6474 (IS_SCHEMA((*child), "attributeGroup"))) {
6475 if (IS_SCHEMA((*child), "attribute")) {
6476 item = xmlSchemaParseLocalAttribute(ctxt, schema, *child,
6479 item = xmlSchemaParseAttributeGroupRef(ctxt, schema, *child);
6493 *child = (*child)->next;
6514 xmlNodePtr child = NULL;
6548 child = node->children;
6549 while (child != NULL) {
6550 if (IS_SCHEMA(child, "appinfo")) {
6557 attr = child->properties;
6569 xmlSchemaPValAttr(ctxt, NULL, child, "source",
6571 child = child->next;
6572 } else if (IS_SCHEMA(child, "documentation")) {
6579 attr = child->properties;
6600 attr = xmlSchemaGetPropNodeNs(child, (const char *) XML_XML_NAMESPACE, "lang");
6604 child = child->next;
6609 NULL, node, child, NULL, "(appinfo | documentation)*");
6611 child = child->next;
6634 xmlNodePtr child = NULL;
6648 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_FACET_NO_VALUE,
6678 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_TYPE,
6695 child = node->children;
6697 if (IS_SCHEMA(child, "annotation")) {
6698 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6699 child = child->next;
6701 if (child != NULL) {
6702 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_UNKNOWN_FACET_CHILD,
6703 "Facet %s has unexpected child content\n",
6894 xmlNodePtr child = NULL;
6941 child = node->children;
6942 if (IS_SCHEMA(child, "annotation")) {
6943 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6944 child = child->next;
6946 if (child != NULL) {
6949 NULL, node, child,
6987 xmlNodePtr child = NULL;
6993 xmlSchemaPErr2(ctxt, node, child, XML_SCHEMAP_NOTATION_NO_NAME,
7003 child = node->children;
7004 if (IS_SCHEMA(child, "annotation")) {
7005 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7006 child = child->next;
7008 if (child != NULL) {
7011 NULL, node, child,
7034 xmlNodePtr child = NULL;
7072 child = node->children;
7073 if (IS_SCHEMA(child, "annotation")) {
7074 ret->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
7075 child = child->next;
7077 if (child != NULL) {
7080 NULL, node, child,
7108 xmlNodePtr child = NULL;
7360 child = node->children;
7364 if (IS_SCHEMA(child, "annotation")) {
7365 xmlSchemaParseAnnotation(pctxt, child, 0);
7366 child = child->next;
7368 if (child != NULL) {
7371 NULL, node, child, NULL,
7440 if (IS_SCHEMA(child, "annotation")) {
7444 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7445 child = child->next;
7448 if (child != NULL) {
7449 if (IS_SCHEMA(child, "simpleType"))
7457 NULL, node, child, NULL,
7462 NULL, node, child, NULL,
7466 if (IS_SCHEMA(child, "simpleType")) {
7473 NULL, node, child,
7474 "The attribute 'type' and the <simpleType> child "
7478 xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7479 child = child->next;
7481 if (child != NULL)
7483 NULL, node, child, NULL,
7498 xmlNodePtr child = NULL;
7604 child = node->children;
7605 if (IS_SCHEMA(child, "annotation")) {
7606 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7607 child = child->next;
7609 if (IS_SCHEMA(child, "simpleType")) {
7616 NULL, node, child,
7617 "The attribute 'type' and the <simpleType> child "
7620 ret->subtypes = xmlSchemaParseSimpleType(pctxt, schema, child, 0);
7621 child = child->next;
7623 if (child != NULL)
7625 NULL, node, child, NULL,
7650 xmlNodePtr child = NULL;
7693 child = node->children;
7694 if (IS_SCHEMA(child, "annotation")) {
7698 xmlSchemaParseAnnotation(pctxt, child, 0);
7699 child = child->next;
7701 if (child != NULL) {
7704 NULL, node, child, NULL,
7782 xmlNodePtr child = NULL;
7831 child = node->children;
7832 if (IS_SCHEMA(child, "annotation")) {
7833 ret->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7834 child = child->next;
7839 if (xmlSchemaParseLocalAttributes(pctxt, schema, &child,
7848 if (IS_SCHEMA(child, "anyAttribute")) {
7850 schema, child);
7851 child = child->next;
7853 if (child != NULL) {
7856 NULL, node, child, NULL,
8213 xmlNodePtr child = NULL;
8274 child = node->children;
8275 if (IS_SCHEMA(child, "annotation")) {
8280 xmlSchemaParseAnnotation(ctxt, child, 1));
8281 child = child->next;
8283 if (child != NULL) {
8286 NULL, node, child,
8311 xmlNodePtr child = NULL;
8386 child = node->children;
8387 if (IS_SCHEMA(child, "annotation")) {
8388 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8389 child = child->next;
8391 if (child == NULL) {
8394 NULL, node, child,
8395 "A child element is missing",
8399 * Child element <selector>.
8401 if (IS_SCHEMA(child, "selector")) {
8403 item, child, 0);
8404 child = child->next;
8406 * Child elements <field>.
8408 if (IS_SCHEMA(child, "field")) {
8411 item, child, 1);
8421 child = child->next;
8422 } while (IS_SCHEMA(child, "field"));
8426 NULL, node, child,
8430 if (child != NULL) {
8433 NULL, node, child,
8460 xmlNodePtr child = NULL;
8491 child = node->children;
8492 if (IS_SCHEMA(child, "annotation")) {
8493 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
8494 child = child->next;
8564 if (child != NULL) {
8566 NULL, node, child, NULL, "(annotation?)");
8756 if (IS_SCHEMA(child, "complexType")) {
8765 NULL, node, child,
8766 "The attribute 'type' and the <complexType> child are "
8769 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseComplexType(ctxt, schema, child, 0);
8770 child = child->next;
8771 } else if (IS_SCHEMA(child, "simpleType")) {
8780 NULL, node, child,
8781 "The attribute 'type' and the <simpleType> child are "
8784 WXS_ELEM_TYPEDEF(decl) = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
8785 child = child->next;
8787 while ((IS_SCHEMA(child, "unique")) ||
8788 (IS_SCHEMA(child, "key")) || (IS_SCHEMA(child, "keyref"))) {
8789 if (IS_SCHEMA(child, "unique")) {
8790 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8792 } else if (IS_SCHEMA(child, "key")) {
8793 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8795 } else if (IS_SCHEMA(child, "keyref")) {
8796 curIDC = xmlSchemaParseIDC(ctxt, schema, child,
8804 child = child->next;
8806 if (child != NULL) {
8809 NULL, node, child,
8856 xmlNodePtr child = NULL;
8956 child = node->children;
8957 if (IS_SCHEMA(child, "annotation")) {
8962 xmlSchemaParseAnnotation(ctxt, child, 1));
8963 child = child->next;
8965 if (IS_SCHEMA(child, "simpleType")) {
8972 while (IS_SCHEMA(child, "simpleType")) {
8974 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
8985 child = child->next;
8988 if (child != NULL) {
8991 NULL, node, child, NULL, "(annotation?, simpleType*)");
8997 * be non-empty or there must be at least one simpleType [child].
9003 "at least one <simpleType> child must be present", NULL);
9025 xmlNodePtr child = NULL;
9073 child = node->children;
9074 if (IS_SCHEMA(child, "annotation")) {
9076 xmlSchemaParseAnnotation(ctxt, child, 1));
9077 child = child->next;
9079 if (IS_SCHEMA(child, "simpleType")) {
9082 * Either the itemType [attribute] or the <simpleType> [child] of
9089 "The attribute 'itemType' and the <simpleType> child "
9092 type->subtypes = xmlSchemaParseSimpleType(ctxt, schema, child, 0);
9094 child = child->next;
9099 "Either the attribute 'itemType' or the <simpleType> child "
9102 if (child != NULL) {
9105 NULL, node, child, NULL, "(annotation?, simpleType?)");
9113 "Either the attribute 'itemType' or the <simpleType> child "
9136 xmlNodePtr child = NULL;
9291 child = node->children;
9292 if (IS_SCHEMA(child, "annotation")) {
9293 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9294 child = child->next;
9296 if (child == NULL) {
9298 NULL, node, child, NULL,
9300 } else if (IS_SCHEMA(child, "restriction")) {
9301 xmlSchemaParseRestriction(ctxt, schema, child,
9304 child = child->next;
9305 } else if (IS_SCHEMA(child, "list")) {
9306 xmlSchemaParseList(ctxt, schema, child);
9307 child = child->next;
9308 } else if (IS_SCHEMA(child, "union")) {
9309 xmlSchemaParseUnion(ctxt, schema, child);
9310 child = child->next;
9312 if (child != NULL) {
9314 NULL, node, child, NULL,
9327 "<simpleType> must have a <restriction> child", NULL);
9351 xmlNodePtr child = NULL;
9406 child = node->children;
9408 if (IS_SCHEMA(child, "annotation")) {
9412 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9413 child = child->next;
9415 if (child != NULL) {
9418 NULL, node, child, NULL,
9453 xmlNodePtr child = NULL;
9496 child = node->children;
9497 if (IS_SCHEMA(child, "annotation")) {
9498 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9499 child = child->next;
9501 if (IS_SCHEMA(child, "all")) {
9502 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9504 child = child->next;
9505 } else if (IS_SCHEMA(child, "choice")) {
9506 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9508 child = child->next;
9509 } else if (IS_SCHEMA(child, "sequence")) {
9510 item->children = xmlSchemaParseModelGroup(ctxt, schema, child,
9512 child = child->next;
9517 if (child != NULL) {
9520 NULL, node, child, NULL,
9749 xmlNodePtr child;
9757 child = nodes;
9758 while ((IS_SCHEMA(child, "include")) ||
9759 (IS_SCHEMA(child, "import")) ||
9760 (IS_SCHEMA(child, "redefine")) ||
9761 (IS_SCHEMA(child, "annotation"))) {
9762 if (IS_SCHEMA(child, "annotation")) {
9763 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9768 } else if (IS_SCHEMA(child, "import")) {
9770 res = xmlSchemaParseImport(ctxt, schema, child);
9775 } else if (IS_SCHEMA(child, "include")) {
9777 res = xmlSchemaParseInclude(ctxt, schema, child);
9782 } else if (IS_SCHEMA(child, "redefine")) {
9784 res = xmlSchemaParseRedefine(ctxt, schema, child);
9790 child = child->next;
9796 while (child != NULL) {
9797 if (IS_SCHEMA(child, "complexType")) {
9798 xmlSchemaParseComplexType(ctxt, schema, child, 1);
9799 child = child->next;
9800 } else if (IS_SCHEMA(child, "simpleType")) {
9801 xmlSchemaParseSimpleType(ctxt, schema, child, 1);
9802 child = child->next;
9803 } else if (IS_SCHEMA(child, "element")) {
9804 xmlSchemaParseElement(ctxt, schema, child, NULL, 1);
9805 child = child->next;
9806 } else if (IS_SCHEMA(child, "attribute")) {
9807 xmlSchemaParseGlobalAttribute(ctxt, schema, child);
9808 child = child
9809 } else if (IS_SCHEMA(child, "attributeGroup")) {
9810 xmlSchemaParseAttributeGroupDefinition(ctxt, schema, child);
9811 child = child->next;
9812 } else if (IS_SCHEMA(child, "group")) {
9813 xmlSchemaParseModelGroupDefinition(ctxt, schema, child);
9814 child = child->next;
9815 } else if (IS_SCHEMA(child, "notation")) {
9816 xmlSchemaParseNotation(ctxt, schema, child);
9817 child = child->next;
9821 NULL, child->parent, child,
9825 child = child->next;
9827 while (IS_SCHEMA(child, "annotation")) {
9831 annot = xmlSchemaParseAnnotation(ctxt, child, 1);
9836 child = child->next;
10709 xmlNodePtr child;
10764 child = node->children;
10765 if (IS_SCHEMA(child, "annotation")) {
10770 child = child->next;
10772 if (child != NULL) {
10775 NULL, node, child, NULL,
10954 xmlNodePtr child = NULL;
11093 child = node->children;
11103 while (IS_SCHEMA(child, "annotation") ||
11104 IS_SCHEMA(child, "simpleType") ||
11105 IS_SCHEMA(child, "complexType") ||
11106 IS_SCHEMA(child, "group") ||
11107 IS_SCHEMA(child, "attributeGroup")) {
11108 if (IS_SCHEMA(child, "annotation")) {
11112 } else if (IS_SCHEMA(child, "simpleType")) {
11113 xmlSchemaParseSimpleType(pctxt, schema, child, 1);
11114 } else if (IS_SCHEMA(child, "complexType")) {
11115 xmlSchemaParseComplexType(pctxt, schema, child, 1);
11117 } else if (IS_SCHEMA(child, "group")) {
11120 schema, child);
11121 } else if (IS_SCHEMA(child, "attributeGroup")) {
11124 child);
11126 child = child->next;
11131 if (IS_SCHEMA(child, "annotation")) {
11135 child = child->next;
11138 if (child != NULL) {
11142 NULL, node, child, NULL,
11146 NULL, node, child, NULL,
11217 xmlNodePtr child = NULL;
11292 child = node->children;
11293 if (IS_SCHEMA(child, "annotation")) {
11294 item->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
11295 child = child->next;
11300 while (IS_SCHEMA(child, "element")) {
11302 schema, child, &isElemRef, 0);
11314 NULL, child,
11323 NULL, child,
11335 child = child->next;
11337 if (child != NULL) {
11340 NULL, node, child, NULL,
11347 while ((IS_SCHEMA(child, "element")) ||
11348 (IS_SCHEMA(child, "group")) ||
11349 (IS_SCHEMA(child, "any")) ||
11350 (IS_SCHEMA(child, "choice")) ||
11351 (IS_SCHEMA(child, "sequence"))) {
11353 if (IS_SCHEMA(child, "element")) {
11355 xmlSchemaParseElement(ctxt, schema, child, &isElemRef, 0);
11358 } else if (IS_SCHEMA(child, "group")) {
11360 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11388 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11409 XML_SCHEMAP_SRC_REDEFINE, child, NULL,
11425 } else if (IS_SCHEMA(child, "any")) {
11427 xmlSchemaParseAny(ctxt, schema, child);
11428 } else if (IS_SCHEMA(child, "choice")) {
11429 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11431 } else if (IS_SCHEMA(child, "sequence")) {
11432 part = xmlSchemaParseModelGroup(ctxt, schema, child,
11442 child = child->next;
11444 if (child != NULL) {
11447 NULL, node, child, NULL,
11481 xmlNodePtr child = NULL;
11566 child = node->children;
11567 if (IS_SCHEMA(child, "annotation")) {
11572 xmlSchemaParseAnnotation(ctxt, child, 1));
11573 child = child->next;
11579 if (IS_SCHEMA(child, "simpleType")) {
11583 * Either the base [attribute] or the simpleType [child] of the
11588 NULL, node, child,
11589 "The attribute 'base' and the <simpleType> child are "
11593 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11595 child = child->next;
11599 NULL, node, child,
11600 "Either the attribute 'base' or a <simpleType> child "
11610 if (IS_SCHEMA(child, "all")) {
11612 xmlSchemaParseModelGroup(ctxt, schema, child,
11614 child = child->next;
11615 } else if (IS_SCHEMA(child, "choice")) {
11618 schema, child, XML_SCHEMA_TYPE_CHOICE, 1);
11619 child = child->next;
11620 } else if (IS_SCHEMA(child, "sequence")) {
11622 xmlSchemaParseModelGroup(ctxt, schema, child,
11624 child = child->next;
11628 } else if (IS_SCHEMA(child, "group")) {
11630 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11635 child = child->next;
11644 if (IS_SCHEMA(child, "simpleType")) {
11650 xmlSchemaParseSimpleType(ctxt, schema, child, 0);
11653 child = child->next;
11673 while ((IS_SCHEMA(child, "minInclusive")) ||
11674 (IS_SCHEMA(child, "minExclusive")) ||
11675 (IS_SCHEMA(child, "maxInclusive")) ||
11676 (IS_SCHEMA(child, "maxExclusive")) ||
11677 (IS_SCHEMA(child, "totalDigits")) ||
11678 (IS_SCHEMA(child, "fractionDigits")) ||
11679 (IS_SCHEMA(child, "pattern")) ||
11680 (IS_SCHEMA(child, "enumeration")) ||
11681 (IS_SCHEMA(child, "whiteSpace")) ||
11682 (IS_SCHEMA(child, "length")) ||
11683 (IS_SCHEMA(child, "maxLength")) ||
11684 (IS_SCHEMA(child, "minLength"))) {
11685 facet = xmlSchemaParseFacet(ctxt, schema, child);
11694 child = child->next;
11726 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11733 if (IS_SCHEMA(child, "anyAttribute")) {
11735 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11736 child = child->next;
11739 if (child != NULL) {
11743 NULL, node, child, NULL,
11749 NULL, node, child, NULL,
11758 NULL, node, child, NULL,
11785 xmlNodePtr child = NULL;
11827 child = node->children;
11828 if (IS_SCHEMA(child, "annotation")) {
11833 xmlSchemaParseAnnotation(ctxt, child, 1));
11834 child = child->next;
11842 if (IS_SCHEMA(child, "all")) {
11845 child, XML_SCHEMA_TYPE_ALL, 1);
11846 child = child->next;
11847 } else if (IS_SCHEMA(child, "choice")) {
11850 child, XML_SCHEMA_TYPE_CHOICE, 1);
11851 child = child->next;
11852 } else if (IS_SCHEMA(child, "sequence")) {
11855 child, XML_SCHEMA_TYPE_SEQUENCE, 1);
11856 child = child->next;
11857 } else if (IS_SCHEMA(child, "group")) {
11859 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
11864 child = child->next;
11867 if (child != NULL) {
11871 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
11878 if (IS_SCHEMA(child, "anyAttribute")) {
11880 xmlSchemaParseAnyAttribute(ctxt, schema, child);
11881 child = child->next;
11884 if (child != NULL) {
11889 NULL, node, child, NULL,
11896 NULL, node, child, NULL,
11921 xmlNodePtr child = NULL;
11953 child = node->children;
11954 if (IS_SCHEMA(child, "annotation")) {
11959 xmlSchemaParseAnnotation(ctxt, child, 1));
11960 child = child->next;
11962 if (child == NULL) {
11968 if (child == NULL) {
11974 if (IS_SCHEMA(child, "restriction")) {
11975 xmlSchemaParseRestriction(ctxt, schema, child,
11978 child = child->next;
11979 } else if (IS_SCHEMA(child, "extension")) {
11980 xmlSchemaParseExtension(ctxt, schema, child,
11983 child = child->next;
11985 if (child != NULL) {
11988 NULL, node, child, NULL,
12011 xmlNodePtr child = NULL;
12048 child = node->children;
12049 if (IS_SCHEMA(child, "annotation")) {
12054 xmlSchemaParseAnnotation(ctxt, child, 1));
12055 child = child->next;
12057 if (child == NULL) {
12063 if (child == NULL) {
12069 if (IS_SCHEMA(child, "restriction")) {
12070 xmlSchemaParseRestriction(ctxt, schema, child,
12073 child = child->next;
12074 } else if (IS_SCHEMA(child, "extension")) {
12075 xmlSchemaParseExtension(ctxt, schema, child,
12078 child = child->next;
12080 if (child != NULL) {
12083 NULL, node, child,
12105 xmlNodePtr child = NULL;
12273 child = node->children;
12274 if (IS_SCHEMA(child, "annotation")) {
12275 type->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
12276 child = child->next;
12279 if (IS_SCHEMA(child, "simpleContent")) {
12288 xmlSchemaParseSimpleContent(ctxt, schema, child,
12290 child = child->next;
12291 } else if (IS_SCHEMA(child, "complexContent")) {
12296 xmlSchemaParseComplexContent(ctxt, schema, child,
12298 child = child->next;
12314 if (IS_SCHEMA(child, "all")) {
12316 xmlSchemaParseModelGroup(ctxt, schema, child,
12318 child = child->next;
12319 } else if (IS_SCHEMA(child, "choice")) {
12321 xmlSchemaParseModelGroup(ctxt, schema, child,
12323 child = child->next;
12324 } else if (IS_SCHEMA(child, "sequence")) {
12326 xmlSchemaParseModelGroup(ctxt, schema, child,
12328 child = child->next;
12329 } else if (IS_SCHEMA(child, "group")) {
12331 xmlSchemaParseModelGroupDefRef(ctxt, schema, child);
12336 child = child->next;
12341 if (xmlSchemaParseLocalAttributes(ctxt, schema, &child,
12348 if (IS_SCHEMA(child, "anyAttribute")) {
12349 type->attributeWildcard = xmlSchemaParseAnyAttribute(ctxt, schema, child);
12350 child = child->next;
12353 if (child != NULL) {
12356 NULL, node, child,
12368 "grand-child", NULL);
16691 * Attention: at this point the <simpleType> child is in
18269 * restricts the <restriction>'s <simpleType> child.
18281 "is missing a <simpleType> child, but was not catched "
23480 * both, the parent node-table entry and child entry are discarded from the
23540 * Compare every node-table entry of the child node,
23662 * the child node to the node table of the parent node.
26017 * we will not validate child elements of broken parents.
26096 "Missing child element(s)",
26885 "the child element was valid but neither the "