Re: [xsl] How define the property "checked" in radio box with xsl?

Subject: Re: [xsl] How define the property "checked" in radio box with xsl?
From: saigo@xxxxxxxxxxxxx (Evgenia Firsova)
Date: 20 Nov 2002 17:30:26 +0300 (MSK)
Hello,

>								<xsl:if test="status='checked'">
><!-- WHAT I HAVE TO PUT HERE?!?!?!-->								
>								</xsl:if>								
><input type="radio" name="tiporetorno" checked/>
>The problem is: How I create that?! It can't be an attribute! It's only a 
property. Can you help me?


You need to do this:
<xsl:attribute name="checked">
	checked
</xsl:attribute>
The result is <input type="radio" name="tiporetorno" checked="checked"/> 
which every browser understands.


-- 
 Yours sincerely, Evgenia Firsova (saigo@xxxxxxxxxxxxx)
 ---------------------------------------------------
 NEVA Travel Company    http://www.nevatravel.ru/  
 Russia, St.Petersburg, 1st. Sovetskaya str. 8
 fax +7 (812) 327-3267  phone +7 (812) 277-4212


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread