net.sf.saxon.style

Class XSLCallTemplate

public class XSLCallTemplate extends StyleElement

An xsl:call-template element in the stylesheet
Method Summary
protected booleanallowAVT()
Determine whether the called template can be specified as an AVT
Expressioncompile(Executable exec)
protected ItemTypegetReturnedItemType()
Determine the type of item returned by this instruction (only relevant if it is an instruction).
booleanisInstruction()
Determine whether this node is an instruction.
booleanmarkTailCalls()
Mark tail-recursive calls on templates and functions.
voidpostValidate()
voidprepareAttributes()
voidvalidate()

Method Detail

allowAVT

protected boolean allowAVT()
Determine whether the called template can be specified as an AVT

Returns: true if the template name can be specified at run-time, that is, if this is a saxon:call-template instruction

compile

public Expression compile(Executable exec)

getReturnedItemType

protected ItemType getReturnedItemType()
Determine the type of item returned by this instruction (only relevant if it is an instruction).

Returns: the item type returned

isInstruction

public boolean isInstruction()
Determine whether this node is an instruction.

Returns: true - it is an instruction

markTailCalls

public boolean markTailCalls()
Mark tail-recursive calls on templates and functions. For most instructions, this does nothing.

postValidate

public void postValidate()

prepareAttributes

public void prepareAttributes()

validate

public void validate()