|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Radio Button Values
With
<xsl:template match="/path/to/yourElement"> <xsl:variable name="rowid"><xsl:number count="/path/to/yourElement" level="any" format="1"/></xsl:variable> <input type="radio" name="Primary" value="{$rowid}" onClick="clearTheOld('P')"/> <input type="radio" name="Secondary" value="{$rowid}" onClick=clearTheOld('S')"/> <br/> </xsl:template> you should get something like this: <input type="radio" name="Primary" value="1" onClick="clearTheOld('P')"/>
<input type="radio" name="Secondary" value="1" onClick=clearTheOld('S')"/>
<br/>
<input type="radio" name="Primary" value="2" onClick="clearTheOld('P')"/>
<input type="radio" name="Secondary" value="2" onClick=clearTheOld('S')"/>
<br/>
<input type="radio" name="Primary" value="3" onClick="clearTheOld('P')"/>
<input type="radio" name="Secondary" value="3" onClick=clearTheOld('S')"/>
<br/>If you want the variable to start with value="11", you will have to use value="{$rowid + 10}" instead of value="{$rowid}" Regards, Jannis Thorr Giddings schrieb: I have my xml data source and what I end up with is a list of lets say 3-10 elements. For each element in the list there are two radio buttons, they form two columns as they go down the list. My question is, how do I set unique values to each row of radio buttons. Here is what I kind of what I want to see in HTML:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








