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

Ir al código fuente de este archivo.

'typedefs'

typedef void *(* xsltStyleExtInitFunction )(xsltStylesheetPtr style, const xmlChar *URI)
typedef void(* xsltStyleExtShutdownFunction )(xsltStylesheetPtr style, const xmlChar *URI, void *data)
typedef void *(* xsltExtInitFunction )(xsltTransformContextPtr ctxt, const xmlChar *URI)
typedef void(* xsltExtShutdownFunction )(xsltTransformContextPtr ctxt, const xmlChar *URI, void *data)
typedef xsltElemPreCompPtr(* xsltPreComputeFunction )(xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function)
typedef void(* xsltTopLevelFunction )(xsltStylesheetPtr style, xmlNodePtr inst)

Funciones

XSLTPUBFUN void XSLTCALL xsltInitGlobals (void)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModule (const xmlChar *URI, xsltExtInitFunction initFunc, xsltExtShutdownFunction shutdownFunc)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFull (const xmlChar *URI, xsltExtInitFunction initFunc, xsltExtShutdownFunction shutdownFunc, xsltStyleExtInitFunction styleInitFunc, xsltStyleExtShutdownFunction styleShutdownFunc)
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModule (const xmlChar *URI)
XSLTPUBFUN void *XSLTCALL xsltGetExtData (xsltTransformContextPtr ctxt, const xmlChar *URI)
XSLTPUBFUN void *XSLTCALL xsltStyleGetExtData (xsltStylesheetPtr style, const xmlChar *URI)
XSLTPUBFUN void XSLTCALL xsltShutdownCtxtExts (xsltTransformContextPtr ctxt)
XSLTPUBFUN void XSLTCALL xsltShutdownExts (xsltStylesheetPtr style)
XSLTPUBFUN
xsltTransformContextPtr
XSLTCALL 
xsltXPathGetTransformContext (xmlXPathParserContextPtr ctxt)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFunction (const xmlChar *name, const xmlChar *URI, xmlXPathFunction function)
XSLTPUBFUN xmlXPathFunction
XSLTCALL 
xsltExtModuleFunctionLookup (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleFunction (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN xsltElemPreCompPtr
XSLTCALL 
xsltNewElemPreComp (xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function)
XSLTPUBFUN void XSLTCALL xsltInitElemPreComp (xsltElemPreCompPtr comp, xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function, xsltElemPreCompDeallocator freeFunc)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleElement (const xmlChar *name, const xmlChar *URI, xsltPreComputeFunction precomp, xsltTransformFunction transform)
XSLTPUBFUN
xsltTransformFunction XSLTCALL 
xsltExtElementLookup (xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN
xsltTransformFunction XSLTCALL 
xsltExtModuleElementLookup (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN
xsltPreComputeFunction
XSLTCALL 
xsltExtModuleElementPreComputeLookup (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleElement (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleTopLevel (const xmlChar *name, const xmlChar *URI, xsltTopLevelFunction function)
XSLTPUBFUN
xsltTopLevelFunction XSLTCALL 
xsltExtModuleTopLevelLookup (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleTopLevel (const xmlChar *name, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltRegisterExtFunction (xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xmlXPathFunction function)
XSLTPUBFUN int XSLTCALL xsltRegisterExtElement (xsltTransformContextPtr ctxt, const xmlChar *name, const xmlChar *URI, xsltTransformFunction function)
XSLTPUBFUN int XSLTCALL xsltRegisterExtPrefix (xsltStylesheetPtr style, const xmlChar *prefix, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltCheckExtPrefix (xsltStylesheetPtr style, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltCheckExtURI (xsltStylesheetPtr style, const xmlChar *URI)
XSLTPUBFUN int XSLTCALL xsltInitCtxtExts (xsltTransformContextPtr ctxt)
XSLTPUBFUN void XSLTCALL xsltFreeCtxtExts (xsltTransformContextPtr ctxt)
XSLTPUBFUN void XSLTCALL xsltFreeExts (xsltStylesheetPtr style)
XSLTPUBFUN xsltElemPreCompPtr
XSLTCALL 
xsltPreComputeExtModuleElement (xsltStylesheetPtr style, xmlNodePtr inst)
XSLTPUBFUN xmlHashTablePtr XSLTCALL xsltGetExtInfo (xsltStylesheetPtr style, const xmlChar *URI)
XSLTPUBFUN void XSLTCALL xsltRegisterTestModule (void)
XSLTPUBFUN void XSLTCALL xsltDebugDumpExtensions (FILE *output)

Documentación de los 'typedefs'

typedef void*(* xsltExtInitFunction)(xsltTransformContextPtr ctxt, const xmlChar *URI)

xsltExtInitFunction: : an XSLT transformation context : the namespace URI for the extension

A function called at initialization time of an XSLT extension module.

Returns a pointer to the module specific data for this transformation.

typedef void(* xsltExtShutdownFunction)(xsltTransformContextPtr ctxt, const xmlChar *URI, void *data)

xsltExtShutdownFunction: : an XSLT transformation context : the namespace URI for the extension : the data associated to this module

A function called at shutdown time of an XSLT extension module.

typedef void*(* xsltStyleExtInitFunction)(xsltStylesheetPtr style, const xmlChar *URI)

xsltStyleExtInitFunction: : an XSLT stylesheet : the namespace URI for the extension

A function called at initialization time of an XSLT extension module.

Returns a pointer to the module specific data for this transformation.

typedef void(* xsltStyleExtShutdownFunction)(xsltStylesheetPtr style, const xmlChar *URI, void *data)

xsltStyleExtShutdownFunction: : an XSLT stylesheet : the namespace URI for the extension : the data associated to this module

A function called at shutdown time of an XSLT extension module.

typedef void(* xsltTopLevelFunction)(xsltStylesheetPtr style, xmlNodePtr inst)

Documentación de las funciones

XSLTPUBFUN int XSLTCALL xsltCheckExtPrefix ( xsltStylesheetPtr  style,
const xmlChar URI 
)

xsltCheckExtPrefix: : the stylesheet : the namespace prefix (possibly NULL)

Check if the given prefix is one of the declared extensions. This is intended to be called only at compile-time. Called by: xsltGetInheritedNsList() (xslt.c) xsltParseTemplateContent (xslt.c)

Returns 1 if this is an extension, 0 otherwise

XSLTPUBFUN int XSLTCALL xsltCheckExtURI ( xsltStylesheetPtr  style,
const xmlChar URI 
)

xsltCheckExtURI: : the stylesheet : the namespace URI (possibly NULL)

Check if the given prefix is one of the declared extensions. This is intended to be called only at compile-time. Called by: xsltPrecomputeStylesheet() (xslt.c) xsltParseTemplateContent (xslt.c)

Returns 1 if this is an extension, 0 otherwise

XSLTPUBFUN void XSLTCALL xsltDebugDumpExtensions ( FILE *  output)

xsltDebugDumpExtensions: : the FILE * for the output, if NULL stdout is used

Dumps a list of the registered XSLT extension functions and elements

XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtElementLookup ( xsltTransformContextPtr  ctxt,
const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtModuleElementLookup ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN xsltPreComputeFunction XSLTCALL xsltExtModuleElementPreComputeLookup ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN xmlXPathFunction XSLTCALL xsltExtModuleFunctionLookup ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN xsltTopLevelFunction XSLTCALL xsltExtModuleTopLevelLookup ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN void XSLTCALL xsltFreeCtxtExts ( xsltTransformContextPtr  ctxt)

xsltFreeCtxtExts: : an XSLT transformation context

Free the XSLT extension data

XSLTPUBFUN void XSLTCALL xsltFreeExts ( xsltStylesheetPtr  style)

xsltFreeExts: : an XSLT stylesheet

Free up the memory used by XSLT extensions in a stylesheet

XSLTPUBFUN void* XSLTCALL xsltGetExtData ( xsltTransformContextPtr  ctxt,
const xmlChar URI 
)

xsltGetExtData: : an XSLT transformation context : the URI associated to the exension module

Retrieve the data associated to the extension module in this given transformation.

Returns the pointer or NULL if not present

XSLTPUBFUN xmlHashTablePtr XSLTCALL xsltGetExtInfo ( xsltStylesheetPtr  style,
const xmlChar URI 
)

xsltGetExtInfo: : pointer to a stylesheet : the namespace URI desired

looks up URI in extInfos of the stylesheet

returns a pointer to the hash table if found, else NULL

XSLTPUBFUN int XSLTCALL xsltInitCtxtExts ( xsltTransformContextPtr  ctxt)

xsltInitCtxtExts: : an XSLT transformation context

Initialize the set of modules with registered stylesheet data

Returns the number of modules initialized or -1 in case of error

XSLTPUBFUN void XSLTCALL xsltInitElemPreComp ( xsltElemPreCompPtr  comp,
xsltStylesheetPtr  style,
xmlNodePtr  inst,
xsltTransformFunction  function,
xsltElemPreCompDeallocator  freeFunc 
)

xsltInitElemPreComp: : an xsltElemPreComp (or generally a derived structure) : the XSLT stylesheet : the element node : the transform function : the deallocator

Initializes an existing xsltElemPreComp structure. This is usefull when extending an xsltElemPreComp to store precomputed data. This function MUST be called on any extension element precomputed data struct.

XSLTPUBFUN void XSLTCALL xsltInitGlobals ( void  )

Extension Modules API. xsltInitGlobals:

Initialize the global variables for extensions

xsltInitGlobals:

Initialize the global variables for extensions

XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltNewElemPreComp ( xsltStylesheetPtr  style,
xmlNodePtr  inst,
xsltTransformFunction  function 
)

xsltNewElemPreComp: : the XSLT stylesheet : the element node : the transform function

Creates and initializes an xsltElemPreComp

Returns the new and initialized xsltElemPreComp

XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltPreComputeExtModuleElement ( xsltStylesheetPtr  style,
xmlNodePtr  inst 
)

xsltPreComputeExtModuleElement: : the stylesheet : the element node

Precomputes an extension module element

Returns the precomputed data

XSLTPUBFUN int XSLTCALL xsltRegisterExtElement ( xsltTransformContextPtr  ctxt,
const xmlChar name,
const xmlChar URI,
xsltTransformFunction  function 
)
XSLTPUBFUN int XSLTCALL xsltRegisterExtFunction ( xsltTransformContextPtr  ctxt,
const xmlChar name,
const xmlChar URI,
xmlXPathFunction  function 
)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModule ( const xmlChar URI,
xsltExtInitFunction  initFunc,
xsltExtShutdownFunction  shutdownFunc 
)

xsltRegisterExtModule: : URI associated to this module : the module initialization function : the module shutdown function

Register an XSLT extension module to the library.

Returns 0 if sucessful, -1 in case of error

XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleElement ( const xmlChar name,
const xmlChar URI,
xsltPreComputeFunction  precomp,
xsltTransformFunction  transform 
)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFull ( const xmlChar URI,
xsltExtInitFunction  initFunc,
xsltExtShutdownFunction  shutdownFunc,
xsltStyleExtInitFunction  styleInitFunc,
xsltStyleExtShutdownFunction  styleShutdownFunc 
)

xsltRegisterExtModuleFull: : URI associated to this module : the module initialization function : the module shutdown function : the module initialization function : the module shutdown function

Register an XSLT extension module to the library.

Returns 0 if sucessful, -1 in case of error

XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFunction ( const xmlChar name,
const xmlChar URI,
xmlXPathFunction  function 
)
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleTopLevel ( const xmlChar name,
const xmlChar URI,
xsltTopLevelFunction  function 
)
XSLTPUBFUN int XSLTCALL xsltRegisterExtPrefix ( xsltStylesheetPtr  style,
const xmlChar prefix,
const xmlChar URI 
)

xsltRegisterExtPrefix: : an XSLT stylesheet : the prefix used (optional) : the URI associated to the extension

Registers an extension namespace This is called from xslt.c during compile-time. The given prefix is not needed. Called by: xsltParseExtElemPrefixes() (new function) xsltRegisterExtPrefix() (old function)

Returns 0 in case of success, 1 if the was already registered as an extension namespace and -1 in case of failure

XSLTPUBFUN void XSLTCALL xsltRegisterTestModule ( void  )

Test module http://xmlsoft.org/XSLT/

xsltRegisterTestModule:

Registers the test module

XSLTPUBFUN void XSLTCALL xsltShutdownCtxtExts ( xsltTransformContextPtr  ctxt)

xsltShutdownCtxtExts: : an XSLT transformation context

Shutdown the set of modules loaded

XSLTPUBFUN void XSLTCALL xsltShutdownExts ( xsltStylesheetPtr  style)

xsltShutdownExts: : an XSLT stylesheet

Shutdown the set of modules loaded

XSLTPUBFUN void* XSLTCALL xsltStyleGetExtData ( xsltStylesheetPtr  style,
const xmlChar URI 
)

xsltStyleGetExtData: : an XSLT stylesheet : the URI associated to the exension module

Retrieve the data associated to the extension module in this given stylesheet. Called by: xsltRegisterExtPrefix(), ( xsltExtElementPreCompTest(), xsltExtInitTest )

Returns the pointer or NULL if not present

XSLTPUBFUN int XSLTCALL xsltUnregisterExtModule ( const xmlChar URI)

xsltUnregisterExtModule: : URI associated to this module

Unregister an XSLT extension module from the library.

Returns 0 if sucessful, -1 in case of error

XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleElement ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleFunction ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleTopLevel ( const xmlChar name,
const xmlChar URI 
)
XSLTPUBFUN xsltTransformContextPtr XSLTCALL xsltXPathGetTransformContext ( xmlXPathParserContextPtr  ctxt)

xsltXPathGetTransformContext: : an XPath transformation context

Provides the XSLT transformation context from the XPath transformation context. This is useful when an XPath function in the extension module is called by the XPath interpreter and that the XSLT context is needed for example to retrieve the associated data pertaining to this XSLT transformation.

Returns the XSLT transformation context or NULL in case of error.

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