Initial revision
[TestXSLT.git] / libxml2 / include / libxml / xmlschemastypes.h
1 /*
2  * schemastypes.c : interface of the XML Schema Datatypes
3  *             definition and validity checking
4  *
5  * See Copyright for the status of this software.
6  *
7  * Daniel Veillard <veillard@redhat.com>
8  */
9
10
11 #ifndef __XML_SCHEMA_TYPES_H__
12 #define __XML_SCHEMA_TYPES_H__
13
14 #include <libxml/xmlversion.h>
15
16 #ifdef LIBXML_SCHEMAS_ENABLED
17
18 #include <libxml/schemasInternals.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 void            xmlSchemaInitTypes              (void);
25 void            xmlSchemaCleanupTypes           (void);
26 xmlSchemaTypePtr xmlSchemaGetPredefinedType     (const xmlChar *name,
27                                                  const xmlChar *ns);
28 int             xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
29                                                  const xmlChar *value,
30                                                  xmlSchemaValPtr *val);
31 int             xmlSchemaValidateFacet          (xmlSchemaTypePtr base,
32                                                  xmlSchemaFacetPtr facet,
33                                                  const xmlChar *value,
34                                                  xmlSchemaValPtr val);
35 void            xmlSchemaFreeValue              (xmlSchemaValPtr val);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /* LIBXML_SCHEMAS_ENABLED */
42 #endif /* __XML_SCHEMA_TYPES_H__ */