Hi,
I have a simple requirement but solution looks not very easy.
I need to create a dropdown list with value as selected for the xml file I have.
I have a simple xml output like this:
<?xml version="1.0" ?>
<ROWSET>
<ROW num="1">
<PRODUCTNAME>LG Golden Eye 29 inch CTV</PRODUCTNAME>
</ROW>
<ROW num="2">
<PRODUCTNAME>Murphy 21 COLOR TV</PRODUCTNAME>
</ROW>
</ROWSET>
I want to create a drop down list for the productname using xsl.
My xsl looks like this:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl

utput method="html" indent="yes"/>
<xsl:template match="/">
<html>
<body bgcolor="#ffffff">
<table>
<tr>
<td>
<font color="#CC0000" size="+1">
<b> List of Products</b>
</font>
</td>
<FORM>
<td>
<SELECT NAME="P_PRODID">
<xsl:for-each select="/rowset/row">
<OPTION VALUE="{@productname}">
<xsl:value-of select="@productname"/>
</OPTION>
</xsl:for-each>
</SELECT>
</td>
</FORM>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I cannot see the value see the values in the drop down list. Please help me.
-raj