Re: [XSLT 2.0] Extension functions, use-when and function-available()

>From: David Carlisle <davidc@nag.co.uk>

> > The implication is that it is because the functions are not in the 
>use-when
> > static context, then available-fumctions will return false.
>
>That's what you want isn't it?

No.

>available-functions when executed at compile time in the use-when.
>If your function _is_ in the context at run time the same call would
>return true then.
>
>use-when="if(function-available(x:foo)) then x:foo() else ....">
>
>shouldn't produce an unknown function error, so function-available has
>to return false if x:foo isn't available at compile time.

No.
The extension function is known to be available at use-when time (or not) 
according to the implementation, so you can test using system-property for 
this.

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters

Received on Tuesday, 26 September 2006 13:02:51 UTC