Hi I am using an XLST to style an XML document .
In my xml document I have the code :
<TABLE id="4.1">
<ROW>
<CELL>Value entered</CELL>
<CELL>Message to Display</CELL>
</ROW>
<ROW>
<CELL>1</CELL>
<CELL>Happy First Birthday</CELL>
</ROW>
.....
The problem I have is that I want to make the first row in the table bold, because they are the headings . However I do not know how to only make the first row bold. Is there any way in the XLST of making the first instance bold and then the rest regular ??
Here is the code I am currently using in my XSLT:
<xsl:template match="TABLE">
<br/>
<br/>
<table border="1" align = "center">
<xsl:apply-templates select="ROW"/>
</table>
</xsl:template>
<xsl:template match="ROW">
<tr>
<xsl:apply-templates select="CELL"/>
</tr>
</xsl:template>
<xsl:template match="CELL">
<td align ="center" COLSPAN ="100">
<xsl:value-of select="self::node()"/>
</td>
</xsl:template>
Thank you
In my xml document I have the code :
<TABLE id="4.1">
<ROW>
<CELL>Value entered</CELL>
<CELL>Message to Display</CELL>
</ROW>
<ROW>
<CELL>1</CELL>
<CELL>Happy First Birthday</CELL>
</ROW>
.....
The problem I have is that I want to make the first row in the table bold, because they are the headings . However I do not know how to only make the first row bold. Is there any way in the XLST of making the first instance bold and then the rest regular ??
Here is the code I am currently using in my XSLT:
<xsl:template match="TABLE">
<br/>
<br/>
<table border="1" align = "center">
<xsl:apply-templates select="ROW"/>
</table>
</xsl:template>
<xsl:template match="ROW">
<tr>
<xsl:apply-templates select="CELL"/>
</tr>
</xsl:template>
<xsl:template match="CELL">
<td align ="center" COLSPAN ="100">
<xsl:value-of select="self::node()"/>
</td>
</xsl:template>
Thank you