MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSchematronReportPattern

Function xmlSchematronReportPattern

ThirdParty/libxml2/vtklibxml2/schematron.c:1682–1699  ·  view source on GitHub ↗

* xmlSchematronReportPattern: * @ctxt: the validation context * @pattern: the current pattern * * called from the validation engine when starting to check a pattern */

Source from the content-addressed store, hash-verified

1680 * called from the validation engine when starting to check a pattern
1681 */
1682static void
1683xmlSchematronReportPattern(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/************************************************************************

Callers 1

xmlSchematronValidateDocFunction · 0.85

Calls 1

Tested by

no test coverage detected