net.sf.saxon.style

Class XSLSort

public class XSLSort extends StyleElement

An xsl:sort element in the stylesheet.
Method Summary
Expressioncompile(Executable exec)
protected ItemTypegetReturnedItemType()
Determine the type of item returned by this instruction (only relevant if it is an instruction).
SortKeyDefinitiongetSortKeyDefinition()
booleanmayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a sequence constructor
voidprepareAttributes()
voidvalidate()

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). Default implementation returns Type.ITEM, indicating that we don't know, it might be anything. Returns null in the case of an element such as xsl:sort or xsl:variable that can appear in a sequence constructor but contributes nothing to the result sequence.

Returns: the item type returned

getSortKeyDefinition

public SortKeyDefinition getSortKeyDefinition()

mayContainSequenceConstructor

public boolean mayContainSequenceConstructor()
Determine whether this type of element is allowed to contain a sequence constructor

Returns: true: yes, it may contain a sequence constructor

prepareAttributes

public void prepareAttributes()

validate

public void validate()