NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Add a text block to header in horizontal.xsl

I am trying to add a text block to the horizontal.xsl header area using TestStand 3.5.  I tried using the example for report.xsl without sucess   I am looking for an example that I can learn from.
 
Respectfully,
cinsight
0 Kudos
Message 1 of 4
(3,583 Views)
Hi cinsight,
 
If you are trying to add the text block programatically, I highly recommend the following article that shows you exactly what you need to do:
Developer Zone Example: Modifying the XML Report Header Using Process Model Callbacks
 
Also, this article has some more general information that might help you understand the concepts better:
 
Hope this helps!
Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 4
(3,563 Views)

Jervin,

If the  Developer Zone Example: Modifying the XML Report Header Using Process Model Callbacks , the report.xsl file has a printed line that is searched for and the text-block is inserted in front of, while the horizontal.xsl does not seem to find the "Station ID" so I can insert the block text ahead of it.
 
This article (Developer Zone Tutorial: Report Generation Explained) describes how to put the data into a TestStand variable, but does not show how to put that TestStand variable into a *.xsl sheet.
 
Do you have an example of putting a text block into the horizontal.xsl header?
 
Thank you,
Robert (cinsight)
0 Kudos
Message 3 of 4
(3,551 Views)
Hi cinsight,
 
If you look at the description for the Developer Zone Example: Modifying the XML Report Header Using Process Model Callbacks, it specifies the changes made to the report.xsl file in order to insert the new block of text in the header:
  1. at line 1015, a line has been added to say to add in something into the layout above the SerialNumber in the report 
  2. at line 1171, the new template requested at line 1015 is described 
  3. at line 294, the function reqested in the template description at line 1181 is defined.

Where exactly do you need to add your text block? Because modifying the horizontal.xsl file exactly like the report.xsl file should let you insert the text before the SerialNumber.

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 4 of 4
(3,526 Views)