org.exolab.adaptx.xslt

Class XSLTFunction

Known Direct Subclasses:
CurrentFunctionCall, DocumentFunctionCall, ExtensionFunctionCall, GenerateIDFunctionCall, RTF2NodeSetFunctionCall, SystemFunctionCall

public abstract class XSLTFunction
extends XPathFunction

The base class for XSLT functions.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:51 $

Author:
Keith Visco

Field Summary

static String
INVALID_NUMBER_PARAMS
static String
XSLT_NAMESPACE
The current (and ever changing) XSLT namespace

Constructor Summary

XSLTFunction(String name)
Creates a new XSLTFunction with the given name.

Method Summary

XPathResult
call(XPathContext context, XPathResult[] args)
Invokes the function and returns the XPath result.
String
getFunctionName()
Returns the name of this function.
String
getNamespaceURI()
Returns the namespace URI of this function.

Methods inherited from class org.exolab.adaptx.xpath.XPathFunction

call, getFunctionName, getNamespaceURI

Field Details

INVALID_NUMBER_PARAMS

public static final String INVALID_NUMBER_PARAMS


XSLT_NAMESPACE

public static final String XSLT_NAMESPACE
The current (and ever changing) XSLT namespace

Constructor Details

XSLTFunction

public XSLTFunction(String name)
Creates a new XSLTFunction with the given name.

Parameters:
name - the function name.

Method Details

call

public XPathResult call(XPathContext context,
                        XPathResult[] args)
            throws XPathException
Invokes the function and returns the XPath result.

Parameters:
context - The XPath context

Returns:
An XPath result (not null)

Throws:
XPathException - An error occured while invoking this function


getFunctionName

public String getFunctionName()
Returns the name of this function.
Overrides:
getFunctionName in interface XPathFunction

Returns:
The name of this function


getNamespaceURI

public String getNamespaceURI()
Returns the namespace URI of this function.
Overrides:
getNamespaceURI in interface XPathFunction

Returns:
The namespace URI of this function