ReactOS 0.4.16-dev-125-g798ea90
|
Go to the source code of this file.
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) |
typedef void *(* xsltExtInitFunction) (xsltTransformContextPtr ctxt, const xmlChar *URI) |
xsltExtInitFunction: @ctxt: an XSLT transformation context @URI: 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.
Definition at line 69 of file extensions.h.
typedef void(* xsltExtShutdownFunction) (xsltTransformContextPtr ctxt, const xmlChar *URI, void *data) |
xsltExtShutdownFunction: @ctxt: an XSLT transformation context @URI: the namespace URI for the extension @data: the data associated to this module
A function called at shutdown time of an XSLT extension module.
Definition at line 80 of file extensions.h.
typedef xsltElemPreCompPtr(* xsltPreComputeFunction) (xsltStylesheetPtr style, xmlNodePtr inst, xsltTransformFunction function) |
Definition at line 141 of file extensions.h.
typedef void *(* xsltStyleExtInitFunction) (xsltStylesheetPtr style, const xmlChar *URI) |
xsltStyleExtInitFunction: @ctxt: an XSLT stylesheet @URI: 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.
Definition at line 45 of file extensions.h.
typedef void(* xsltStyleExtShutdownFunction) (xsltStylesheetPtr style, const xmlChar *URI, void *data) |
xsltStyleExtShutdownFunction: @ctxt: an XSLT stylesheet @URI: the namespace URI for the extension @data: the data associated to this module
A function called at shutdown time of an XSLT extension module.
Definition at line 56 of file extensions.h.
typedef void(* xsltTopLevelFunction) (xsltStylesheetPtr style, xmlNodePtr inst) |
Definition at line 183 of file extensions.h.
XSLTPUBFUN int XSLTCALL xsltCheckExtPrefix | ( | xsltStylesheetPtr | style, |
const xmlChar * | URI | ||
) |
xsltCheckExtPrefix: @style: the stylesheet @URI: 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
Definition at line 1158 of file extensions.c.
Referenced by xsltGetInheritedNsList(), and xsltParseTemplateContent().
XSLTPUBFUN int XSLTCALL xsltCheckExtURI | ( | xsltStylesheetPtr | style, |
const xmlChar * | URI | ||
) |
xsltCheckExtURI: @style: the stylesheet @URI: 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
Definition at line 1218 of file extensions.c.
Referenced by xsltPreprocessStylesheet().
XSLTPUBFUN void XSLTCALL xsltDebugDumpExtensions | ( | FILE * | output | ) |
xsltDebugDumpExtensions: @output: the FILE * for the output, if NULL stdout is used
Dumps a list of the registered XSLT extension functions and elements
Definition at line 2323 of file extensions.c.
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtElementLookup | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | URI | ||
) |
Definition at line 1668 of file extensions.c.
Referenced by xsltApplySequenceConstructor(), and xsltElementAvailableFunction().
XSLTPUBFUN xsltTransformFunction XSLTCALL xsltExtModuleElementLookup | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1698 of file extensions.c.
Referenced by xsltExtElementLookup().
XSLTPUBFUN xsltPreComputeFunction XSLTCALL xsltExtModuleElementPreComputeLookup | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1741 of file extensions.c.
XSLTPUBFUN xmlXPathFunction XSLTCALL xsltExtModuleFunctionLookup | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1416 of file extensions.c.
Referenced by xsltXPathFunctionLookup().
XSLTPUBFUN xsltTopLevelFunction XSLTCALL xsltExtModuleTopLevelLookup | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1856 of file extensions.c.
Referenced by xsltParseStylesheetTop().
XSLTPUBFUN void XSLTCALL xsltFreeCtxtExts | ( | xsltTransformContextPtr | ctxt | ) |
xsltFreeCtxtExts: @ctxt: an XSLT transformation context
Free the XSLT extension data
Definition at line 642 of file extensions.c.
Referenced by xsltFreeTransformContext().
XSLTPUBFUN void XSLTCALL xsltFreeExts | ( | xsltStylesheetPtr | style | ) |
xsltFreeExts: @style: an XSLT stylesheet
Free up the memory used by XSLT extensions in a stylesheet
Definition at line 479 of file extensions.c.
Referenced by xsltFreeStylesheet().
XSLTPUBFUN void *XSLTCALL xsltGetExtData | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | URI | ||
) |
xsltGetExtData: @ctxt: an XSLT transformation context @URI: 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
Definition at line 862 of file extensions.c.
Referenced by xsltExtElementTest(), and xsltExtFunctionTest().
XSLTPUBFUN xmlHashTablePtr XSLTCALL xsltGetExtInfo | ( | xsltStylesheetPtr | style, |
const xmlChar * | URI | ||
) |
xsltGetExtInfo: @style: pointer to a stylesheet @URI: the namespace URI desired
looks up URI in extInfos of the stylesheet
returns a pointer to the hash table if found, else NULL
Definition at line 1935 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltInitCtxtExts | ( | xsltTransformContextPtr | ctxt | ) |
xsltInitCtxtExts: @ctxt: 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
Definition at line 1016 of file extensions.c.
Referenced by xsltNewTransformContext().
XSLTPUBFUN void XSLTCALL xsltInitElemPreComp | ( | xsltElemPreCompPtr | comp, |
xsltStylesheetPtr | style, | ||
xmlNodePtr | inst, | ||
xsltTransformFunction | function, | ||
xsltElemPreCompDeallocator | freeFunc | ||
) |
xsltInitElemPreComp: @comp: an xsltElemPreComp (or generally a derived structure) @style: the XSLT stylesheet @inst: the element node @function: the transform function @freeFunc: the @comp 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.
Definition at line 1535 of file extensions.c.
Referenced by xsltNewElemPreComp().
XSLTPUBFUN void XSLTCALL xsltInitGlobals | ( | void | ) |
Extension Modules API. xsltInitGlobals:
Initialize the global variables for extensions
xsltInitGlobals:
Initialize the global variables for extensions
Definition at line 2257 of file extensions.c.
Referenced by xsltApplyStylesheetInternal(), xsltLoadStylesheetPI(), xsltNewSecurityPrefs(), xsltNewTransformContext(), xsltParseStylesheetDoc(), xsltParseStylesheetFile(), xsltParseStylesheetProcess(), xsltRegisterTestModule(), and xsltSetSecurityPrefs().
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltNewElemPreComp | ( | xsltStylesheetPtr | style, |
xmlNodePtr | inst, | ||
xsltTransformFunction | function | ||
) |
xsltNewElemPreComp: @style: the XSLT stylesheet @inst: the element node @function: the transform function
Creates and initializes an xsltElemPreComp
Returns the new and initialized xsltElemPreComp
Definition at line 1503 of file extensions.c.
Referenced by xsltExtElementPreCompTest(), and xsltPreComputeExtModuleElement().
XSLTPUBFUN xsltElemPreCompPtr XSLTCALL xsltPreComputeExtModuleElement | ( | xsltStylesheetPtr | style, |
xmlNodePtr | inst | ||
) |
xsltPreComputeExtModuleElement: @style: the stylesheet @inst: the element node
Precomputes an extension module element
Returns the precomputed data
Definition at line 1558 of file extensions.c.
Referenced by xsltStylePreCompute().
XSLTPUBFUN int XSLTCALL xsltRegisterExtElement | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | URI, | ||
xsltTransformFunction | function | ||
) |
Definition at line 621 of file extensions.c.
Referenced by xsltRegisterAllElement().
XSLTPUBFUN int XSLTCALL xsltRegisterExtFunction | ( | xsltTransformContextPtr | ctxt, |
const xmlChar * | name, | ||
const xmlChar * | URI, | ||
xmlXPathFunction | function | ||
) |
Definition at line 587 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltRegisterExtModule | ( | const xmlChar * | URI, |
xsltExtInitFunction | initFunc, | ||
xsltExtShutdownFunction | shutdownFunc | ||
) |
xsltRegisterExtModule: @URI: URI associated to this module @initFunc: the module initialization function @shutdownFunc: the module shutdown function
Register an XSLT extension module to the library.
Returns 0 if sucessful, -1 in case of error
Definition at line 1300 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleElement | ( | const xmlChar * | name, |
const xmlChar * | URI, | ||
xsltPreComputeFunction | precomp, | ||
xsltTransformFunction | transform | ||
) |
Definition at line 1623 of file extensions.c.
Referenced by xsltRegisterAllExtras(), and xsltRegisterTestModule().
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFull | ( | const xmlChar * | URI, |
xsltExtInitFunction | initFunc, | ||
xsltExtShutdownFunction | shutdownFunc, | ||
xsltStyleExtInitFunction | styleInitFunc, | ||
xsltStyleExtShutdownFunction | styleShutdownFunc | ||
) |
xsltRegisterExtModuleFull: @URI: URI associated to this module @initFunc: the module initialization function @shutdownFunc: the module shutdown function @styleInitFunc: the module initialization function @styleShutdownFunc: the module shutdown function
Register an XSLT extension module to the library.
Returns 0 if sucessful, -1 in case of error
Definition at line 1248 of file extensions.c.
Referenced by xsltRegisterExtModule(), and xsltRegisterTestModule().
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleFunction | ( | const xmlChar * | name, |
const xmlChar * | URI, | ||
xmlXPathFunction | function | ||
) |
Definition at line 1385 of file extensions.c.
Referenced by xsltRegisterAllExtras(), and xsltRegisterTestModule().
XSLTPUBFUN int XSLTCALL xsltRegisterExtModuleTopLevel | ( | const xmlChar * | name, |
const xmlChar * | URI, | ||
xsltTopLevelFunction | function | ||
) |
Definition at line 1825 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltRegisterExtPrefix | ( | xsltStylesheetPtr | style, |
const xmlChar * | prefix, | ||
const xmlChar * | URI | ||
) |
xsltRegisterExtPrefix: @style: an XSLT stylesheet @prefix: the prefix used (optional) @URI: 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 @URI was already registered as an extension namespace and -1 in case of failure
Definition at line 503 of file extensions.c.
Referenced by xsltParseStylesheetExtPrefix().
XSLTPUBFUN void XSLTCALL xsltRegisterTestModule | ( | void | ) |
Test of the extension module API
xsltRegisterTestModule:
Registers the test module
Definition at line 2225 of file extensions.c.
XSLTPUBFUN void XSLTCALL xsltShutdownCtxtExts | ( | xsltTransformContextPtr | ctxt | ) |
xsltShutdownCtxtExts: @ctxt: an XSLT transformation context
Shutdown the set of modules loaded
Definition at line 1081 of file extensions.c.
Referenced by xsltApplyStylesheetInternal(), and xsltFreeTransformContext().
XSLTPUBFUN void XSLTCALL xsltShutdownExts | ( | xsltStylesheetPtr | style | ) |
xsltShutdownExts: @style: an XSLT stylesheet
Shutdown the set of modules loaded
Definition at line 1133 of file extensions.c.
Referenced by xsltFreeStylesheet().
XSLTPUBFUN void *XSLTCALL xsltStyleGetExtData | ( | xsltStylesheetPtr | style, |
const xmlChar * | URI | ||
) |
xsltStyleGetExtData: @style: an XSLT stylesheet @URI: 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
Definition at line 756 of file extensions.c.
Referenced by xsltExtElementPreCompTest(), xsltExtInitTest(), and xsltRegisterExtPrefix().
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModule | ( | const xmlChar * | URI | ) |
xsltUnregisterExtModule: @URI: URI associated to this module
Unregister an XSLT extension module from the library.
Returns 0 if sucessful, -1 in case of error
Definition at line 1317 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleElement | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1781 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleFunction | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1454 of file extensions.c.
XSLTPUBFUN int XSLTCALL xsltUnregisterExtModuleTopLevel | ( | const xmlChar * | name, |
const xmlChar * | URI | ||
) |
Definition at line 1893 of file extensions.c.
XSLTPUBFUN xsltTransformContextPtr XSLTCALL xsltXPathGetTransformContext | ( | xmlXPathParserContextPtr | ctxt | ) |
xsltXPathGetTransformContext: @ctxt: 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.
Definition at line 1367 of file extensions.c.
Referenced by xsltCurrentFunction(), xsltDocumentFunction(), xsltDocumentFunctionLoadDocument(), xsltElementAvailableFunction(), xsltExtFunctionTest(), xsltFormatNumberFunction(), xsltFunctionAvailableFunction(), xsltFunctionNodeSet(), xsltGenerateIdFunction(), xsltKeyFunction(), and xsltSystemPropertyFunction().