An xsl:template element in the style sheet.
modeNameCode
protected int modeNameCode
needsStackFrame
protected boolean needsStackFrame
priority
protected double priority
prioritySpecified
protected boolean prioritySpecified
templateFingerprint
protected int templateFingerprint
bindVariable
public Binding bindVariable(int fingerprint)
throws XPathException
Disallow variable references in the match pattern
- bindVariable in interface StyleElement
expand
protected void expand(Context context)
throws TransformerException
Expand the template. Called when the template is invoked either
by xsl:apply-templates or from xsl:call-template
getMinImportPrecedence
public int getMinImportPrecedence()
getProcedure
public Procedure getProcedure()
Get associated Procedure (for details of stack frame)
getTemplateFingerprint
public int getTemplateFingerprint()
Return the fingerprint for the name of this template
mayContainTemplateBody
public boolean mayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body
- mayContainTemplateBody in interface StyleElement
- true: yes, it may contain a template-body
prepareAttributes
public void prepareAttributes()
throws TransformerConfigurationException
Set the attribute list for the element. This is called to process the attributes (note
the distinction from processAttributes in the superclass).
Must be supplied in a subclass
- prepareAttributes in interface StyleElement
preprocess
public void preprocess()
throws TransformerConfigurationException
Preprocess: this registers the template with the rule manager, and ensures
space is available for local variables
- preprocess in interface StyleElement
process
public void process(Context context)
throws TransformerException
Process template. This is called while all the top-level nodes are being processed in order,
so it does nothing.
- process in interface StyleElement
start
public void start(NodeInfo e,
Context context)
throws TransformerException
Process a node in the source document. This is called when the template
is invoked using xsl:apply-templates.
- start in interface NodeHandler
traceExpand
protected void traceExpand(Context context)
throws TransformerException
Expand the template, with tracing. Called when the template is invoked either
by xsl:apply-templates or from xsl:call-template
validate
public void validate()
throws TransformerConfigurationException
Check that the element is valid. This is called once for each element, after
the entire tree has been built. As well as validation, it can perform first-time
initialisation. The default implementation does nothing; it is normally overriden
in subclasses.
- validate in interface StyleElement