public class SimpleNodeConstructorFeed extends ItemFeed
The SimpleContentFeed is used when the node is constructed as a result of a computation on the streamed data,
for example xsl:value-of select="distinct-values(.//@price)"
. By contrast, a SimpleContentWatch
is used when the streamed nodes are selected directly, for example xsl:value-of select=".//@price"
.
Both a Feed and a Watch are needed because a simple content constructor operates on a sequence of nodes without simply atomizing the sequence.
Constructor and Description |
---|
SimpleNodeConstructorFeed(Expression expr,
Feed result,
Stack<XPathContext> contextStack) |
Modifier and Type | Method and Description |
---|---|
void |
append(Item item)
Supply an item to the feed
|
void |
close()
Finish evaluating the expression.
|
void |
open()
Start evaluating the expression.
|
getContext, getContextStack, getExpression, getPipelineConfiguration, getResult, setPipelineConfiguration
public SimpleNodeConstructorFeed(Expression expr, Feed result, Stack<XPathContext> contextStack)
public void open() throws XPathException
ItemFeed
open
in interface Feed
open
in class ItemFeed
XPathException
- if a dynamic error occurspublic void close() throws XPathException
ItemFeed
close
in interface Feed
close
in class ItemFeed
XPathException
- if a dynamic error occurspublic void append(Item item) throws XPathException
append
in interface Feed
append
in class ItemFeed
item
- the item being fedXPathException
- to report any failureCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.