| OLD | NEW |
| 1 /* | 1 /* |
| 2 * schematron.c : implementation of the Schematron schema validity checking | 2 * schematron.c : implementation of the Schematron schema validity checking |
| 3 * | 3 * |
| 4 * See Copyright for the status of this software. | 4 * See Copyright for the status of this software. |
| 5 * | 5 * |
| 6 * Daniel Veillard <daniel@veillard.com> | 6 * Daniel Veillard <daniel@veillard.com> |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /* | 9 /* |
| 10 * TODO: | 10 * TODO: |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 * xmlSchematronPErr: | 238 * xmlSchematronPErr: |
| 239 * @ctxt: the parsing context | 239 * @ctxt: the parsing context |
| 240 * @node: the context node | 240 * @node: the context node |
| 241 * @error: the error code | 241 * @error: the error code |
| 242 * @msg: the error message | 242 * @msg: the error message |
| 243 * @str1: extra data | 243 * @str1: extra data |
| 244 * @str2: extra data | 244 * @str2: extra data |
| 245 * | 245 * |
| 246 * Handle a parser error | 246 * Handle a parser error |
| 247 */ | 247 */ |
| 248 static void | 248 static void LIBXML_ATTR_FORMAT(4,0) |
| 249 xmlSchematronPErr(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr node, int error, | 249 xmlSchematronPErr(xmlSchematronParserCtxtPtr ctxt, xmlNodePtr node, int error, |
| 250 const char *msg, const xmlChar * str1, const xmlChar * str2) | 250 const char *msg, const xmlChar * str1, const xmlChar * str2) |
| 251 { | 251 { |
| 252 xmlGenericErrorFunc channel = NULL; | 252 xmlGenericErrorFunc channel = NULL; |
| 253 xmlStructuredErrorFunc schannel = NULL; | 253 xmlStructuredErrorFunc schannel = NULL; |
| 254 void *data = NULL; | 254 void *data = NULL; |
| 255 | 255 |
| 256 if (ctxt != NULL) { | 256 if (ctxt != NULL) { |
| 257 ctxt->nberrors++; | 257 ctxt->nberrors++; |
| 258 channel = ctxt->error; | 258 channel = ctxt->error; |
| (...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 | 1778 |
| 1779 xmlCleanupParser(); | 1779 xmlCleanupParser(); |
| 1780 xmlMemoryDump(); | 1780 xmlMemoryDump(); |
| 1781 | 1781 |
| 1782 return (0); | 1782 return (0); |
| 1783 } | 1783 } |
| 1784 #endif | 1784 #endif |
| 1785 #define bottom_schematron | 1785 #define bottom_schematron |
| 1786 #include "elfgcchack.h" | 1786 #include "elfgcchack.h" |
| 1787 #endif /* LIBXML_SCHEMATRON_ENABLED */ | 1787 #endif /* LIBXML_SCHEMATRON_ENABLED */ |
| OLD | NEW |