[XSL-LIST Mailing List Archive Home]
Re: [xsl] Question about XSLTC
Subject: Re: [xsl] Question about XSLTC|
From: "Abel Braaksma (online)" <abel.online@xxxxxxxxx>
Date: Tue, 7 Aug 2007 00:51:07 +0200 (CEST)
> Recently we have decided to switch to using XSLTC, to improve the
> speed of our transforms. In other parts of our application, we
> have been able to use XSLTC without a problem.
I'm afraid I do not have an answer to your original inquiry, but if
speed is a matter for you, you may consider using XSLT 2.0 instead.
There have been scenarios where increase of speed was more then 20
fold (!). The best increase of speed is where you would otherwise
need recursive templates in XSLT 1.0 (i.e., string pattern
searching, certain calculations, string replacement etc).
Not to mention the speed you gain in the development and management
cycle. The size of a typical (what is typical...) XSLT 2.0
stylesheet is roughly 30% the size of an XSLT 1.0 stylesheet (of
course, largely depending on your structure).
A good XSLT 2.0 capable processor is Saxon 8.9 (non-SA version is
open source), both for .NET and Java. Others are Gestalt (open
source) and AltovaXML (proprietary, freeware).
There's one caveat though: once you start with XSLT 2.0 there's a
high probability chance that you fall in love with it!
-- Abel Braaksma