Saxonica.com

Converting the Result of a .NET Extension Function

This section explains how the value returned by a .NET extension function is converted to an XPath value.

The result type of the method is converted to an XPath value as follows.

In XSLT, the system function function-available(String name) returns true if there appears to be a method available with the right name. The function also has an optional second argument to test whether there is a method with the appropriate number of arguments. However, it is not possible to test whether the arguments are of appropriate types. If the function name is "new" it returns true so long as the class is not an abstract class or interface, and so long as it has at least one constructor.

Next