net.sf.saxon.expr
public interface MappingFunction
Method Summary | |
---|---|
Object | map(Item item, XPathContext context)
Map one item to a sequence. |
Parameters: item The item to be mapped. If context is supplied, this must be the same as context.currentItem(). context The processing context. Some mapping functions use this because they require context information. Some mapping functions modify the context by maintaining the context item and position. In other cases, the context may be null.
Returns: either (a) a SequenceIterator over the sequence of items that the supplied input item maps to, or (b) an Item if it maps to a single item, or (c) null if it maps to an empty sequence.