Lines Matching +defs:val +defs:list
113 xmlRelaxNGDefinePtr startList; /* list of <start> definitions */
129 XML_RELAXNG_LIST, /* a list of patterns */
162 xmlRelaxNGDefinePtr next; /* list within grouping sequences */
163 xmlRelaxNGDefinePtr attrs; /* list of attributes for elements */
372 xmlRelaxNGStatesPtr states; /* the accumulated state list */
602 * @val: the facet value
612 const xmlChar * val,
693 * @docu: a list of document structure
732 * @incl: a include structure list
2039 return ("list");
2120 snprintf(msg, 1000, "Extra data in list: %s\n", arg1);
2202 return (xmlCharStrdup("Error validating list\n"));
2463 * @val: the facet value
2474 const xmlChar * val, const xmlChar * strval,
2521 facet->value = val;
2891 xmlRelaxNGDefinePtr list;
2893 list = def->content;
2894 while (list != NULL) {
2895 ret = xmlRelaxNGIsCompileable(list);
2898 list = list->next;
2941 xmlRelaxNGDefinePtr list;
2944 list = def->content;
2945 while (list != NULL) {
2946 ret = xmlRelaxNGIsCompileable(list);
2949 list = list->next;
2960 xmlRelaxNGDefinePtr list;
2962 list = def->content;
2963 while (list != NULL) {
2964 ret = xmlRelaxNGIsCompileable(list);
2967 list = list->next;
3018 xmlRelaxNGDefinePtr list;
3031 list = def->content;
3036 while (list != NULL) {
3037 xmlRelaxNGCompile(ctxt, list);
3038 list = list->next;
3062 list = def->content;
3067 while (list != NULL) {
3068 xmlRelaxNGCompile(ctxt, list);
3069 list = list->next;
3111 list = def->content;
3112 while (list != NULL) {
3113 xmlRelaxNGCompile(ctxt, list);
3114 list = list->next;
3124 list = def->content;
3125 while (list != NULL) {
3126 xmlRelaxNGCompile(ctxt, list);
3127 list = list->next;
3130 list = def->content;
3131 while (list != NULL) {
3132 xmlRelaxNGCompile(ctxt, list);
3133 list = list->next;
3144 list = def->content;
3145 while (list != NULL) {
3147 ret = xmlRelaxNGCompile(ctxt, list);
3156 list = list->next;
3167 list = def->content;
3168 while (list != NULL) {
3169 ret = xmlRelaxNGCompile(ctxt, list);
3172 list = list->next;
3223 xmlRelaxNGDefinePtr list;
3278 list = def->content;
3279 while (list != NULL) {
3280 ret = xmlRelaxNGTryCompile(ctxt, list);
3283 list = list->next;
3372 xmlRelaxNGDefinePtr list = define->content;
3374 while (list != NULL) {
3375 ret = xmlRelaxNGIsNullable(list);
3378 list = list->next;
3386 xmlRelaxNGDefinePtr list = define->content;
3388 while (list != NULL) {
3389 ret = xmlRelaxNGIsNullable(list);
3392 list = list->next;
3553 void *val = NULL;
3556 lib->check(lib->data, def->name, def->value, &val, node);
3562 if (val != NULL)
3563 def->attrs = val;
3832 * @defs1: the first list of element/attribute defs
3833 * @defs2: the second list of element/attribute defs
3945 * Compute the list of top elements a definition can generate
3947 * Returns a list of elements or NULL if none was found.
3975 xmlRngPErrMemory(ctxt, "getting element list\n");
3985 xmlRngPErrMemory(ctxt, "getting element list\n");
4005 * Just gather the element top list
4050 xmlRelaxNGDefinePtr **list;
4079 list = (xmlRelaxNGDefinePtr **) xmlMalloc(nbchild *
4082 if (list == NULL) {
4097 list[i] = xmlRelaxNGGetElements(ctxt, cur, 0);
4098 if ((list[i] == NULL) || (list[i][0] == NULL)) {
4104 tmp = list[i];
4146 if (list[i] == NULL)
4149 if (list[j] == NULL)
4151 ret = xmlRelaxNGCompareElemDefLists(ctxt, list[i], list[j]);
4158 if (list[i] != NULL)
4159 xmlFree(list[i]);
4162 xmlFree(list);
4186 xmlRelaxNGDefinePtr **list;
4216 list = (xmlRelaxNGDefinePtr **) xmlMalloc(nbchild *
4219 if (list == NULL) {
4226 list[i] = xmlRelaxNGGetElements(ctxt, cur, 1);
4232 list[i] = xmlRelaxNGGetElements(ctxt, cur, 1);
4238 if (list[i] == NULL)
4241 if (list[j] == NULL)
4243 ret = xmlRelaxNGCompareElemDefLists(ctxt, list[i], list[j]);
4251 if (list[i] != NULL)
4252 xmlFree(list[i]);
4255 xmlFree(list);
4268 * by the interleaves, order the list of interleave definitions
4409 * and save the partition list back in the def
4531 * Merge the definition from both the include and the internal list
4859 } else if (IS_RELAXNG(node, "list")) {
5161 xmlChar *val;
5179 val = xmlNodeGetContent(node);
5180 xmlRelaxNGNormExtSpace(val);
5181 if (xmlValidateNCName(val, 0)) {
5185 node->parent->name, val);
5189 val, NULL);
5191 ret->name = val;
5192 val = xmlGetProp(node, BAD_CAST "ns");
5193 ret->ns = val;
5195 (val != NULL) &&
5196 (xmlStrEqual(val, BAD_CAST "http://www.w3.org/2000/xmlns"))) {
5199 val, NULL);
5202 (val != NULL) &&
5203 (val[0] == 0) && (xmlStrEqual(ret->name, BAD_CAST "xmlns"))) {
5206 val, NULL);
5402 * @nodes: list of nodes
5607 * @define: the define(s) list
6137 xmlRelaxNGContentType ret, tmp, val = XML_RELAXNG_CONTENT_EMPTY;
6144 * This should actually be caught by list//element(ref) at the
6151 "Found forbidden pattern list//ref\n", NULL,
6182 "Found forbidden pattern list//element(ref)\n",
6225 "Found forbidden pattern list//attribute\n",
6283 "Found forbidden pattern list//list\n", NULL,
6288 "Found forbidden pattern data/except//list\n",
6293 "Found forbidden pattern start//list\n", NULL,
6325 "Found forbidden pattern list//interleave\n",
6373 "Found forbidden pattern list//text\n", NULL,
6409 val = xmlRelaxNGGroupContentType(val, ret);
6411 tmp = xmlRelaxNGGroupContentType(val, ret);
6413 tmp = xmlRelaxNGMaxContentType(val, ret);
6415 val = xmlRelaxNGMaxContentType(val, ret);
6417 val = XML_RELAXNG_CONTENT_SIMPLE;
6420 val = XML_RELAXNG_CONTENT_ERROR;
6422 val = XML_RELAXNG_CONTENT_SIMPLE;
6424 val = xmlRelaxNGGroupContentType(val, ret);
6428 return (val);
6823 xmlChar *val;
6826 val = xmlNodeListGetString(node->doc, cur->children, 1);
6827 if (val != NULL) {
6828 if (val[0] != 0) {
6829 uri = xmlParseURI((const char *) val);
6833 cur->name, val);
6838 cur->name, val);
6843 cur->name, val);
6848 xmlFree(val);
7225 * of cur->parent's list, since it's never going to be re-serialized
7550 * @defines: a list of define structures
7598 fprintf(output, "<list>\n");
7600 fprintf(output, "</list>\n");
7837 * @content: list of children to test against the regexp
8518 * Skip to the next value when validating within a list
8547 * @defines: the list of definitions to verify
8653 xmlRelaxNGDefinePtr list = define->content;
8660 while (list != NULL) {
8661 ret = xmlRelaxNGValidateValue(ctxt, list);
8666 list = list->next;
8679 xmlRelaxNGDefinePtr list = define->content;
8680 xmlChar *oldvalue, *oldend, *val, *cur;
8689 val = xmlStrdup(oldvalue);
8690 if (val == NULL) {
8691 val = xmlStrdup(BAD_CAST "");
8693 if (val == NULL) {
8697 cur = val;
8712 "list value: '%s' found %d items\n",
8717 cur = val;
8723 while (list != NULL) {
8726 ret = xmlRelaxNGValidateValue(ctxt, list);
8738 list = list->next;
8747 xmlFree(val);
8783 xmlRelaxNGDefinePtr list;
8785 list = define->content;
8786 while (list != NULL) {
8787 ret = xmlRelaxNGValidateValue(ctxt, list);
8793 list = list->next;
8799 xmlRelaxNGDefinePtr list;
8801 list = define->content;
8802 while (list != NULL) {
8803 ret = xmlRelaxNGValidateValue(ctxt, list);
8809 list = list->next;
8826 * @defines: the list of definitions to verify
8881 xmlRelaxNGDefinePtr list;
8883 list = define->content;
8884 while (list != NULL) {
8885 ret = xmlRelaxNGAttributeMatch(ctxt, list, prop);
8890 list = list->next;
9010 * @define: the list of definition to verify
9012 * Validate the given node against the list of attribute definitions
9058 * @list: a NULL terminated array of definitions
9065 xmlRelaxNGNodeMatchesList(xmlNodePtr node, xmlRelaxNGDefinePtr * list)
9070 if ((node == NULL) || (list == NULL))
9073 cur = list[i++];
9085 cur = list[i++];
9111 xmlNodePtr *list = NULL, *lasts = NULL;
9156 list = (xmlNodePtr *) xmlMalloc(nbgroups * sizeof(xmlNodePtr));
9157 if (list == NULL) {
9161 memset(list, 0, nbgroups * sizeof(xmlNodePtr));
9233 list[i] = cur;
9256 ctxt->state->seq = list[i];
9370 xmlFree(list);
9378 * @define: the list of definition to verify
9380 * Validate the given node content against the (list) of definitions
9393 BAD_CAST "NULL definition list");
9458 xmlRelaxNGDefinePtr list;
9465 list = define->content;
9466 while (list != NULL) {
9467 ret = xmlRelaxNGElementMatch(ctxt, list, elem);
9478 list = list->next;
9485 xmlRelaxNGDefinePtr list;
9492 list = define->nameClass;
9493 while (list != NULL) {
9494 ret = xmlRelaxNGElementMatch(ctxt, list, elem);
9505 list = list->next;
9530 * Find the "best" state in the ctxt->states list of states to report
9531 * errors about. I.e. a state with no element left in the child list
9573 * Find the "best" state in the ctxt->states list of states to report
9600 * or in the attribute list.
10132 xmlRelaxNGDefinePtr list = NULL;
10154 list =
10158 list = xmlHashLookup2(triage, node->name,
10160 if (list == NULL)
10161 list =
10165 list =
10167 if (list == NULL)
10168 list =
10172 if (list == NULL) {
10177 ret = xmlRelaxNGValidateDefinition(ctxt, list);
10183 list = define->content;
10187 while (list != NULL) {
10189 ret = xmlRelaxNGValidateDefinition(ctxt, list);
10209 list = list->next;