Eneboo - Documentación para desarrolladores
src/libxslt/libxslt/documents.h
Ir a la documentación de este archivo.
00001 /*
00002  * Summary: interface for the document handling
00003  * Description: implements document loading and cache (multiple
00004  *              document() reference for the same resources must
00005  *              be equal.
00006  *
00007  * Copy: See Copyright for the status of this software.
00008  *
00009  * Author: Daniel Veillard
00010  */
00011 
00012 #ifndef __XML_XSLT_DOCUMENTS_H__
00013 #define __XML_XSLT_DOCUMENTS_H__
00014 
00015 #include <libxml/tree.h>
00016 #include "xsltexports.h"
00017 #include "xsltInternals.h"
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 XSLTPUBFUN xsltDocumentPtr XSLTCALL     
00024                 xsltNewDocument         (xsltTransformContextPtr ctxt,
00025                                          xmlDocPtr doc);
00026 XSLTPUBFUN xsltDocumentPtr XSLTCALL     
00027                 xsltLoadDocument        (xsltTransformContextPtr ctxt,
00028                                          const xmlChar *URI);
00029 XSLTPUBFUN xsltDocumentPtr XSLTCALL     
00030                 xsltFindDocument        (xsltTransformContextPtr ctxt,
00031                                          xmlDocPtr doc);
00032 XSLTPUBFUN void XSLTCALL                
00033                 xsltFreeDocuments       (xsltTransformContextPtr ctxt);
00034 
00035 XSLTPUBFUN xsltDocumentPtr XSLTCALL     
00036                 xsltLoadStyleDocument   (xsltStylesheetPtr style,
00037                                          const xmlChar *URI);
00038 XSLTPUBFUN xsltDocumentPtr XSLTCALL     
00039                 xsltNewStyleDocument    (xsltStylesheetPtr style,
00040                                          xmlDocPtr doc);
00041 XSLTPUBFUN void XSLTCALL                
00042                 xsltFreeStyleDocuments  (xsltStylesheetPtr style);
00043 
00044 /*
00045  * Hooks for document loading
00046  */
00047 
00053 typedef enum {
00054     XSLT_LOAD_START = 0,        /* loading for a top stylesheet */
00055     XSLT_LOAD_STYLESHEET = 1,   /* loading for a stylesheet include/import */
00056     XSLT_LOAD_DOCUMENT = 2      /* loading document at transformation time */
00057 } xsltLoadType;
00058 
00076 typedef xmlDocPtr (*xsltDocLoaderFunc)          (const xmlChar *URI,
00077                                                  xmlDictPtr dict,
00078                                                  int options,
00079                                                  void *ctxt,
00080                                                  xsltLoadType type);
00081 
00082 XSLTPUBFUN void XSLTCALL
00083                 xsltSetLoaderFunc               (xsltDocLoaderFunc f);
00084 
00085 /* the loader may be needed by extension libraries so it is exported */
00086 XSLTPUBVAR xsltDocLoaderFunc xsltDocDefaultLoader;
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 
00092 #endif /* __XML_XSLT_DOCUMENTS_H__ */
00093 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'