1 * Summary: XML Schemastron implementation
2 * Description: interface to the XML Schematron validity checking.
4 * Copy: See Copyright for the status of this software.
6 * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
8 /if not defined(XML_SCHEMATRON_H__)
9 /define XML_SCHEMATRON_H__
11 /include "libxmlrpg/xmlversion"
13 /if defined(LIBXML_SCHEMATRON_ENABLED)
15 /include "libxmlrpg/xmlTypesC"
16 /include "libxmlrpg/tree"
18 d xmlSchematronValidOptions...
19 d s based(######typedef######)
21 d XML_SCHEMATRON_OUT_QUIET... Quiet no report
23 d XML_SCHEMATRON_OUT_TEXT... Build textual report
25 d XML_SCHEMATRON_OUT_XML... Output SVRL
27 d XML_SCHEMATRON_OUT_ERROR... Output to error func
29 d XML_SCHEMATRON_OUT_FILE... Output to file descr
31 d XML_SCHEMATRON_OUT_BUFFER... Output to a buffer
33 d XML_SCHEMATRON_OUT_IO... Output to I/O mech
36 * The schemas related types are kept internal
39 d s * based(######typedef######)
41 * xmlSchematronValidityErrorFunc:
42 * @ctx: the validation context
44 * @...: extra arguments
46 * Signature of an error callback from a Schematron validation
48 d xmlSchematronValidityErrorFunc...
49 d s * based(######typedef######)
52 * xmlSchematronValidityWarningFunc:
53 * @ctx: the validation context
55 * @...: extra arguments
57 * Signature of a warning callback from a Schematron validation
59 d xmlSchematronValidityWarningFunc...
60 d s * based(######typedef######)
63 * A schemas validation context
65 d xmlSchematronParserCtxtPtr...
66 d s * based(######typedef######)
68 d xmlSchematronValidCtxtPtr...
69 d s * based(######typedef######)
71 * Interfaces for parsing.
73 d xmlSchematronNewParserCtxt...
74 d pr extproc('xmlSchematronNewParserCtxt')
75 d like(xmlSchematronParserCtxtPtr)
76 d URL * value options(*string) const char *
78 d xmlSchematronNewMemParserCtxt...
80 d 'xmlSchematronNewMemParserCtxt')
81 d like(xmlSchematronParserCtxtPtr)
82 d buffer * value options(*string) const char *
83 d size value like(xmlCint)
85 d xmlSchematronNewDocParserCtxt...
87 d 'xmlSchematronNewDocParserCtxt')
88 d like(xmlSchematronParserCtxtPtr)
89 d doc value like(xmlDocPtr)
91 d xmlSchematronFreeParserCtxt...
93 d 'xmlSchematronFreeParserCtxt')
95 d like(xmlSchematronParserCtxtPtr)
98 d xmlSchematronSetParserErrors...
100 d 'xmlSchematronSetParserErrors')
102 d like(xmlSchematronParserCtxtPtr)
104 d like(xmlSchematronValidityErrorFunc)
106 d xmlSchematronValidityWarningFunc)
109 d xmlSchematronGetParserErrors...
111 d 'xmlSchematronGetParserErrors')
114 d like(xmlSchematronParserCtxtPtr)
115 d err like(xmlSchematronValidityErrorFunc)
117 d xmlSchematronValidityWarningFunc)
120 d xmlSchematronIsValid...
121 d pr extproc('xmlSchematronIsValid')
123 d ctxt value like(xmlSchematronValidCtxtPtr)
126 d xmlSchematronParse...
127 d pr extproc('xmlSchematronParse')
128 d like(xmlSchematronPtr)
130 d like(xmlSchematronParserCtxtPtr)
132 d xmlSchematronFree...
133 d pr extproc('xmlSchematronFree')
134 d schema value like(xmlSchematronPtr)
136 * Interfaces for validating
138 d xmlSchematronSetValidStructuredErrors...
139 d pr extproc('xmlSchematronSetValidStruct-
141 d ctxt value like(xmlSchematronValidCtxtPtr)
142 d serror value like(xmlStructuredErrorFunc)
145 /if defined(DISABLED)
146 d xmlSchematronSetValidErrors...
148 d 'xmlSchematronSetValidErrors')
149 d ctxt value like(xmlSchematronValidCtxtPtr)
151 d like(xmlSchematronValidityErrorFunc)
153 d xmlSchematronValidityWarningFunc)
156 d xmlSchematronGetValidErrors...
158 d 'xmlSchematronGetValidErrors')
160 d ctxt value like(xmlSchematronValidCtxtPtr)
161 d err like(xmlSchematronValidityErrorFunc)
163 d xmlSchematronValidityWarningFunc)
166 d xmlSchematronSetValidOptions...
168 d 'xmlSchematronSetValidOptions')
170 d ctxt value like(xmlSchematronValidCtxtPtr)
171 d options value like(xmlCint)
173 d xmlSchematronValidCtxtGetOptions...
175 d 'xmlSchematronValidCtxtGetOptions')
177 d ctxt value like(xmlSchematronValidCtxtPtr)
179 d xmlSchematronValidateOneElement...
181 d 'xmlSchematronValidateOneElement')
183 d ctxt value like(xmlSchematronValidCtxtPtr)
184 d elem value like(xmlNodePtr)
187 d xmlSchematronNewValidCtxt...
188 d pr extproc('xmlSchematronNewValidCtxt')
189 d like(xmlSchematronValidCtxtPtr)
190 d schema value like(xmlSchematronPtr)
191 d options value like(xmlCint)
193 d xmlSchematronFreeValidCtxt...
194 d pr extproc('xmlSchematronFreeValidCtxt')
195 d ctxt value like(xmlSchematronValidCtxtPtr)
197 d xmlSchematronValidateDoc...
198 d pr extproc('xmlSchematronValidateDoc')
200 d ctxt value like(xmlSchematronValidCtxtPtr)
201 d instance value like(xmlDocPtr)
203 /endif _SCHEMATRON_ENABLED
204 /endif XML_SCHEMATRON_H__