Rendering HTML Elements and New Line Characters in an XML Report

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help

Complete the following steps to ensure a report renders HTML elements and new line characters using the horizontal.xsl, report.xsl, or expand.xsl files.

  1. Open the .xsl file you want to change.
  2. Search for the Customization variables comment.
  3. Search for the gDisplayNewLineAndHTMLElementInStringProperty variable and change the value of the select attribute from "false" to "true", which results in the following line of code:

    <xsl:variable name="gDisplayNewLineAndHTMLElementInStringProperty"select="true()"/>

For example, if you create a local string variable named StringContainingHTMLElementAndNewLine and specify Locals.StringContainingHTMLElementAndNewLine="<b>Hello\n\World</b>" in the TestStand expression, executing the sequence file generates a modified report.

horizontal.xsl

The following figure shows the modified report using horizontal.xsl:

Modified Report Rendering HTML Elements Using the Horizontal.xsl file

report.xsl

The following figure shows the modified report using report.xsl:

Modified Report Rendering HTML Elements Using the Report.xsl file

expand.xsl

The following figure shows the modified report using expand.xsl:

Modified Report Rendering HTML Elements Using the Expand.xsl file

WAS THIS ARTICLE HELPFUL?

Not Helpful