Actions
Support #2009
closedsaxon:stream not causing streaming
Start date:
2014-02-18
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
I mentioned this on the Saxon list, and based on M. Kay's response there, I thought I should post here with a snippet of my source code.
When using the following code, Saxon successfully streams the source file snippet.xml:
<xsl:for-each select="saxon:stream(doc($path||'snippet.xml')//item[@model.error ne ''])">
<i bin1="{round(@model.error div $bin.width)}" bin2="{round(@current.error div $bin.width)}"/>
</xsl:for-each>
However, including an extra step in the path: /day, causes Saxon to switch to non-streaming mode:
<xsl:for-each select="saxon:stream(doc($path||'snippet.xml')//day/item[@model.error ne ''])">
<i bin1="{round(@model.error div $bin.width)}" bin2="{round(@current.error div $bin.width)}"/>
</xsl:for-each>
Files
Please register to edit this issue
Actions