NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying TR6_Horizontal.xsl file for a custom logo and dynamic text

Hello,

 

I am trying to add a logo and header to my report. I used the example from NI by uncommenting the code under ADD_HEADER_INFO and it works great but now the issue.

 

I want to use a value that I output into the XML file instead of the fixed string. I have verified the value in the XML.

 

I replaced the commented out NI code with the following:

                <!-- ADD_HEADER_INFO Section to add some header Text/Image to the entire report-->
                <!--img src='C:/Images/CompanyLogo.jpg'/>-->
                <!--span style="font-size:2.13em;color:#003366;">Computer Motherboard Test</span>-->
                <img src='C:/Images/CompanyLogo.jpg'/>
                <span style="font-size:1.60em;color:#003366;"><xsl:value-of select="tr:ResultSet/tr:TestType/tr:Number/@value"/></span>
                <br/>
 
I had previously printed out the XPATH in the header table and verified it is correct. If I copy those 3 lines of code and put them below the CREATE_UUTHEADER_INFO then the dynamic value for the string "Basic Regression Test" is displayed so that also verifies the XPATH into the XML file. This puts the logo and string after the UUT table and not before it so that doesn't help.
 
I use the same TestStand sequence file to run Smoke, Basic regression, Full Regression and a series of other types of tests based on data files read in by the sequence file. For this reason, I cannot hard code it but the data is in the data file read by the sequence.
 
When I run the sequence to generate the report, the logo prints as expected but the string is empty.
 
I have attached a ZIP file containing the generated HTML file, the generated XML file and the modified TR6_Horizontal.xsl file.
 
Any help would be greatly appreciated.
 
Thanks
Randy

 

0 Kudos
Message 1 of 1
(122 Views)