XsltArgumentList.AddParam is often demonstrated like this:
xslArg = new XsltArgumentList();
xslArg.AddParam("param-name", string.Empty, "param-value");
Does anyone have an example of an XSL where it is relevant to specify anything other than an empty string as the namespaceUri (the second argument)?
The namespaceUri argument is described like this in the documentation: "The namespace URI to associate with the parameter. To use the default namespace, specify an empty string."
That parameter is just for namespacing your own parameters. For example, you might define an xslt like this:
In code, in order to pass the parameter for
myVariable
, you have to add the namespace URI to theXsltArgumentList.AddParam
call.