net.sf.saxon.style

Class XSLForEach

public class XSLForEach extends StyleElement

Handler for xsl:for-each elements in stylesheet.
Field Summary
Expressionselect
Method Summary
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.
protected booleanisPermittedChild(StyleElement child)
Specify that xsl:sort is a permitted child
booleanmayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a template-body
voidprepareAttributes()
voidvalidate()

Field Detail

select

Expression select

Method Detail

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

isPermittedChild

protected boolean isPermittedChild(StyleElement child)
Specify that xsl:sort is a permitted child

mayContainSequenceConstructor

public boolean mayContainSequenceConstructor()
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()

validate

public void validate()