Actions
Support #2009
closed![Author: David Rudel](https://www.gravatar.com/avatar/d31d03a7d58ec534e765d8d0e81cc39f?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
saxon: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