It seems like this is easy to do in XSLT 2.0 but Microsoft in its infinite wisdom doesn’t support XSLT 2.0 in Visual Studio 2005.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One option would be to do all the parsing and calculation in XSLT.
However, another option would be to extend XSLT with a custom script function in C#:
The script function will be compiled at runtime to a temporary assembly and then executed. However, be aware to cache your XSLT because every XSLT-compilation will create a new assembly which is only unloaded when your application exits.