Simple question, but is the solution?
I have a typical C# Application that runs “new XslCompiledTransform.Transform(…);” I am passing it param arguments, all of type string.
I want to pass it a param that is of type array: strings, or even lets say an array of objects.
I am using C# I am being limited to XSL 1.0.
How am I able to preform this task, in a clean way to avoid writing unnecessary code in .NET?
XsltArgumentList.AddParam accepts the following types for the value:
So you can’t pass in an array, but you could construct an XML fragment with your values and pass it as XPathNavigator.
Example
The XML nodes constructed look like this: