Using result.xsl

First, result.xsl adds the character set (charset) value to the *result.xml file to provide the correct interpretation of characters in text strings. This value is iso-8859-1 for English and German and shift-jis for Japanese.

<xsl:element name="META">
     <xsl:attribute name="HTTP-EQUIV">Content-Type</xsl:attribute>
     <xsl:attribute name="content">text/html;charset=<xsl:value-of select="//UIElement/@CHARSET" /></xsl:attribute>
</xsl:element> 

The values of the attributes for each button and label element on the user interface are changed using the xsl: for-each select construct.

    <xsl:for-each select=".//LABEL">
    <TD><xsl:attribute name="TITLE"><xsl:value-of select="@VALUE" /></xsl:attribute>
      <LABEL >
            <xsl:attribute name="ID"><xsl:value-of select="@ID" /></xsl:attribute>
             <xsl:attribute name="NAME"><xsl:value-of select="@NAME" /></xsl:attribute>
             <xsl:attribute name="VALUE"> <xsl:value-of select="@VALUE" /></xsl:attribute>
          <xsl:value-of select="@TEXT"/> 
          <xsl:if test="context()[not(end())]">:
          </xsl:if>

     </LABEL>
    </TD>
   </xsl:for-each>