Re: [xsl] xsl:script: functions written in XSLT

Subject: Re: [xsl] xsl:script: functions written in XSLT
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Tue, 09 Jan 2001 12:32:43 +0000

Jeni Tennison wrote:
[snip: proposal that XSLT 1.1 permit functions to be defined in XSLT]
> Any comments?
I'm strongly in favour, not only for the reasons mentioned but also for
performance - the interesting article at describes how
performance improved 115% by replacing eval expressions with XSLT or
XPath expressions. In our own tests removing a single eval from an
MSXML3 stylesheet gave a 15% performance improvement.

Obviously you can't avoid call-outs to external systems, but the ability
to provide missing string, date and numeric functions as pure XSLT
"include" libraries would be really useful, and would give the language
a convenient evolution space.

A little bit of syntax sugar could go a long way here to keeping XSLT
code compact, portable, maintainable and performant.


 XSL-List info and archive:

Current Thread