|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] SAXON: out of memory
Hello,
I compiled the following stylesheet with SAXON, and when I tried to
apply it on a 2megs file it stoped with: out of memory.
Are there any solution for such a big file?
I wrote a small Java program to do the same, but with Propagator (and
Wanderer) it said the same. I "solved" the problem with using
Distributor, but it would be better for me to write stylesheets instead
of java. (I am not a computer programmer. :-(( )
Thanks in advance,
czinkos
------
<?xml version="1.0"?>
<!-- This SAXON-stylesheet generates an XML file-structure
for ShowUmilItem and ShowTOC -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:saxon="java:com.icl.saxon"
class="Generate" servlet="N">
<!-- +++++++++++++++++++++++++++++++++++++++++++++++ -->
<xsl:param-variable name="dir">UMIL</xsl:param-variable>
<xsl:variable name="fileseparator"
expr="system-property('file.separator')" />
<xsl:template match="/">
<xsl:output file="{$dir}{$fileseparator}index.html" format="HTML">
<html>
<head>
<title>STEP - XML + SAXON demo for UMIL</title>
</head>
<body bgcolor="#EAEAAD">
<br /><br />
<center>
<a
href="/saxon/ShowUmilTOC?source=http:///umil/index.xml">
Nice page, isn't it? Click here to begin!</a>
</center>
</body>
</html>
</xsl:output>
<xsl:output file="{$dir}{$fileseparator}index.xml" format="XML">
<umil>
<xsl:for-each select="//CIKK">
<cikk ref="{@ID}">
<cimszo>
<xsl:value-of select=".//CIMSZO"/>
</cimszo>
</cikk>
</xsl:for-each>
</umil>
</xsl:output>
<xsl:for-each select="//CIKK">
<xsl:output file="{$dir}{$fileseparator}{@ID}" format="XML">
<xsl:copy-of/>
</xsl:output>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








