Open afayes opened 6 years ago
When I used an XML files that was 1.2 MB, the escape-string template threw a java.lang.StackOverflowError exception because of all the recursive calls.
Rather than do something like
`
</xsl:call-template>`
you can do something like:
<xsl:variable name="string" select="replace($string, '"',\"')"/> <xsl:variable name="string" select="replace($string, '	', '\t')"/> <xsl:variable name="string" select="replace($string, ' ','\n')"/> <xsl:variable name="string" select="replace($string, ' ', '\r')"/> <xsl:value-of select="$string"/> </xsl:template>`
When I used an XML files that was 1.2 MB, the escape-string template threw a java.lang.StackOverflowError exception because of all the recursive calls.
Rather than do something like
`
you can do something like:
`