com.jclark.xsl.expr

Class KeyValuesTable


public class KeyValuesTable
extends java.lang.Object

all the nodes which have been indexed for a given document in a given named key ... part of the implementation of xsl:key

Constructor Summary

KeyValuesTable(Pattern pattern, StringExpr valueExpr, Node n, ExprContext context)

Method Summary

NodeIterator
get(String keyValue)
return a nodelist of the nodes with the "use" value which matches the supplied argument

Constructor Details

KeyValuesTable

public KeyValuesTable(Pattern pattern,
                      StringExpr valueExpr,
                      Node n,
                      ExprContext context)
Parameters:
pattern - the key's match pattern
valueExpr - the expression we'll evaluate against each matched node to find its "value" (the key we use for lookup)
n - a node in the document we're indexing

Method Details

get

public NodeIterator get(String keyValue)
return a nodelist of the nodes with the "use" value which matches the supplied argument