<xsl:template name="position">
<select class="sys_text" name="position">
<option value="none">(select)</option>
<xsl:for-each select="root/position/item">
<option>
<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
<xsl:value-of select="@value"/>
</option>
</xsl:for-each>
</select>
</xsl:template>
This is the XSL what I need to do is pass the ID aswell as the value back to my ASP script. At the moment it passes the value only. I'm trying to extend someone's code who has left the company.
All help gratefully received. The template is of the form
ID Value where only Value is displayed in the select DRop Down List.
<select class="sys_text" name="position">
<option value="none">(select)</option>
<xsl:for-each select="root/position/item">
<option>
<xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
<xsl:value-of select="@value"/>
</option>
</xsl:for-each>
</select>
</xsl:template>
This is the XSL what I need to do is pass the ID aswell as the value back to my ASP script. At the moment it passes the value only. I'm trying to extend someone's code who has left the company.
All help gratefully received. The template is of the form
ID Value where only Value is displayed in the select DRop Down List.