I have to create one table using XSLT and CSS. The table should look like
enter code here ID FNAME
1 AA
2 BB
XML:
enter code here <students>
<studentDetails id="1" fname="AA"/>
<studentDetails id="2" fname="BB"/>
</students>
XSLT so far: I have traverse upto studentDetails and then
enter code here <td >
<xsl:call-template name="zz">
<xsl:with-param name="child-name" select="'id'"/>
</xsl:call-template>
</td>
<xsl:template name="zz">
<xsl:param name="child-name"/>
<xsl:value-of select="*[name(@id) = $child-name]"/>//should print 1 and then 2 in next row
Can somebody suggest where i am going wrong?