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.​IXsltContextVariable
Assembly: System.Xml.ReaderWriter
Provides an interface to a given variable that is defined in the style sheet during runtime execution.
Properties
bool
IsLocal
Gets a value indicating whether the variable is local.
bool
IsParam
Gets a value indicating whether the variable is an Extensible Stylesheet Language Transformations (XSLT) parameter. This can be a parameter to a style sheet or a template.
VariableType
Gets the <see cref="T:System.Xml.XPath.XPathResultType" /> representing the XML Path Language (XPath) type of the variable.
Methods
object
Evaluate​(XsltContext xsltContext)
Evaluates the variable at runtime and returns an object that represents the value of the variable.
Returns An <see cref="T:System.Object" /> representing the value of the variable. Possible return types include number, string, Boolean, document fragment, or node set.
xsltContext
An <see cref="T:System.Xml.Xsl.XsltContext" /> representing the execution context of the variable.