• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libxml/

Lines Matching defs: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);
841 xmlSchematronPatternPtr pattern,
869 ruleptr = xmlSchematronAddRule(ctxt, ctxt->schema, pattern,
945 * @pat: the pattern node
947 * parse a pattern element
953 xmlSchematronPatternPtr pattern;
963 pattern = xmlSchematronAddPattern(ctxt, ctxt->schema, pat, id);
964 if (pattern == NULL) {
973 xmlSchematronParseRule(ctxt, pattern, cur);
1183 if (IS_SCHEMATRON(cur, "pattern")) {
1189 "Expecting a pattern element instead of %s", cur->name, NULL);
1197 "The schematron document '%s' has no pattern",
1408 * @pattern: the current pattern
1410 * called from the validation engine when starting to check a pattern
1414 xmlSchematronPatternPtr pattern) {
1415 if ((ctxt == NULL) || (pattern == NULL))
1424 if (pattern->name == NULL)
1426 snprintf(msg, 999, "Pattern: %s\n", (const char *) pattern->name);
1612 xmlSchematronPatternPtr pattern;
1636 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1652 pattern = ctxt->schema->patterns;
1654 while (pattern != NULL) {
1655 xmlSchematronReportPattern(ctxt, pattern);
1658 * TODO convert the pattern rule to a direct XPath and
1659 * compute directly instead of using the pattern matching
1665 rule = pattern->rules;
1667 if (xmlPatternMatch(rule->pattern, cur) == 1) {
1679 pattern = pattern->next;