Hi, Can somebody tell me whether there is a limitation in size of the xml file in xalan, if you wish to write out a recursive function, i have a xml about 9 mb, with the following format:
<cf> <orginial_file> <f> <p no="1"> <a> <ab>some text</ab> <ac>some text</ac> </a> <b>some text</b> <c>some text</c> </p> <p no="2"> <a> <ab>some text</ab> <ac>some text</ac> </a> <b>some text</b> <c>some text</c> </p> ... <p no="8000"> <a> <ab>some text</ab> <ac>some text</ac> </a> <b>some text</b> <c>some text</c> </p> </f> </original_file> <new_file> <f> .... like above </f> </new_file>
i have try and use the following template to process it: <xsl:template match="cf"> <xsl:call-template name="Document"> <xsl:with-param name="doc1" select="original_file/f/p"/> <xsl:with-param name="doc2" select="new_file/f/p"/> </xsl:call-template> </xsl:template>
<xsl:template name="Document">
<xsl:param name="doc1"/>
<xsl:param name="doc2"/>
<xsl:if test="count($doc2)">
<tr>
<td><xsl:apply-templates select="$doc1[1]"/></td>
<td><xsl:apply-templates select="$doc2[1]"/></td>
</tr>
<xsl:call-template name="Document">
<xsl:with-param name="doc1" select="$doc1[position()!=1]"/>
<xsl:with-param name="doc2" select="$doc2[position()!=1]"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template match="p">
<xsl:value-of select="a/ab">
</xsl:template>This template works fine as long as the xml file is relatively small, but when i use this for a larger file (~9mb) it prompt a message of "Unhandled Exception". so i was wondering, if this is a problem with my template or is there is a bug in xalan, thanks for your time. Many thanks regards Kit
_________________________________________________________________
使用 MSN Messenger,與朋友在線上聊天: http://messenger.microsoft.com/tc
