XML radio buttons

webmasterbeta

New Member
I have a problem in displaying the value of radio button in XSL.My code goes like:************XML************<test><radio1>True</radio1><radio2>False</radio2></test>***********XSL FILE***********<xsl:template match="/"><input type="radio" name="r1"><input type="radio" name="r2"><xsl:attribute name="checked"><xsl:value-of select="radio1"/><xsl:value-of select="radio2"/></xsl:attribute></input></input></xsl:template>The question is if the value of radio buttons is true/false it shod takethe value into the radio buttons.Any help appreciated
 
Back
Top