Friday, February 4, 2011

Doing XSLT transformations with non-standard msxsl:script elements.

I have just needed to transform XML using XSLT which included non-standard msxsl:script element. Even though my application is on .Net, it says it does not support it. Namely there was following exception:
System.Xml.Xsl.XsltException: Scripting language 'VBScript' is not supported.
In my case I needed to transform a file and the result was file as well. So the simplest solution was to use command line version of msxsl and call it from my application. The syntax is straight forward.
msxsl in.xml transformation.xsl -o out.xsl

Good enough for a prototype that I was doing. Unfortunately for Windows only :(

No comments:

Post a Comment