[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Elements and functions available


Subject: Re: [xsl] Elements and functions available
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 22 Oct 2008 11:14:25 +0100

> That is going to depend upon the implementation.
> In Gestalt, function-available() is very cheap.

> Performance is always processor-dependent. If the argument to
> function-available is a literal, then Saxon is going to optimize away
> something like
>
> if (function-available('f:x')) then f:x() else ()
>
> at compile time either to a call on f:x() or to ().

thanks - nothing to worry about it seems...

I've never written or come across (I think...) a runtime created
argument to function-available() - are there any common examples /
uses or really is it pretty rare?




-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


Current Thread