public interface FunctionResolver
Modifier and Type | Method | Description |
---|---|---|
java.lang.String[] |
getNamespaces() |
Returns the namespaces for this FunctionResolver.
|
boolean |
hasFunction(java.lang.String namespace,
java.lang.String name) |
Returns true if this FunctionResolver has a function
with the given name.
|
XSLTFunction |
resolveFunction(java.lang.String namespace,
java.lang.String name) |
Returns the FunctionCall associated with the given name
|
java.lang.String[] getNamespaces()
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform/" xmlns:foo="http://my.example.com"> ... <xsl:template match="..."> ... <xsl:value-of select="foo:my-function()"> ... </xsl:template> ... </xsl:stylesheet>
boolean hasFunction(java.lang.String namespace, java.lang.String name)
namespace
- of the functionname
- the name of the functionXSLTFunction resolveFunction(java.lang.String namespace, java.lang.String name)
namespace
- the namespace of the functionname
- the name of the function