com.icl.saxon.style

Class SAXONFunction

public class SAXONFunction extends StyleElement

Handler for saxon:function and exslt:function elements in stylesheet.
Attributes:
name gives the name of the function
Field Summary
intfunctionFingerprint
Procedureprocedure
Method Summary
Valuecall(ParameterSet params, Context context)
Call this function
intgetFunctionFingerprint()
intgetNthParameter(int n)
Get the name fingerprint of the n'th parameter (starting from 0).
ProceduregetProcedure()
Get associated Procedure (for details of stack frame)
booleanmayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body
voidprepareAttributes()
voidpreprocess()
voidprocess(Context context)
protected voidprocessExtensionElementAttribute(int nc)
Process the [xsl:]extension-element-prefixes attribute.
voidvalidate()

Field Detail

functionFingerprint

int functionFingerprint

procedure

Procedure procedure

Method Detail

call

public Value call(ParameterSet params, Context context)
Call this function

getFunctionFingerprint

public int getFunctionFingerprint()

getNthParameter

public int getNthParameter(int n)
Get the name fingerprint of the n'th parameter (starting from 0). Return -1 if there is none such.

getProcedure

public Procedure getProcedure()
Get associated Procedure (for details of stack frame)

mayContainTemplateBody

public boolean mayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body

Returns: true: yes, it may contain a template-body

prepareAttributes

public void prepareAttributes()

preprocess

public void preprocess()

process

public void process(Context context)

processExtensionElementAttribute

protected void processExtensionElementAttribute(int nc)
Process the [xsl:]extension-element-prefixes attribute. This overrides the standard method because saxon:function and exslt:function implicitly declare saxon/exslt (respectively) as an extension namespace.

Parameters: nc the name code of the attribute required (ignored)

validate

public void validate()