Lines Matching defs: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 */
290 * @rule: the parent rule
302 xmlSchematronRulePtr rule,
308 if ((ctxt == NULL) || (rule == NULL) || (node == NULL) ||
336 if (rule->tests == NULL) {
337 rule->tests = ret;
339 xmlSchematronTestPtr prev = rule->tests;
375 * @node: the node hosting the rule
379 * Add a rule to a schematron
409 xmlSchematronPErrMemory(ctxt, "allocating schema rule", node);
837 * @rule: the rule node
839 * parse a rule element
844 xmlNodePtr rule)
854 if ((ctxt == NULL) || (rule == NULL)) return;
856 context = xmlGetNoNsProp(rule, BAD_CAST "context");
858 xmlSchematronPErr(ctxt, rule,
860 "rule has no context attribute",
864 xmlSchematronPErr(ctxt, rule,
866 "rule has an empty context attribute",
872 rule, context, NULL);
879 cur = rule->children;
938 xmlSchematronPErr(ctxt, rule,
940 "rule has no assert nor report element", NULL, NULL);
974 if (IS_SCHEMATRON(cur, "rule")) {
980 "Expecting a rule element instead of %s", cur->name, NULL);
988 "Pattern has no rule element", NULL, NULL);
1547 * Validate a rule against a tree instance at a given position
1620 xmlSchematronRulePtr rule;
1641 rule = ctxt->schema->rules;
1642 while (rule != NULL) {
1643 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1644 test = rule->tests;
1650 rule = rule->next;
1665 * TODO convert the pattern rule to a direct XPath and
1672 rule = pattern->rules;
1673 while (rule != NULL) {
1674 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1675 test = rule->tests;
1681 rule = rule->patnext;