• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:rule

97  * A Schematrons rule
102 xmlSchematronRulePtr next; /* the next rule in the list */
103 xmlSchematronRulePtr patnext;/* the next rule in the pattern list */
105 xmlChar *context; /* the context evaluation rule */
295 * @rule: the parent rule
307 xmlSchematronRulePtr rule,
313 if ((ctxt == NULL) || (rule == NULL) || (node == NULL) ||
341 if (rule->tests == NULL) {
342 rule->tests = ret;
344 xmlSchematronTestPtr prev = rule->tests;
380 * @node: the node hosting the rule
384 * Add a rule to a schematron
414 xmlSchematronPErrMemory(ctxt, "allocating schema rule", node);
842 * @rule: the rule node
844 * parse a rule element
849 xmlNodePtr rule)
859 if ((ctxt == NULL) || (rule == NULL)) return;
861 context = xmlGetNoNsProp(rule, BAD_CAST "context");
863 xmlSchematronPErr(ctxt, rule,
865 "rule has no context attribute",
869 xmlSchematronPErr(ctxt, rule,
871 "rule has an empty context attribute",
877 rule, context, NULL);
884 cur = rule->children;
943 xmlSchematronPErr(ctxt, rule,
945 "rule has no assert nor report element", NULL, NULL);
979 if (IS_SCHEMATRON(cur, "rule")) {
985 "Expecting a rule element instead of %s", cur->name, NULL);
993 "Pattern has no rule element", NULL, NULL);
1595 * Validate a rule against a tree instance at a given position
1668 xmlSchematronRulePtr rule;
1689 rule = ctxt->schema->rules;
1690 while (rule != NULL) {
1691 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1692 test = rule->tests;
1694 xmlSchematronRunTest(ctxt, test, instance, cur, (xmlSchematronPatternPtr)rule->pattern);
1698 rule = rule->next;
1713 * TODO convert the pattern rule to a direct XPath and
1720 rule = pattern->rules;
1721 while (rule != NULL) {
1722 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1723 test = rule->tests;
1729 rule = rule->patnext;