Complete the following steps to modify the TR_horizontal.xsl style sheet to modify the XSL templates and JavaScript code to add a new StepID column to the right side of the report table. You can also copy and add the following code for each new column you want to add.

  1. Open the TR_horizontal.xsl file.
  2. Search for the CREATE_EXTRA_COLUMNS comment in the StartTable JavaScript function. Copy the following comment, paste the copy below the original, and uncomment the copy to add a new StepID column:

    "<td rowspan='2' valign='bottom' align='center' width='20%'><font size='1'><b>StepID</b></font></td>" +

    The StepID value is the heading of the new column. Modify this value to customize the column heading.
  3. Search for the INITIALIZE_NUMBER_OF_CUSTOM_COLUMNS comment and increment the value of the gNoOfCustomColumns variable by the number of columns you want to add. Because you are adding only the StepID column in this example, replace the 0 value with 1, which results in the following line of code: <xsl:variable name="gNoOfCustomColumns" select="1"/>
  4. Search for each instance of the ADD_COLUMN_DATA comment and the uncomment the following code:
    <td align="right">
        <xsl:value-of select="n1:Extension/ts:TSStepProperties/ts:StepId"/>
    </td>
    The expression "n1:Extension/ts:TSStepProperties/ts:StepId" specifies the XPath expression to obtain the step ID from the XML file. You must customize the XPath expression to match the data you want to add to the additional columns. Refer to the World Wide Web Consortium (W3C) website, located at www.w3.org, for more information about XPath.
  5. Repeat steps 2 through 4 to add additional columns.