xml - dynamically iterate xsl value -
i have following xsl
code.
<xsl:for-each select="value"> <xsl:if test="../@field_value=@value"> <input type="radio" id="{$fname}{position()}" name="{$fname}" value="{@value}" /><xsl:value-of select="@value"/><br/> </xsl:if> </xsl:for-each>
what want show dynamic no of radio buttons values. there 3 values, loop running 3 times. printing 3 times last value. e.g. 3 values are:
- the code
- the alfa code
- the numeric code
each time run code, 3 radio buttons text the numeric code shown. how can show 3 different values 3 radio buttons?
you can provide condition radio button, , put each loop options of radio button xml:
<fieldtype>radio</fieldtype> <name>code<name> <option>the code</option> <option>the alfa code</option> <option>the numeric code</option>
now in xslt ,you can provide each loop <option>
tag input type radio, when encounters radio field type
Comments
Post a Comment