ReactOS  0.4.14-dev-583-g2a1ba2c
documents.h
Go to the documentation of this file.
1 /*
2  * Summary: interface for the document handling
3  * Description: implements document loading and cache (multiple
4  * document() reference for the same resources must
5  * be equal.
6  *
7  * Copy: See Copyright for the status of this software.
8  *
9  * Author: Daniel Veillard
10  */
11 
12 #ifndef __XML_XSLT_DOCUMENTS_H__
13 #define __XML_XSLT_DOCUMENTS_H__
14 
15 #include <libxml/tree.h>
16 #include "xsltexports.h"
17 #include "xsltInternals.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
25  xmlDocPtr doc);
28  const xmlChar *URI);
31  xmlDocPtr doc);
34 
37  const xmlChar *URI);
40  xmlDocPtr doc);
43 
44 /*
45  * Hooks for document loading
46  */
47 
53 typedef enum {
54  XSLT_LOAD_START = 0, /* loading for a top stylesheet */
55  XSLT_LOAD_STYLESHEET = 1, /* loading for a stylesheet include/import */
56  XSLT_LOAD_DOCUMENT = 2 /* loading document at transformation time */
57 } xsltLoadType;
58 
76 typedef xmlDocPtr (*xsltDocLoaderFunc) (const xmlChar *URI,
77  xmlDictPtr dict,
78  int options,
79  void *ctxt,
81 
84 
85 /* the loader may be needed by extension libraries so it is exported */
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif /* __XML_XSLT_DOCUMENTS_H__ */
93 
XSLTPUBFUN void XSLTCALL xsltFreeDocuments(xsltTransformContextPtr ctxt)
Definition: documents.c:234
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltFindDocument(xsltTransformContextPtr ctxt, xmlDocPtr doc)
Definition: documents.c:398
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
xmlDocPtr(* xsltDocLoaderFunc)(const xmlChar *URI, xmlDictPtr dict, int options, void *ctxt, xsltLoadType type)
Definition: documents.h:76
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltLoadStyleDocument(xsltStylesheetPtr style, const xmlChar *URI)
Definition: documents.c:342
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltNewDocument(xsltTransformContextPtr ctxt, xmlDocPtr doc)
Definition: documents.c:127
int options
Definition: main.c:106
XSLTPUBFUN void XSLTCALL xsltSetLoaderFunc(xsltDocLoaderFunc f)
Definition: documents.c:104
GLfloat f
Definition: glext.h:7540
unsigned char xmlChar
Definition: xmlstring.h:28
#define XSLTPUBVAR
Definition: xsltexports.h:37
xmlDoc * xmlDocPtr
Definition: tree.h:550
__XML_EXTERNC typedef xmlDict * xmlDictPtr
Definition: dict.h:24
XSLTPUBFUN void XSLTCALL xsltFreeStyleDocuments(xsltStylesheetPtr style)
Definition: documents.c:193
#define XSLTPUBFUN
Definition: xsltexports.h:31
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltLoadDocument(xsltTransformContextPtr ctxt, const xmlChar *URI)
Definition: documents.c:268
#define XSLTCALL
Definition: xsltexports.h:43
Definition: tree.h:551
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltNewStyleDocument(xsltStylesheetPtr style, xmlDocPtr doc)
Definition: documents.c:166
XSLTPUBVAR xsltDocLoaderFunc xsltDocDefaultLoader
Definition: documents.h:86
Arabic default style
Definition: afstyles.h:93
xsltLoadType
Definition: documents.h:53