W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2006

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

From: Colin Adams <colinpauladams@hotmail.com>
Date: Tue, 26 Sep 2006 14:02:29 +0100
Message-ID: <BAY120-F1532240489028B298C9DCDDA250@phx.gbl>
To: davidc@nag.co.uk
Cc: public-qt-comments@w3.org

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

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


>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.

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 

Be the first to hear what's new at MSN - sign up to our free newsletters! 
Received on Tuesday, 26 September 2006 13:02:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:15 UTC