# The XSLT C library for Gnome

## Module functions from libxslt

API Menu

- Main Menu
- Developer Menu
- API Menu
- ChangeLog

Related links

- Mail archive
- XML libxml
- DOM gdome2
- FTP
- Windows binaries
- Solaris binaries
- MacOsX binaries
- Pascal bindings
- Bug Tracker
- Xsldbg Debugger
- Apache module

API Indexes

- Alphabetic
- Constructors
- Functions/Types
- Modules
- Symbols

a set of extra functions coming from XSLT but not in XPath

## Table of Contents

    #define XSLT_REGISTER_FUNCTION_LOOKUP

    void	xsltDocumentFunction		(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltElementAvailableFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltFormatNumberFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltFunctionAvailableFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltGenerateIdFunction		(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltKeyFunction			(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltRegisterAllFunctions	(xmlXPathContextPtr ctxt)

    void	xsltSystemPropertyFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    void	xsltUnparsedEntityURIFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

    xmlXPathFunction	xsltXPathFunctionLookup	(xmlXPathContextPtr ctxt,
    						 const xmlChar * name,
    						 const xmlChar * ns_uri)

## Description

### Macro: XSLT_REGISTER_FUNCTION_LOOKUP

    #define XSLT_REGISTER_FUNCTION_LOOKUP

Registering macro, not general purpose at all but used in different modules.

### Function: xsltDocumentFunction

    void	xsltDocumentFunction		(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the document() XSLT function node-set document(object, node-set?)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltElementAvailableFunction

    void	xsltElementAvailableFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the element-available() XSLT function boolean element-available(string)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltFormatNumberFunction

    void	xsltFormatNumberFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the format-number() XSLT function string format-number(number, string, string?)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltFunctionAvailableFunction

    void	xsltFunctionAvailableFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the function-available() XSLT function boolean function-available(string)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltGenerateIdFunction

    void	xsltGenerateIdFunction		(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the generate-id() XSLT function string generate-id(node-set?)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltKeyFunction

    void	xsltKeyFunction			(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the key() XSLT function node-set key(string, object)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltRegisterAllFunctions

    void	xsltRegisterAllFunctions	(xmlXPathContextPtr ctxt)

Registers all default XSLT functions in this context

`ctxt`: | the XPath context

### Function: xsltSystemPropertyFunction

    void	xsltSystemPropertyFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the system-property() XSLT function object system-property(string)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltUnparsedEntityURIFunction

    void	xsltUnparsedEntityURIFunction	(xmlXPathParserContextPtr ctxt,
    					 int nargs)

Implement the unparsed-entity-uri() XSLT function string unparsed-entity-uri(string)

`ctxt`: | the XPath Parser context
`nargs`: | the number of arguments

### Function: xsltXPathFunctionLookup

    xmlXPathFunction	xsltXPathFunctionLookup	(xmlXPathContextPtr ctxt,
    						 const xmlChar * name,
    						 const xmlChar * ns_uri)

This is the entry point when a function is needed by the XPath interpretor.

`ctxt`: | a void * but the XSLT transformation context actually
`name`: | the function name
`ns_uri`: | the function namespace URI
`Returns`: | the callback function or NULL if not found

Daniel Veillard