NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Transform XML reports using .NET - Anybody has an XSL stylesheet

Does anybody have a stylesheet that can be used to transform TestStand XML reports into HTML using the .NET framework (System.xml)?

The provided stylesheet (C:\Users\Public\Documents\National Instruments\TestStand 2019 (32-bit)\Components\Models\TestStandModels\StyleSheets\horizontal.xsl) only works with MSXML.

0 Kudos
Message 1 of 3
(1,023 Views)

I've noted a similar problem with TestStand 2021. We've long used XslCompiledTransform.Transform() to generate HTML reports from the XML reports. After migrating from TS2014 to 2021 this fails with a "function expected" error.

 

The original TR5_report.xsl stylesheet from TS2014 continues to work with a 2021-generated XML report.

 

I note that in TS 2021, there is a Generate HTML feature built-in that works well. I'm not sure if that is available in TS2019. If not, perhaps consider using an older stylesheet.

brinko99_0-1671057111880.png

 

0 Kudos
Message 2 of 3
(950 Views)

Is it like this?

I just saw this problem. This is a simple conversion tool I wrote last year. It can display the conversion results in real time and output html files synchronously.

The exported file can be opened directly using the browser.

Download All
0 Kudos
Message 3 of 3
(770 Views)