[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Streaming with XSLT version 3.0


Subject: [xsl] Streaming with XSLT version 3.0
From: Terry Badger <terry_badger@xxxxxxxxx>
Date: Thu, 6 Mar 2014 04:58:23 -0800 (PST)

I have a 42 GB media and valid xml file as my source. I am using Oxygen 15.2 with Saxon ee 9.5.1.3. 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="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.mediawiki.org/xml/export-0.8/"
xpath-default-namespace="http://www.mediawiki.org/xml/export-0.8/"
exclude-result-prefixes="#all"
version="3.0">
<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">
<xsl:element name="mediawiki">
<xsl:for-each select="page[position() &lt; 10]">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:element>
</xsl:for-each>
</xsl:result-document>-->
</xsl:stream>
</xsl:template> 
</xsl:stylesheet>


Current Thread
Keywords