[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: streaming through a table, but don't stream the ro

Subject: Re: streaming through a table, but don't stream the row level
From: "Geert Bormans geert@xxxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 9 Jan 2017 14:47:09 -0000
Re:  streaming through a table
Thanks Michael,
That did the trick.
My apologies for confirming so late.
I had some issues getting this to work with xsl:stream on Saxon EE 9.6
Moving to EE 9.7 and using xsl:source-document with your suggestion works like a charm
Thanks a lot

At 18:48 7/01/2017, Michael Kay mike@xxxxxxxxxxxx wrote:
XSLT 3.0 allows you to do

<xsl:source-document href="input.xml" streamable="yes">
  <xsl:apply-templates select="/*/row/copy-of(.)"/>

or in earlier drafts

<xsl:stream href="input.xml">
  <xsl:apply-templates select="/*/row/copy-of(.)"/>

which streams the file into a sequence of "row" elements, each of which can be internally processed in non-streaming mode using ordinary XSLT/XPath code, provided it only needs to look inside one row at a time.

Michael Kay

On 7 Jan 2017, at 17:08, Geert Bormans <mailto:geert@xxxxxxxxxxxxxxxxxxx>geert@xxxxxxxxxxxxxxxxxxx <<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:


I might be missing something

An XML serialisation of an excel sheet just exploded into 1.4 GByte
I have an XSLT that works on smaller subsets that I now want to apply on the big file
and if possible, I would prefer to not change all of my functions and templates (that work on the row level) in to streaming mode
Is there a way to process the table in streaming mode, but just process the rows without caring about streaming there?



<http://www.mulberrytech.com/xsl/xsl-list>XSL-List info and archive <-list/293509.htm>EasyUnsubscribe (by email)

<http://www.mulberrytech.com/xsl/xsl-list>XSL-List info and archive
<-list/554170>EasyUnsubscribe (<>by email)

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.