Hi All,

 

 

I am trying to transform a 572 MB input.xml using a transform.xsl on Sun Solaris system(having more than 10 GB memory) in which I have used below for-each-group three times:

 

<xsl:for-each-group select="School/student" group-by="name/tokenize(., ';\s*')">
  <xsl:sort select="current-grouping-key()"/>
  <name count="{count(current-group())}">
    <xsl:value-of select="current-grouping-key()"/>
  </name>
</xsl:for-each-group>

I am using saxon9.0.0.3 processor for same. I tried it with this command-

 

java -jar saxon/saxon9.jar -o  ./output_xml  ./input_xml  transform.xsl

 

and got following error:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

 

Now I tried the same with this command-

 

java –Xmx1024m -jar saxon/saxon9.jar -o ./output_xml  ./input_xml   transform.xsl

 

and again got the same error

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

 

Can I use any other command to resolve this error or Saxon cannot handle the 572 MB size of file? Is there any other processor which I can use?

 

Please help me.

 

Thanks,

Manish

 

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated..