public class SimpleContentFeed extends AbsorptionFeed
The result of this Watch is a single string, constructed using the rules of "Constructing Simple Content" in the XSLT specification.
The AdjacentTextNodeMergerFeed 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.
AbsorptionFeed.PendingItem
pipelineConfiguration, systemId
Constructor and Description |
---|
SimpleContentFeed(ItemFeed result) |
Modifier and Type | Method and Description |
---|---|
protected AbsorptionFeed.PendingItem |
makePendingItem(int sequenceNr,
FleetingParentNode node)
Create a pending item (appropriate to the subclass) containing the data needed
to compute the result value for one node in the streamed input sequence
|
protected Sequence |
processGroundedItem(Item item)
Process a grounded item in the input sequence: either a streamed leaf node such as an attribute
or text node, or an atomic value, or a non-streamed element or document node injected into the
sequence for example by use of the comma operator.
|
append, endSelectedParentNode, setHasFailed, startSelectedParentNode
attribute, characters, comment, endDocument, endElement, namespace, processingInstruction, setUnparsedEntity, startContent, startDocument, startElement, startElement
append, close, dynamicError, getContext, getExpression, getResultFeed, getTerminator, hasFailed, open, processItems, setExpression, setTerminator
getNextOutputter, open, usesTypeAnnotations
getConfiguration, getPipelineConfiguration, getStringReceiver, getSystemId, namespaces, setPipelineConfiguration, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlesAppend
public SimpleContentFeed(ItemFeed result)
protected AbsorptionFeed.PendingItem makePendingItem(int sequenceNr, FleetingParentNode node)
AbsorptionFeed
makePendingItem
in class AbsorptionFeed
sequenceNr
- the sequence number of this node within a set of nested nodesnode
- the streamed input nodeprotected Sequence processGroundedItem(Item item) throws XPathException
AbsorptionFeed
processGroundedItem
in class AbsorptionFeed
item
- the grounded itemXPathException
- if a dynamic error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.