How do you call Saxon? I assume that you run the java command each
time. This is very time-consuming because the VM has to load itself
with all the necessary classes each time.
What I would do would be to implement your transformation in a Servlet
within an open source container like Tomcat. Start the Servlet engine
once, and make sure your Servlet also caches the TrAX Templates object
if needed. Then call your Servlet (through an HTTP client that I am
sure is available to you within an ASP page) from your ASP page to
perform the transformation. This should yield excellent results.
Matias Hansen wrote:
> I'm using Saxon 7.6 with a 1 kb xml file, and a 1 kb xsl file.
> It parses perfectly, but it takes almost 5 seconds from the command prompt.
> I need to make an inter-connection between ASP and Saxon 7.6, because I need
> the support for XSLT 2.0.
> In MSXML, which is fully supported in ASP, it takes only 200ms for the whole
> operation. MSXML doesn't support XSLT2.0 tho.
> - Matias Hansen