Most of the stylesheets that I use are from 15KB - 34KB, so I wouldn't call 10KB large. The complexity usually goes with the depth of xsl:apply-templates and xsl:call-template structures.
The size of the input file seems to be the issue, but it seems the effect is possibly polynomial (28 KB at 4 min vs 15 KB at 1 minute - a third data point would be helpful). If a lot of cross-referencing of the input document is occuring, then the process can increase super-linearly, that is to say, exponentially or factorially. Since you say Saxon ultimately hangs as well, I'd suggest you analyze the process complexity of your transformation. Malia Zaheer wrote: > I tried to use Saxon, but got the same results... it just hangs... I think > this is caused by the fact that the xsl > is complex and large (10kb) AND the input XML is large. If I try with input > xml of 28kb, I get output after 4 > minutes. Around 15kb, I get output after waiting for a minute for the > processor to finish. So, it's not a stylesheet > bug, it's just that Xalan is too slow. I have to deal with xml file that are > more than 1MB, so xalan's performance is > critical for me. What can be done about this problem?
