Generating a Listbox

admin

Administrator
Staff member
Hi. I'm having trouble building a list box from an XML string. Here is thecode:<?xml version='1.0'?><xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:template match="/"><html><form name="form" action="testing.asp" method="POST"><table><tr><td colspan="2" class="Label" height="23"><div align="right"><span class="Error">*</span>1ST HEAT TYPE: </div></td><td colspan="3" class="Detail" height="23"><select name="lstGIRPH" class="Detail"><option><xsl:attribute name="value"><xsl:value-of select="hlfro8_rating/girph"/></xsl:attribute><xsl:attribute name="selected">selected</xsl:attribute><xsl:value-of select="hlfro8_rating/girph"/> </option><option><xsl:for-each select="heatsources"><xsl:value-of select="heatsourced"/></xsl:for-each></option></select></td></tr></table>I have 20 options in the XML file but the XSL is only showing one optionin the listbox!Help!Elisabeth
 
Back
Top