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.
pipelineConfiguration, systemId
Constructor and Description |
---|
SimpleNodeConstructorFeed(Expression expr,
ItemFeed result,
XPathContext context) |
Modifier and Type | Method and Description |
---|---|
void |
append(Item item)
Supply an item to the feed
|
void |
close()
Finish evaluating the expression.
|
UniStringConsumer |
getStringReceiver(boolean asTextNode,
Location loc)
Get a string-value consumer object that allows an item of type xs:string
to be appended one fragment at a time.
|
append, dynamicError, endSelectedParentNode, getContext, getExpression, getResultFeed, getTerminator, hasFailed, open, processItems, setExpression, setHasFailed, setTerminator, startSelectedParentNode
attribute, characters, comment, endDocument, endElement, getNextOutputter, namespace, open, processingInstruction, setUnparsedEntity, startContent, startDocument, startElement, startElement, usesTypeAnnotations
getConfiguration, getPipelineConfiguration, getSystemId, namespaces, setPipelineConfiguration, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlesAppend
public SimpleNodeConstructorFeed(Expression expr, ItemFeed result, XPathContext context)
public void append(Item item) throws XPathException
append
in interface Receiver
append
in class ItemFeed
item
- the item being fedXPathException
- to report any failurepublic UniStringConsumer getStringReceiver(boolean asTextNode, Location loc)
Outputter
getStringReceiver
in class Outputter
asTextNode
- set to true if the concatenated string values are to be treated
as a text node item rather than a stringpublic void close() throws XPathException
ItemFeed
close
in interface Receiver
close
in class ItemFeed
XPathException
- if a dynamic error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.