I wrote a little application that takes a XML and a XSL and generates another file (PDF or RTF).
The XSL for generating a PDF is not the same that the XSL used for generating a RTF.
The size of bith files is different (PDF has 7000 lines and 393Kb. RTF xsl file has 10000 lines and 818Kb).
Here is the code of my program:
When I execute the program for generating a PDF file, the execution for the (***) line is more or less of 750 miliseconds.
When I execute the program for generating a RTF file, the execution for the (***) line is more or less of 7 seconds. (10x more than for PDF)
Is there any reason for this to happen? Is there any way to avoid/correct the problem?
Note that besides this problem of performance, everything is oK. The files are generated correctly.