Lines Matching refs:pattern

12  *        - multiple rules applying in a single pattern/node
34 #include <libxml/pattern.h>
103 xmlSchematronRulePtr patnext;/* the next rule in the pattern list */
107 xmlPatternPtr pattern; /* the compiled pattern associated */
114 * A Schematrons pattern
119 xmlSchematronPatternPtr next;/* the next pattern in the list */
121 xmlChar *name; /* the name of the pattern */
389 xmlPatternPtr pattern;
396 * Try first to compile the pattern
398 pattern = xmlPatterncompile(context, ctxt->dict, XML_PATTERN_XPATH,
400 if (pattern == NULL) {
415 ret->pattern = pattern;
456 if (rules->pattern)
457 xmlFreePattern(rules->pattern);
469 * @node: the node hosting the pattern
470 * @id: the id or name of the pattern
472 * Add a pattern to a schematron
487 xmlSchematronPErrMemory(ctxt, "allocating schema pattern", node);
843 xmlSchematronPatternPtr pattern,
871 ruleptr = xmlSchematronAddRule(ctxt, ctxt->schema, pattern,
947 * @pat: the pattern node
949 * parse a pattern element
955 xmlSchematronPatternPtr pattern;
965 pattern = xmlSchematronAddPattern(ctxt, ctxt->schema, pat, id);
966 if (pattern == NULL) {
975 xmlSchematronParseRule(ctxt, pattern, cur);
1187 if (IS_SCHEMATRON(cur, "pattern")) {
1193 "Expecting a pattern element instead of %s", cur->name, NULL);
1201 "The schematron document '%s' has no pattern",
1415 * @pattern: the current pattern
1417 * called from the validation engine when starting to check a pattern
1421 xmlSchematronPatternPtr pattern) {
1422 if ((ctxt == NULL) || (pattern == NULL))
1431 if (pattern->name == NULL)
1433 snprintf(msg, 999, "Pattern: %s\n", (const char *) pattern->name);
1619 xmlSchematronPatternPtr pattern;
1643 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1659 pattern = ctxt->schema->patterns;
1661 while (pattern != NULL) {
1662 xmlSchematronReportPattern(ctxt, pattern);
1665 * TODO convert the pattern rule to a direct XPath and
1666 * compute directly instead of using the pattern matching
1672 rule = pattern->rules;
1674 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1686 pattern = pattern->next;