Warning, file /include/libxml2/libxml/schematron.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef __XML_SCHEMATRON_H__
0015 #define __XML_SCHEMATRON_H__
0016
0017 #include <libxml/xmlversion.h>
0018
0019 #ifdef LIBXML_SCHEMATRON_ENABLED
0020
0021 #include <libxml/xmlerror.h>
0022 #include <libxml/tree.h>
0023
0024 #ifdef __cplusplus
0025 extern "C" {
0026 #endif
0027
0028
0029
0030
0031 typedef enum {
0032
0033 XML_SCHEMATRON_OUT_QUIET = 1 << 0,
0034
0035 XML_SCHEMATRON_OUT_TEXT = 1 << 1,
0036
0037 XML_SCHEMATRON_OUT_XML = 1 << 2,
0038
0039 XML_SCHEMATRON_OUT_ERROR = 1 << 3,
0040
0041 XML_SCHEMATRON_OUT_FILE = 1 << 8,
0042
0043 XML_SCHEMATRON_OUT_BUFFER = 1 << 9,
0044
0045 XML_SCHEMATRON_OUT_IO = 1 << 10
0046 } xmlSchematronValidOptions;
0047
0048
0049 typedef struct _xmlSchematron xmlSchematron;
0050 typedef xmlSchematron *xmlSchematronPtr;
0051
0052
0053
0054
0055
0056
0057
0058
0059 typedef void (*xmlSchematronValidityErrorFunc) (void *ctx, const char *msg, ...);
0060
0061
0062
0063
0064
0065
0066
0067
0068 typedef void (*xmlSchematronValidityWarningFunc) (void *ctx, const char *msg, ...);
0069
0070
0071 typedef struct _xmlSchematronParserCtxt xmlSchematronParserCtxt;
0072 typedef xmlSchematronParserCtxt *xmlSchematronParserCtxtPtr;
0073
0074
0075 typedef struct _xmlSchematronValidCtxt xmlSchematronValidCtxt;
0076 typedef xmlSchematronValidCtxt *xmlSchematronValidCtxtPtr;
0077
0078
0079
0080
0081 XMLPUBFUN xmlSchematronParserCtxt *
0082 xmlSchematronNewParserCtxt (const char *URL);
0083 XMLPUBFUN xmlSchematronParserCtxt *
0084 xmlSchematronNewMemParserCtxt(const char *buffer,
0085 int size);
0086 XMLPUBFUN xmlSchematronParserCtxt *
0087 xmlSchematronNewDocParserCtxt(xmlDoc *doc);
0088 XMLPUBFUN void
0089 xmlSchematronFreeParserCtxt (xmlSchematronParserCtxt *ctxt);
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104 XMLPUBFUN xmlSchematron *
0105 xmlSchematronParse (xmlSchematronParserCtxt *ctxt);
0106 XMLPUBFUN void
0107 xmlSchematronFree (xmlSchematron *schema);
0108
0109
0110
0111 XMLPUBFUN void
0112 xmlSchematronSetValidStructuredErrors(
0113 xmlSchematronValidCtxt *ctxt,
0114 xmlStructuredErrorFunc serror,
0115 void *ctx);
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125
0126
0127
0128
0129
0130
0131
0132
0133
0134
0135
0136
0137 XMLPUBFUN xmlSchematronValidCtxt *
0138 xmlSchematronNewValidCtxt (xmlSchematron *schema,
0139 int options);
0140 XMLPUBFUN void
0141 xmlSchematronFreeValidCtxt (xmlSchematronValidCtxt *ctxt);
0142 XMLPUBFUN int
0143 xmlSchematronValidateDoc (xmlSchematronValidCtxt *ctxt,
0144 xmlDoc *instance);
0145
0146 #ifdef __cplusplus
0147 }
0148 #endif
0149
0150 #endif
0151 #endif