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/tree"
17
d xmlSchematronValidOptions...
18
d s 10i 0 based(######typedef######) enum
19
d XML_SCHEMATRON_OUT_QUIET... Quiet no report
21
d XML_SCHEMATRON_OUT_TEXT... Build textual report
23
d XML_SCHEMATRON_OUT_XML... Output SVRL
25
d XML_SCHEMATRON_OUT_ERROR... Output to error func
27
d XML_SCHEMATRON_OUT_FILE... Output to file descr
29
d XML_SCHEMATRON_OUT_BUFFER... Output to a buffer
31
d XML_SCHEMATRON_OUT_IO... Output to I/O mech
34
* The schemas related types are kept internal
37
d s * based(######typedef######)
39
* xmlSchematronValidityErrorFunc:
40
* @ctx: the validation context
42
* @...: extra arguments
44
* Signature of an error callback from a Schematron validation
46
d xmlSchematronValidityErrorFunc...
47
d s * based(######typedef######)
50
* xmlSchematronValidityWarningFunc:
51
* @ctx: the validation context
53
* @...: extra arguments
55
* Signature of a warning callback from a Schematron validation
57
d xmlSchematronValidityWarningFunc...
58
d s * based(######typedef######)
61
* A schemas validation context
63
d xmlSchematronParserCtxtPtr...
64
d s * based(######typedef######)
66
d xmlSchematronValidCtxtPtr...
67
d s * based(######typedef######)
69
* Interfaces for parsing.
71
d xmlSchematronNewParserCtxt...
72
d pr extproc('xmlSchematronNewParserCtxt')
73
d like(xmlSchematronParserCtxtPtr)
74
d URL * value options(*string) const char *
76
d xmlSchematronNewMemParserCtxt...
78
d 'xmlSchematronNewMemParserCtxt')
79
d like(xmlSchematronParserCtxtPtr)
80
d buffer * value options(*string) const char *
83
d xmlSchematronNewDocParserCtxt...
85
d 'xmlSchematronNewDocParserCtxt')
86
d like(xmlSchematronParserCtxtPtr)
87
d doc value like(xmlDocPtr)
89
d xmlSchematronFreeParserCtxt...
91
d 'xmlSchematronFreeParserCtxt')
93
d like(xmlSchematronParserCtxtPtr)
96
d xmlSchematronSetParserErrors...
98
d 'xmlSchematronSetParserErrors')
100
d like(xmlSchematronParserCtxtPtr)
102
d like(xmlSchematronValidityErrorFunc)
104
d xmlSchematronValidityWarningFunc)
107
d xmlSchematronGetParserErrors...
109
d 'xmlSchematronGetParserErrors')
111
d like(xmlSchematronParserCtxtPtr)
112
d err like(xmlSchematronValidityErrorFunc)
114
d xmlSchematronValidityWarningFunc)
117
d xmlSchematronIsValid...
118
d pr 10i 0 extproc('xmlSchematronIsValid')
119
d ctxt value like(xmlSchematronValidCtxtPtr)
122
d xmlSchematronParse...
123
d pr extproc('xmlSchematronParse')
124
d like(xmlSchematronPtr)
126
d like(xmlSchematronParserCtxtPtr)
128
d xmlSchematronFree...
129
d pr extproc('xmlSchematronFree')
130
d schema value like(xmlSchematronPtr)
132
* Interfaces for validating
134
d xmlSchematronSetValidStructuredErrors...
135
d pr extproc('xmlSchematronSetValidStruct-
137
d ctxt value like(xmlSchematronValidCtxtPtr)
138
d serror value like(xmlStructuredErrorFunc)
141
/if defined(DISABLED)
142
d xmlSchematronSetValidErrors...
144
d 'xmlSchematronSetValidErrors')
145
d ctxt value like(xmlSchematronValidCtxtPtr)
147
d like(xmlSchematronValidityErrorFunc)
149
d xmlSchematronValidityWarningFunc)
152
d xmlSchematronGetValidErrors...
154
d 'xmlSchematronGetValidErrors')
155
d ctxt value like(xmlSchematronValidCtxtPtr)
156
d err like(xmlSchematronValidityErrorFunc)
158
d xmlSchematronValidityWarningFunc)
161
d xmlSchematronSetValidOptions...
163
d 'xmlSchematronSetValidOptions')
164
d ctxt value like(xmlSchematronValidCtxtPtr)
165
d options 10i 0 value
167
d xmlSchematronValidCtxtGetOptions...
169
d 'xmlSchematronValidCtxtGetOptions')
170
d ctxt value like(xmlSchematronValidCtxtPtr)
172
d xmlSchematronValidateOneElement...
174
d 'xmlSchematronValidateOneElement')
175
d ctxt value like(xmlSchematronValidCtxtPtr)
176
d elem value like(xmlNodePtr)
179
d xmlSchematronNewValidCtxt...
180
d pr extproc('xmlSchematronNewValidCtxt')
181
d like(xmlSchematronValidCtxtPtr)
182
d schema value like(xmlSchematronPtr)
183
d options 10i 0 value
185
d xmlSchematronFreeValidCtxt...
186
d pr extproc('xmlSchematronFreeValidCtxt')
187
d ctxt value like(xmlSchematronValidCtxtPtr)
189
d xmlSchematronValidateDoc...
190
d pr 10i 0 extproc('xmlSchematronValidateDoc')
191
d ctxt value like(xmlSchematronValidCtxtPtr)
192
d instance value like(xmlDocPtr)
194
/endif _SCHEMATRON_ENABLED
195
/endif XML_SCHEMATRON_H__