org.exolab.adaptx.xslt

Class XSLTFunction

public abstract class XSLTFunction extends XPathFunction

The base class for XSLT functions.

Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $

Author: Keith Visco

Field Summary
static StringINVALID_NUMBER_PARAMS
static StringXSLT_NAMESPACE
The current (and ever changing) XSLT namespace
Constructor Summary
XSLTFunction(String name)
Creates a new XSLTFunction with the given name.
Method Summary
abstract XPathResultcall(XPathContext context, XPathResult[] args)
Invokes the function and returns the XPath result.
StringgetFunctionName()
Returns the name of this function.
StringgetNamespaceURI()
Returns the namespace URI of this function.

Field Detail

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 Detail

XSLTFunction

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

Parameters: name the function name.

Method Detail

call

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

Parameters: context The XPath context params A list of zero or more arguments

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.

Returns: The name of this function

getNamespaceURI

public String getNamespaceURI()
Returns the namespace URI of this function.

Returns: The namespace URI of this function