Re: [xsl] Streaming with XSLT version 3.0

Subject: Re: [xsl] Streaming with XSLT version 3.0
From: Olivier JEULIN <olivier.jeulin@xxxxxxxxx>
Date: Thu, 6 Mar 2014 15:34:38 +0100
2014-03-06 13:58 GMT+01:00 Terry Badger <terry_badger@xxxxxxxxx>:
> I have a 42 GB media and valid xml file as my source. I am using Oxygen 15.2
with Saxon ee I am using this stylesheet which as you can see I
turned off what I wanted to do to see if I could get to the end of the file.
After about 45 minutes it hits my memory limit and quits. Am I doing this
right or will I need to cut this elephant into pieces?
> Terry
> <xsl:stylesheet
> xmlns:xsl="";
> xmlns:xs="";
> xmlns="";
> xpath-default-namespace="";
> exclude-result-prefixes="#all"
> version="3.0">

I think you must add
<xsl:mode streamable="yes"/>

> <xsl:outputmethod="xml"/>
> <xsl:templatename="main">
> <xsl:streamhref="../source/enwiki.xml">
> <!--  <xsl:result-document href="../out/output-wiki-02.xml">
> <xsl:for-each select="mediawiki">

Current Thread