Class Selection


  • public class Selection
    extends XSLObject
    Represents a Basic XSL Selection Object. xsl:if, xsl:apply-templates, xsl:for-each
    Version:
    $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 2003) $
    Author:
    Keith Visco
    • Constructor Detail

      • Selection

        public Selection​(short type)
        Creates a new Selection of the give type.
        Parameters:
        type - the type of Selection
        Note: This will be changing soon.
    • Method Detail

      • getSelectExpr

        public XPathExpression getSelectExpr()
        Returns:
        the SelectExpr of this Selection
      • getSortKeys

        public XSLSort[] getSortKeys()
        Returns an Array of any XSLSort elements for this Selection.
        Only xsl:apply-templates or xsl:for-each can have xsl:sort elements
      • hasSortKeys

        public boolean hasSortKeys()
        Returns true if xsl:sort keys have been specified
        Returns:
        true if xsl:sort keys have been specified
        See Also:
        getSortKeys()
      • selectNodes

        public NodeSet selectNodes​(ProcessorState ps)
                            throws XPathException
        Selects all nodes that match this Selection's SelectExpr using the given context node and ids.
        Parameters:
        context - the Node context for evaluate the SelectExpr with
        idRefs - the ID reference table to resolve IDExpr(s)
        Throws:
        XPathException