libxml-rs 0.1.0-alpha.13

Phase 11: Historical matrix — semantic epochs. Native-Rust forensic reimplementation of libxml2+libxslt with C ABI drop-in replacement. Cross-version oracle matrix (libxml2 2.7.8-2.15.3, libxslt 1.1.26-1.1.45) with semantic epochs E-001..E-008 correlated to upstream commits (xpath output 2.9.10, parser diagnostics 2.9.11/2.12, exit-code + entity-text epochs 2.13.0, html/valid 2.15.0), historical residual fingerprints, full xmllint/xmlcatalog/xsltproc CLIs, 1110 tests passing.
Documentation
/**
 * @file
 *
 * Schematron API for libxml-rs
 *
 * Native Rust implementation — drop-in replacement for libxml2's
 * schematron.h. API follows upstream libxml2 Schematron support.
 */

#ifndef __XML_SCHEMATRON_H__
#define __XML_SCHEMATRON_H__

#include <libxml/xmlversion.h>
#include <libxml/tree.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * xmlSchematron:
 *
 * A Schematron schema (opaque type).
 */
typedef struct _xmlSchematron *xmlSchematronPtr;
typedef xmlSchematronPtr xmlSchematron;

/**
 * xmlSchematronParserCtxt:
 *
 * A Schematron parser context (opaque type).
 */
typedef struct _xmlSchematronParserCtxt *xmlSchematronParserCtxtPtr;
typedef xmlSchematronParserCtxtPtr xmlSchematronParserCtxt;

/**
 * xmlSchematronValidCtxt:
 *
 * A Schematron validation context (opaque type).
 */
typedef struct _xmlSchematronValidCtxt *xmlSchematronValidCtxtPtr;
typedef xmlSchematronValidCtxtPtr xmlSchematronValidCtxt;

/*
 * Parser functions
 */
xmlSchematronParserCtxtPtr xmlSchematronNewParserCtxt(const char *URL);
xmlSchematronParserCtxtPtr xmlSchematronNewMemParserCtxt(const char *buffer, int size);
xmlSchematronPtr           xmlSchematronParse(xmlSchematronParserCtxtPtr ctxt);
void                       xmlSchematronFreeParserCtxt(xmlSchematronParserCtxtPtr ctxt);
void                       xmlSchematronFree(xmlSchematronPtr schema);

/*
 * Validation functions
 */
xmlSchematronValidCtxtPtr  xmlSchematronNewValidCtxt(xmlSchematronPtr schema);
void                       xmlSchematronFreeValidCtxt(xmlSchematronValidCtxtPtr ctxt);
int                        xmlSchematronValidateDoc(xmlSchematronValidCtxtPtr ctxt,
                                                     xmlDocPtr doc);

#ifdef __cplusplus
}
#endif

#endif /* __XML_SCHEMATRON_H__ */