[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] streaming through a table, but don't stream the row level
From:       "Geert Bormans geert () gbormans ! telenet ! be" <xsl-list-service () lists ! mulberrytech ! c
Date:       2017-01-09 14:47:38
Message-ID: 20170109094708.60482 () lists ! mulberrytech ! com
[Download RAW message or body]

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
Geert



At 18:48 7/01/2017, Michael Kay mike@saxonica.com wrote:
>XSLT 3.0 allows you to do
>
><xsl:source-document href="input.xml" streamable="yes">
>   <xsl:apply-templates select="/*/row/copy-of(.)"/>
></xsl:source-document>
>
>or in earlier drafts
>
><xsl:stream href="input.xml">
>   <xsl:apply-templates select="/*/row/copy-of(.)"/>
></xsl:stream>
>
>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
>Saxonica
>
>>On 7 Jan 2017, at 17:08, Geert Bormans 
>><mailto:geert@gbormans.telenet.be>geert@gbormans.telenet.be 
>><<mailto:xsl-list-service@lists.mulberrytech.com>xsl-list-service@lists.mulberrytech.com> 
>>wrote:
>>
>>All,
>>
>>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?
>>
>>Thanks
>>
>>Geert
>>
>>
>><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)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/651070
or by email: xsl-list-unsub@lists.mulberrytech.com
--~--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic