Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:44:21

0001 /*
0002  * Summary: interface for the XSLT functions not from XPath
0003  * Description: a set of extra functions coming from XSLT but not in XPath
0004  *
0005  * Copy: See Copyright for the status of this software.
0006  *
0007  * Author: Daniel Veillard and Bjorn Reese <breese@users.sourceforge.net>
0008  */
0009 
0010 #ifndef __XML_XSLT_FUNCTIONS_H__
0011 #define __XML_XSLT_FUNCTIONS_H__
0012 
0013 #include <libxml/xpath.h>
0014 #include <libxml/xpathInternals.h>
0015 #include "xsltexports.h"
0016 #include "xsltInternals.h"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 /**
0023  * XSLT_REGISTER_FUNCTION_LOOKUP:
0024  *
0025  * Registering macro, not general purpose at all but used in different modules.
0026  */
0027 #define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt)         \
0028     xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt,       \
0029     xsltXPathFunctionLookup,                \
0030     (void *)(ctxt->xpathCtxt));
0031 
0032 XSLTPUBFUN xmlXPathFunction XSLTCALL
0033     xsltXPathFunctionLookup     (void *vctxt,
0034                      const xmlChar *name,
0035                      const xmlChar *ns_uri);
0036 
0037 /*
0038  * Interfaces for the functions implementations.
0039  */
0040 
0041 XSLTPUBFUN void XSLTCALL
0042     xsltDocumentFunction        (xmlXPathParserContextPtr ctxt,
0043                      int nargs);
0044 XSLTPUBFUN void XSLTCALL
0045     xsltKeyFunction         (xmlXPathParserContextPtr ctxt,
0046                      int nargs);
0047 XSLTPUBFUN void XSLTCALL
0048     xsltUnparsedEntityURIFunction   (xmlXPathParserContextPtr ctxt,
0049                      int nargs);
0050 XSLTPUBFUN void XSLTCALL
0051     xsltFormatNumberFunction    (xmlXPathParserContextPtr ctxt,
0052                      int nargs);
0053 XSLTPUBFUN void XSLTCALL
0054     xsltGenerateIdFunction      (xmlXPathParserContextPtr ctxt,
0055                      int nargs);
0056 XSLTPUBFUN void XSLTCALL
0057     xsltSystemPropertyFunction  (xmlXPathParserContextPtr ctxt,
0058                      int nargs);
0059 XSLTPUBFUN void XSLTCALL
0060     xsltElementAvailableFunction    (xmlXPathParserContextPtr ctxt,
0061                      int nargs);
0062 XSLTPUBFUN void XSLTCALL
0063     xsltFunctionAvailableFunction   (xmlXPathParserContextPtr ctxt,
0064                      int nargs);
0065 
0066 /*
0067  * And the registration
0068  */
0069 
0070 XSLTPUBFUN void XSLTCALL
0071     xsltRegisterAllFunctions    (xmlXPathContextPtr ctxt);
0072 
0073 #ifdef __cplusplus
0074 }
0075 #endif
0076 
0077 #endif /* __XML_XSLT_FUNCTIONS_H__ */
0078