| from lxml.includes cimport xmlerror |
| from lxml.includes.tree cimport xmlDoc |
|
|
| cdef extern from "libxml/schematron.h" nogil: |
| ctypedef struct xmlSchematron |
| ctypedef struct xmlSchematronParserCtxt |
| ctypedef struct xmlSchematronValidCtxt |
|
|
| ctypedef enum xmlSchematronValidOptions: |
| XML_SCHEMATRON_OUT_QUIET = 1 |
| XML_SCHEMATRON_OUT_TEXT = 2 |
| XML_SCHEMATRON_OUT_XML = 4 |
| XML_SCHEMATRON_OUT_ERROR = 8 |
| XML_SCHEMATRON_OUT_FILE = 256 |
| XML_SCHEMATRON_OUT_BUFFER = 512 |
| XML_SCHEMATRON_OUT_IO = 1024 |
|
|
| cdef xmlSchematronParserCtxt* xmlSchematronNewDocParserCtxt( |
| xmlDoc* doc) |
| cdef xmlSchematronParserCtxt* xmlSchematronNewParserCtxt( |
| char* filename) nogil |
| cdef xmlSchematronValidCtxt* xmlSchematronNewValidCtxt( |
| xmlSchematron* schema, int options) |
|
|
| cdef xmlSchematron* xmlSchematronParse(xmlSchematronParserCtxt* ctxt) |
| cdef int xmlSchematronValidateDoc(xmlSchematronValidCtxt* ctxt, |
| xmlDoc* instance) |
|
|
| cdef void xmlSchematronFreeParserCtxt(xmlSchematronParserCtxt* ctxt) |
| cdef void xmlSchematronFreeValidCtxt(xmlSchematronValidCtxt* ctxt) |
| cdef void xmlSchematronFree(xmlSchematron* schema) |
| cdef void xmlSchematronSetValidStructuredErrors( |
| xmlSchematronValidCtxt* ctxt, |
| xmlerror.xmlStructuredErrorFunc error_func, void *data) |
|
|