Rendering HTML Elements and New Line Characters in an XML Report
- Updated2025-07-23
- 2 minute(s) read
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.
- Open the .xsl file you want to change.
- Search for the Customization variables comment.
- 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:
report.xsl
The following figure shows the modified report using report.xsl:
expand.xsl
The following figure shows the modified report using expand.xsl: