Class XSLSort

All Implemented Interfaces:
Serializable, Source, SourceLocator, LocationProvider, SaxonLocator, PullEvent, Container, FingerprintedNode, Item<NodeInfo>, MutableNodeInfo, NamespaceResolver, NodeInfo, ValueRepresentation<NodeInfo>, InstructionInfo, SiblingCountingNode, Locator

public class XSLSort extends XSLSortOrMergeKey
An xsl:sort element in the stylesheet.
See Also:
  • Constructor Details

    • XSLSort

      public XSLSort()
  • Method Details

    • validate

      public void validate(Declaration decl) throws XPathException
      Description copied from class: StyleElement
      Check that the stylesheet 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.
      Overrides:
      validate in class XSLSortOrMergeKey
      Parameters:
      decl - the declaration to be validated
      Throws:
      XPathException - if any error is found during validation
    • 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.
      Overrides:
      getReturnedItemType in class StyleElement
      Returns:
      the item type returned
    • getStable

      public Expression getStable()
      Overrides:
      getStable in class XSLSortOrMergeKey