Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Xml.​Xsl.​IXsltContextFunction

Assembly: System.Xml.ReaderWriter

Provides an interface to a given function defined in the Extensible Stylesheet Language for Transformations (XSLT) style sheet during runtime execution.

Properties

Gets the supplied XML Path Language (XPath) types for the function's argument list. This information can be used to discover the signature of the function which allows you to differentiate between overloaded functions.
int
Maxargs
Gets the maximum number of arguments for the function. This enables the user to differentiate between overloaded functions.
int
Minargs
Gets the minimum number of arguments for the function. This enables the user to differentiate between overloaded functions.
Gets the <see cref="T:System.Xml.XPath.XPathResultType" /> representing the XPath type returned by the function.

Methods

object
Invoke​(XsltContext xsltContext, object[] args, XPath.​XPathNavigator docContext)
Provides the method to invoke the function with the given arguments in the given context.
Returns An <see cref="T:System.Object" /> representing the return value of the function.
xsltContext The XSLT context for the function call.
args The arguments of the function call. Each argument is an element in the array.
docContext The context node for the function call.