Saxon API for .NET

XPathCompiler.DeclareVariable Method 

Declare a variable for use by the XPath expression. If the expression refers to any variables, then they must be declared here.

public void DeclareVariable(
   QName name
);

Parameters

name
The name of the variable, as a QName

See Also

XPathCompiler Class | Saxon.Api Namespace