Project

Profile

Help

Support #2009

closed

saxon:stream not causing streaming

Added by David Rudel almost 11 years ago. Updated over 10 years ago.

Status:
Won't fix
Priority:
Low
Assignee:
Category:
Streaming
Sprint/Milestone:
-
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

snippet.xml (72.7 KB) snippet.xml David Rudel, 2014-02-18 15:03

Please register to edit this issue

Also available in: Atom PDF