Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run an XSLT transformation on TeamCity

Tags:

teamcity

xslt

Is there any built-in way to run an XSLT transformation on TeamCity? Preferably, as a build step. As I have not found anything in the docs so far, I'm not too confident about that feature, however, maybe somebody already integrated an XSLT transformation in the past.

like image 288
D.R. Avatar asked Jan 10 '23 02:01

D.R.


1 Answers

No, teamcity doesn't have an XSLT trasform runner. However you could use below powershell script to transform.

$xslt = new-object system.xml.xsl.xslcompiledtransform
$xslt.load('D:\SampleTransform.xsl')
$xslt.Transform('D:\Input.xml', 'D:\Output.xml')
like image 133
Mohammad Nadeem Avatar answered Jan 25 '23 01:01

Mohammad Nadeem