Eneboo - Documentación para desarrolladores
'typedefs' | Enumeraciones | Funciones | Variables
Referencia del Archivo src/libxslt/libxslt/documents.h
#include <libxml/tree.h>
#include "xsltexports.h"
#include "xsltInternals.h"

Ir al código fuente de este archivo.

'typedefs'

typedef xmlDocPtr(* xsltDocLoaderFunc )(const xmlChar *URI, xmlDictPtr dict, int options, void *ctxt, xsltLoadType type)

Enumeraciones

enum  xsltLoadType { XSLT_LOAD_START = 0, XSLT_LOAD_STYLESHEET = 1, XSLT_LOAD_DOCUMENT = 2 }

Funciones

XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltNewDocument (xsltTransformContextPtr ctxt, xmlDocPtr doc)
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltLoadDocument (xsltTransformContextPtr ctxt, const xmlChar *URI)
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltFindDocument (xsltTransformContextPtr ctxt, xmlDocPtr doc)
XSLTPUBFUN void XSLTCALL xsltFreeDocuments (xsltTransformContextPtr ctxt)
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltLoadStyleDocument (xsltStylesheetPtr style, const xmlChar *URI)
XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltNewStyleDocument (xsltStylesheetPtr style, xmlDocPtr doc)
XSLTPUBFUN void XSLTCALL xsltFreeStyleDocuments (xsltStylesheetPtr style)
XSLTPUBFUN void XSLTCALL xsltSetLoaderFunc (xsltDocLoaderFunc f)

Variables

XSLTPUBVAR xsltDocLoaderFunc xsltDocDefaultLoader

Documentación de los 'typedefs'

typedef xmlDocPtr(* xsltDocLoaderFunc)(const xmlChar *URI, xmlDictPtr dict, int options, void *ctxt, xsltLoadType type)

xsltDocLoaderFunc: : the URI of the document to load : the dictionary to use when parsing that document : parsing options, a set of xmlParserOption : the context, either a stylesheet or a transformation context : the xsltLoadType indicating the kind of loading required

An xsltDocLoaderFunc is a signature for a function which can be registered to load document not provided by the compilation or transformation API themselve, for example when an xsl:import, xsl:include is found at compilation time or when a document() call is made at runtime.

Returns the pointer to the document (which will be modified and freed by the engine later), or NULL in case of error.


Documentación de las enumeraciones

xsltLoadType:

Enum defining the kind of loader requirement.

Valores de enumeraciones:
XSLT_LOAD_START 
XSLT_LOAD_STYLESHEET 
XSLT_LOAD_DOCUMENT 

Documentación de las funciones

XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltFindDocument ( xsltTransformContextPtr  ctxt,
xmlDocPtr  doc 
)

xsltFindDocument: : an XSLT transformation context : a parsed XML document

Try to find a document within the XSLT transformation context. This will not find document infos for temporary Result Tree Fragments.

Returns the desired xsltDocumentPtr or NULL in case of error

XSLTPUBFUN void XSLTCALL xsltFreeDocuments ( xsltTransformContextPtr  ctxt)

xsltFreeDocuments: : an XSLT transformation context

Free up all the space used by the loaded documents

XSLTPUBFUN void XSLTCALL xsltFreeStyleDocuments ( xsltStylesheetPtr  style)

xsltFreeStyleDocuments: : an XSLT stylesheet (representing a stylesheet-level)

Frees the node-trees (and xsltDocument structures) of all stylesheet-modules of the stylesheet-level represented by the given .

XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltLoadDocument ( xsltTransformContextPtr  ctxt,
const xmlChar URI 
)

xsltLoadDocument: : an XSLT transformation context : the computed URI of the document

Try to load a document (not a stylesheet) within the XSLT transformation context

Returns the new xsltDocumentPtr or NULL in case of error

XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltLoadStyleDocument ( xsltStylesheetPtr  style,
const xmlChar URI 
)

xsltLoadStyleDocument: : an XSLT style sheet : the computed URI of the document

Try to load a stylesheet document within the XSLT transformation context

Returns the new xsltDocumentPtr or NULL in case of error

XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltNewDocument ( xsltTransformContextPtr  ctxt,
xmlDocPtr  doc 
)

xsltNewDocument: : an XSLT transformation context (or NULL) : a parsed XML document

Register a new document, apply key computations

Returns a handler to the document

XSLTPUBFUN xsltDocumentPtr XSLTCALL xsltNewStyleDocument ( xsltStylesheetPtr  style,
xmlDocPtr  doc 
)

xsltNewStyleDocument: : an XSLT style sheet : a parsed XML document

Register a new document, apply key computations

Returns a handler to the document

XSLTPUBFUN void XSLTCALL xsltSetLoaderFunc ( xsltDocLoaderFunc  f)

xsltSetLoaderFunc: : the new function to handle document loading.

Set the new function to load document, if NULL it resets it to the default function.


Documentación de las variables

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'