com.icl.saxon.style

Class XSLWhen

public class XSLWhen extends StyleElement

Handler for xsl:when elements in stylesheet.
The xsl:while element has a mandatory attribute test, a boolean expression.
Method Summary
booleandoesPostProcessing()
Determine whether this element does any processing after instantiating any children.
ExpressiongetCondition()
booleanmayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body
voidprepareAttributes()
voidprocess(Context context)
voidvalidate()

Method Detail

doesPostProcessing

public boolean doesPostProcessing()
Determine whether this element does any processing after instantiating any children. This implementation says it doesn't, thus enabling tail recursion.

getCondition

public Expression getCondition()

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()

process

public void process(Context context)

validate

public void validate()