Michael Kay wrote:
> The xsl:stream instruction isn't implemented yet - you have to
> The attribute on xsl:mode is streamable="yes" not streaming="yes".
Thank you for those responses! Indeed the license was correctly
discovered. I discovered in the doc about "Streaming Templates"
that streaming can apply to the principal source document, so I
don't need the saxon:stream() after all. I ended up with the
following stylesheet (I provide the source as a StreamSource by
<xsl:param name="i" select="0"/>
<xsl:variable name="next" select="following::*"/>
<xsl:with-param name="i" select="$i + 1"/>
<xsl:value-of select="$i + 1"/>
As you see, I try to walk from node to node, one at a time, in
document order. But this gives me the following error:
Error on line 10 of streamed-count.xsl:
No watchable streaming selection found in expression
I didn't find what a "watchable streaming selection" is, in the
Saxon documentation on streaming. I guess I don't use it properly
and it this template rule does not fulfill the rules to be in a
streamable mode, but I fail to see why exactly.