xsl-list
[Top] [All Lists]

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

2002-11-20 07:30:26
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(_at_)nevatravel(_dot_)ru)
 ---------------------------------------------------
 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