* xmlSchematronReportPattern: * @ctxt: the validation context * @pattern: the current pattern * * called from the validation engine when starting to check a pattern */
| 1680 | * called from the validation engine when starting to check a pattern |
| 1681 | */ |
| 1682 | static void |
| 1683 | xmlSchematronReportPattern(xmlSchematronValidCtxtPtr ctxt, |
| 1684 | xmlSchematronPatternPtr pattern) { |
| 1685 | if ((ctxt == NULL) || (pattern == NULL)) |
| 1686 | return; |
| 1687 | if ((ctxt->flags & XML_SCHEMATRON_OUT_QUIET) || (ctxt->flags & XML_SCHEMATRON_OUT_ERROR)) /* Error gives pattern name as part of error */ |
| 1688 | return; |
| 1689 | if (ctxt->flags & XML_SCHEMATRON_OUT_XML) { |
| 1690 | /* TODO */ |
| 1691 | } else { |
| 1692 | char msg[1000]; |
| 1693 | |
| 1694 | if (pattern->name == NULL) |
| 1695 | return; |
| 1696 | snprintf(msg, 999, "Pattern: %s\n", (const char *) pattern->name); |
| 1697 | xmlSchematronReportOutput(ctxt, NULL, &msg[0]); |
| 1698 | } |
| 1699 | } |
| 1700 | |
| 1701 | |
| 1702 | /************************************************************************ |
no test coverage detected