Class XSLSort

    • Constructor Detail

      • XSLSort

        public XSLSort()
    • Method Detail

      • 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