G
gauravkg via DotNetMonster.com
Thanks to allof u how have given pain to see my problem
i have an xml file having this tructure
<specifications>
<row>
<heading>MegaPixels(Effective)</heading>
<data>6.0</data>
</row>
<row>
<heading>MegaPixels(Total)</heading>
<data>6.2</data>
</row>
</specifications>
the xslt file is this
<table class="spec_item_table">
<xsl:for-each select="specifications/row">
<tr class="spec_item_odd">
<td>
<xsl:value-of select="heading"></xsl:value-of>
</td>
<td>
<xsl:value-of select="data"></xsl:value-of>
</td>
</tr>
</xsl:for-each>
</table>
my problem is that for each row it should show different colors like
row1:grey color
row2.yellow
for that i used
<tr class="spec_item_odd">
bit it will have same for all the rows so i can achive this in xml .thanks
in advance
i have an xml file having this tructure
<specifications>
<row>
<heading>MegaPixels(Effective)</heading>
<data>6.0</data>
</row>
<row>
<heading>MegaPixels(Total)</heading>
<data>6.2</data>
</row>
</specifications>
the xslt file is this
<table class="spec_item_table">
<xsl:for-each select="specifications/row">
<tr class="spec_item_odd">
<td>
<xsl:value-of select="heading"></xsl:value-of>
</td>
<td>
<xsl:value-of select="data"></xsl:value-of>
</td>
</tr>
</xsl:for-each>
</table>
my problem is that for each row it should show different colors like
row1:grey color
row2.yellow
for that i used
<tr class="spec_item_odd">
bit it will have same for all the rows so i can achive this in xml .thanks
in advance