• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

Lines Matching defs:test

19  * + hook and test include
81 * A Schematrons test, either an assert or a report
86 xmlSchematronTestPtr next; /* the next test in the list */
87 xmlSchematronTestType type; /* the test type */
89 xmlChar *test; /* the expression to test */
289 * @type: the type of test
291 * @node: the node hosting the test
292 * @test: the associated test
295 * Add a test to a schematron
303 xmlNodePtr node, xmlChar *test, xmlChar *report)
309 (test == NULL))
313 * try first to compile the test expression
315 comp = xmlXPathCtxtCompile(ctxt->xctxt, test);
319 "Failed to compile test expression %s",
320 test, NULL);
326 xmlSchematronPErrMemory(ctxt, "allocating schema test", node);
332 ret->test = test;
360 if (tests->test != NULL)
361 xmlFree(tests->test);
846 xmlChar *test;
882 test = xmlGetNoNsProp(cur, BAD_CAST "test");
883 if (test == NULL) {
886 "assert has no test attribute",
888 } else if (test[0] == 0) {
891 "assert has an empty test attribute",
893 xmlFree(test);
899 ruleptr, cur, test, report);
901 xmlFree(test);
905 test = xmlGetNoNsProp(cur, BAD_CAST "test");
906 if (test == NULL) {
909 "assert has no test attribute",
911 } else if (test[0] == 0) {
914 "assert has an empty test attribute",
916 xmlFree(test);
922 ruleptr, cur, test, report);
924 xmlFree(test);
1270 * @test: the test node
1280 xmlNodePtr test, xmlNodePtr cur) {
1284 if ((test == NULL) || (cur == NULL))
1287 child = test->children;
1348 * @test: the compiled test
1352 * called from the validation engine when an assert or report test have
1357 xmlSchematronTestPtr test, xmlNodePtr cur, int success) {
1358 if ((ctxt == NULL) || (cur == NULL) || (test == NULL))
1363 (test->type == XML_SCHEMATRON_REPORT))
1373 if (((test->type == XML_SCHEMATRON_REPORT) & (!success)) ||
1374 ((test->type == XML_SCHEMATRON_ASSERT) & (success)))
1381 if ((test->report != NULL) && (test->report[0] != 0))
1382 report = test->report;
1384 if (test->node != NULL)
1385 report = xmlSchematronFormatReport(ctxt, test->node, cur);
1387 if (test->type == XML_SCHEMATRON_ASSERT) {
1536 * @test: the current test
1546 xmlSchematronTestPtr test, xmlDocPtr instance, xmlNodePtr cur)
1554 ret = xmlXPathCompiledEval(test->comp, ctxt->xctxt);
1588 if ((failed) && (test->type == XML_SCHEMATRON_ASSERT))
1590 else if ((!failed) && (test->type == XML_SCHEMATRON_REPORT))
1593 xmlSchematronReportSuccess(ctxt, test, cur, !failed);
1614 xmlSchematronTestPtr test;
1637 test = rule->tests;
1638 while (test != NULL) {
1639 xmlSchematronRunTest(ctxt, test, instance, cur);
1640 test = test->next;
1668 test = rule->tests;
1669 while (test != NULL) {
1670 xmlSchematronRunTest(ctxt, test, instance, cur);
1671 test = test->next;