com.icl.saxon.style

Class XSLIf

public class XSLIf extends StyleElement

Handler for xsl:if elements in stylesheet.
The xsl:if element has a mandatory attribute test, a boolean expression. The content is output if the test condition is true.
Method Summary
booleandoesPostProcessing()
Determine whether this element does any processing after instantiating any children.
booleanisInstruction()
Determine whether this node is an instruction.
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.

isInstruction

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

Returns: true - it is an instruction

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