Blame doc/html/libxml-schematron.html

Packit Service a31ea6
Packit Service a31ea6
Packit Service a31ea6
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
Packit Service a31ea6
TD {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
Packit Service a31ea6
H1 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H2 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H3 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
A:link, A:visited, A:active { text-decoration: underline }
Packit Service a31ea6
</style><style type="text/css">
Packit Service a31ea6
      div.deprecated pre.programlisting {border-style: double;border-color:red}
Packit Service a31ea6
      pre.programlisting {border-style: double;background: #EECFA1}
Packit Service a31ea6
    </style><title>Module schematron from libxml2</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module schematron from libxml2

<center>API Menu</center>
<form action="../search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form>
<center>API Indexes</center>
<center>Related links</center>

interface to the XML Schematron validity checking.

Table of Contents

Structure xmlSchematron
struct _xmlSchematron
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Structure xmlSchematronParserCtxt
struct _xmlSchematronParserCtxt
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Typedef xmlSchematronParserCtxt * xmlSchematronParserCtxtPtr
Packit Service a31ea6
Typedef xmlSchematron * xmlSchematronPtr
Packit Service a31ea6
Structure xmlSchematronValidCtxt
struct _xmlSchematronValidCtxt
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
Typedef xmlSchematronValidCtxt * xmlSchematronValidCtxtPtr
Packit Service a31ea6
Enum xmlSchematronValidOptions
Packit Service a31ea6
void	xmlSchematronFree		(xmlSchematronPtr schema)
Packit Service a31ea6
void	xmlSchematronFreeParserCtxt	(xmlSchematronParserCtxtPtr ctxt)
Packit Service a31ea6
void	xmlSchematronFreeValidCtxt	(xmlSchematronValidCtxtPtr ctxt)
Packit Service a31ea6
xmlSchematronParserCtxtPtr	xmlSchematronNewDocParserCtxt	(xmlDocPtr doc)
Packit Service a31ea6
xmlSchematronParserCtxtPtr	xmlSchematronNewMemParserCtxt	(const char * buffer, 
int size)
Packit Service a31ea6
xmlSchematronParserCtxtPtr	xmlSchematronNewParserCtxt	(const char * URL)
Packit Service a31ea6
xmlSchematronValidCtxtPtr	xmlSchematronNewValidCtxt	(xmlSchematronPtr schema, 
int options)
Packit Service a31ea6
xmlSchematronPtr	xmlSchematronParse	(xmlSchematronParserCtxtPtr ctxt)
Packit Service a31ea6
void	xmlSchematronSetValidStructuredErrors	(xmlSchematronValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
Packit Service a31ea6
int	xmlSchematronValidateDoc	(xmlSchematronValidCtxtPtr ctxt, 
xmlDocPtr instance)
Packit Service a31ea6
Function type: xmlSchematronValidityErrorFunc
Packit Service a31ea6
void	xmlSchematronValidityErrorFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6
Packit Service a31ea6
Function type: xmlSchematronValidityWarningFunc
Packit Service a31ea6
void	xmlSchematronValidityWarningFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6
Packit Service a31ea6

Description

Packit Service a31ea6

Structure xmlSchematron

Structure xmlSchematron
struct _xmlSchematron {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Structure xmlSchematronParserCtxt

Structure xmlSchematronParserCtxt
struct _xmlSchematronParserCtxt {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Structure xmlSchematronValidCtxt

Structure xmlSchematronValidCtxt
struct _xmlSchematronValidCtxt {
Packit Service a31ea6
The content of this structure is not made public by the API.
Packit Service a31ea6
}

Enum xmlSchematronValidOptions

Enum xmlSchematronValidOptions {
Packit Service a31ea6
    XML_SCHEMATRON_OUT_QUIET = 1 : quiet no report
Packit Service a31ea6
    XML_SCHEMATRON_OUT_TEXT = 2 : build a textual report
Packit Service a31ea6
    XML_SCHEMATRON_OUT_XML = 4 : output SVRL
Packit Service a31ea6
    XML_SCHEMATRON_OUT_ERROR = 8 : output via xmlStructuredErrorFunc
Packit Service a31ea6
    XML_SCHEMATRON_OUT_FILE = 256 : output to a file descriptor
Packit Service a31ea6
    XML_SCHEMATRON_OUT_BUFFER = 512 : output to a buffer
Packit Service a31ea6
    XML_SCHEMATRON_OUT_IO = 1024 : output to I/O mechanism
Packit Service a31ea6
}
Packit Service a31ea6

Function: xmlSchematronFree

void	xmlSchematronFree		(xmlSchematronPtr schema)
Packit Service a31ea6

Deallocate a Schematron structure.

Packit Service a31ea6
<tt>schema</tt>:a schema structure

Function: xmlSchematronFreeParserCtxt

void	xmlSchematronFreeParserCtxt	(xmlSchematronParserCtxtPtr ctxt)
Packit Service a31ea6

Free the resources associated to the schema parser context

Packit Service a31ea6
<tt>ctxt</tt>:the schema parser context

Function: xmlSchematronFreeValidCtxt

void	xmlSchematronFreeValidCtxt	(xmlSchematronValidCtxtPtr ctxt)
Packit Service a31ea6

Free the resources associated to the schema validation context

Packit Service a31ea6
<tt>ctxt</tt>:the schema validation context

Function: xmlSchematronNewDocParserCtxt

xmlSchematronParserCtxtPtr	xmlSchematronNewDocParserCtxt	(xmlDocPtr doc)
Packit Service a31ea6

Create an XML Schematrons parse context for that document. NB. The document may be modified during the parsing process.

Packit Service a31ea6
<tt>doc</tt>:a preparsed document tree
<tt>Returns</tt>:the parser context or NULL in case of error

Function: xmlSchematronNewMemParserCtxt

xmlSchematronParserCtxtPtr	xmlSchematronNewMemParserCtxt	(const char * buffer, 
int size)
Packit Service a31ea6

Create an XML Schematrons parse context for that memory buffer expected to contain an XML Schematrons file.

Packit Service a31ea6
<tt>buffer</tt>:a pointer to a char array containing the schemas
<tt>size</tt>:the size of the array
<tt>Returns</tt>:the parser context or NULL in case of error

Function: xmlSchematronNewParserCtxt

xmlSchematronParserCtxtPtr	xmlSchematronNewParserCtxt	(const char * URL)
Packit Service a31ea6

Create an XML Schematrons parse context for that file/resource expected to contain an XML Schematrons file.

Packit Service a31ea6
<tt>URL</tt>:the location of the schema
<tt>Returns</tt>:the parser context or NULL in case of error

Function: xmlSchematronNewValidCtxt

xmlSchematronValidCtxtPtr	xmlSchematronNewValidCtxt	(xmlSchematronPtr schema, 
int options)
Packit Service a31ea6

Create an XML Schematrons validation context based on the given schema.

Packit Service a31ea6
<tt>schema</tt>:a precompiled XML Schematrons
<tt>options</tt>:a set of xmlSchematronValidOptions
<tt>Returns</tt>:the validation context or NULL in case of error

Function: xmlSchematronParse

xmlSchematronPtr	xmlSchematronParse	(xmlSchematronParserCtxtPtr ctxt)
Packit Service a31ea6

parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances.

Packit Service a31ea6
<tt>ctxt</tt>:a schema validation context
<tt>Returns</tt>:the internal XML Schematron structure built from the resource or NULL in case of error

Function: xmlSchematronSetValidStructuredErrors

void	xmlSchematronSetValidStructuredErrors	(xmlSchematronValidCtxtPtr ctxt, 
xmlStructuredErrorFunc serror,
void * ctx)
Packit Service a31ea6

Set the structured error callback

Packit Service a31ea6
<tt>ctxt</tt>:a Schematron validation context
<tt>serror</tt>:the structured error function
<tt>ctx</tt>:the functions context

Function: xmlSchematronValidateDoc

int	xmlSchematronValidateDoc	(xmlSchematronValidCtxtPtr ctxt, 
xmlDocPtr instance)
Packit Service a31ea6

Validate a tree instance against the schematron

Packit Service a31ea6
<tt>ctxt</tt>:the schema validation context
<tt>instance</tt>:the document instace tree
<tt>Returns</tt>:0 in case of success, -1 in case of internal error and an error count otherwise.

Function type: xmlSchematronValidityErrorFunc

Function type: xmlSchematronValidityErrorFunc
Packit Service a31ea6
void	xmlSchematronValidityErrorFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6

Signature of an error callback from a Schematron validation

<tt>ctx</tt>:the validation context
<tt>msg</tt>:the message
<tt>...</tt>:extra arguments

Packit Service a31ea6

Function type: xmlSchematronValidityWarningFunc

Function type: xmlSchematronValidityWarningFunc
Packit Service a31ea6
void	xmlSchematronValidityWarningFunc	(void * ctx, 
const char * msg,
... ...)
Packit Service a31ea6

Signature of a warning callback from a Schematron validation

<tt>ctx</tt>:the validation context
<tt>msg</tt>:the message
<tt>...</tt>:extra arguments

Packit Service a31ea6

Daniel Veillard

</body></html>