Annotation of win32/gnome/libxslt-x.x.x/libxslt/functions.h, revision 1.1
1.1 ! paf 1: /*
! 2: * functions.h: interface for the XSLT extra functions
! 3: *
! 4: * See Copyright for the status of this software.
! 5: *
! 6: * daniel@veillard.com
! 7: * Bjorn Reese <breese@users.sourceforge.net> for number formatting
! 8: */
! 9:
! 10: #ifndef __XML_XSLT_FUNCTIONS_H__
! 11: #define __XML_XSLT_FUNCTIONS_H__
! 12:
! 13: #include <libxml/xpath.h>
! 14: #include <libxml/xpathInternals.h>
! 15: #include "xsltInternals.h"
! 16:
! 17: #ifdef __cplusplus
! 18: extern "C" {
! 19: #endif
! 20:
! 21: /**
! 22: * XSLT_REGISTER_FUNCTION_LOOKUP:
! 23: *
! 24: * registering macro, not general purpose at all but used in different modules
! 25: */
! 26: #define XSLT_REGISTER_FUNCTION_LOOKUP(ctxt) \
! 27: xmlXPathRegisterFuncLookup((ctxt)->xpathCtxt, \
! 28: (xmlXPathFuncLookupFunc) xsltXPathFunctionLookup, \
! 29: (void *)(ctxt->xpathCtxt));
! 30:
! 31: xmlXPathFunction
! 32: xsltXPathFunctionLookup (xmlXPathContextPtr ctxt,
! 33: const xmlChar *name,
! 34: const xmlChar *ns_uri);
! 35:
! 36: /*
! 37: * Interfaces for the functions implementations
! 38: */
! 39:
! 40: void xsltDocumentFunction (xmlXPathParserContextPtr ctxt,
! 41: int nargs);
! 42: void xsltKeyFunction (xmlXPathParserContextPtr ctxt,
! 43: int nargs);
! 44: void xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt,
! 45: int nargs);
! 46: void xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt,
! 47: int nargs);
! 48: void xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt,
! 49: int nargs);
! 50: void xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt,
! 51: int nargs);
! 52: void xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt,
! 53: int nargs);
! 54: void xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt,
! 55: int nargs);
! 56:
! 57: /*
! 58: * And the registration
! 59: */
! 60:
! 61: void xsltRegisterAllFunctions (xmlXPathContextPtr ctxt);
! 62:
! 63: #ifdef __cplusplus
! 64: }
! 65: #endif
! 66:
! 67: #endif /* __XML_XSLT_FUNCTIONS_H__ */
! 68:
E-mail: