Friday, December 4, 2015

Passing parameters/arguments to an XSL Style Sheet using C#

If you are using XSL Style Sheets in your C# code, you may eventually have a requirement to pass arguments to your XSL Style Sheets.

Fortunately, Microsoft has a solution allowing you to accomplish just that!

You can use the XsltArgumentList class and use the AddParam method to pass arguments to the your XslCompiledTransform Transform method.

You can read more about how to accomplish this here: https://msdn.microsoft.com/en-us/library/ms163439%28v=vs.110%29.aspx


No comments:

Post a Comment