11 #ifndef __XML_SCHEMATRON_H__
12 #define __XML_SCHEMATRON_H__
14 #include <libxml/xmlversion.h>
16 #ifdef LIBXML_SCHEMATRON_ENABLED
18 #include <libxml/tree.h>
25 XML_SCHEMATRON_OUT_QUIET = 1 << 0,
26 XML_SCHEMATRON_OUT_TEXT = 1 << 1,
27 XML_SCHEMATRON_OUT_XML = 1 << 2,
28 XML_SCHEMATRON_OUT_ERROR = 1 << 3,
29 XML_SCHEMATRON_OUT_FILE = 1 << 8,
30 XML_SCHEMATRON_OUT_BUFFER = 1 << 9,
31 XML_SCHEMATRON_OUT_IO = 1 << 10
32 } xmlSchematronValidOptions;
37 typedef struct _xmlSchematron xmlSchematron;
38 typedef xmlSchematron *xmlSchematronPtr;
48 typedef void (*xmlSchematronValidityErrorFunc) (
void *ctx,
const char *msg, ...);
58 typedef void (*xmlSchematronValidityWarningFunc) (
void *ctx,
const char *msg, ...);
63 typedef struct _xmlSchematronParserCtxt xmlSchematronParserCtxt;
64 typedef xmlSchematronParserCtxt *xmlSchematronParserCtxtPtr;
66 typedef struct _xmlSchematronValidCtxt xmlSchematronValidCtxt;
67 typedef xmlSchematronValidCtxt *xmlSchematronValidCtxtPtr;
72 XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
73 xmlSchematronNewParserCtxt (
const char *URL);
74 XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
75 xmlSchematronNewMemParserCtxt(
const char *buffer,
77 XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
78 xmlSchematronNewDocParserCtxt(xmlDocPtr doc);
79 XMLPUBFUN
void XMLCALL
80 xmlSchematronFreeParserCtxt (xmlSchematronParserCtxtPtr ctxt);
95 XMLPUBFUN xmlSchematronPtr XMLCALL
96 xmlSchematronParse (xmlSchematronParserCtxtPtr ctxt);
97 XMLPUBFUN
void XMLCALL
98 xmlSchematronFree (xmlSchematronPtr schema);
102 XMLPUBFUN
void XMLCALL
103 xmlSchematronSetValidStructuredErrors(
104 xmlSchematronValidCtxtPtr ctxt,
105 xmlStructuredErrorFunc serror,
128 XMLPUBFUN xmlSchematronValidCtxtPtr XMLCALL
129 xmlSchematronNewValidCtxt (xmlSchematronPtr schema,
131 XMLPUBFUN
void XMLCALL
132 xmlSchematronFreeValidCtxt (xmlSchematronValidCtxtPtr ctxt);
133 XMLPUBFUN
int XMLCALL
134 xmlSchematronValidateDoc (xmlSchematronValidCtxtPtr ctxt,