Subject: RE: [xsl] how to use variable as "checked" in checkbox From: "Aniceto" <aniceto@xxxxxxxxxxxxx> Date: Wed, 10 Jul 2002 18:21:23 +0200 |
this is what I do hope helps yo <input type="checkbox" name="speaker" value="1"> <xsl:if test="@checked='yes'"> <xsl:attribute name="checked">checked</xsl:attribute> </xsl:if> </input> ani lopez www.lamundial.net -----Mensaje original----- De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de Ming Enviado el: miercoles, 10 de julio de 2002 17:52 Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Asunto: [xsl] how to use variable as "checked" in checkbox Hi, I'm trying to display a checkbox in my stylesheet. <input name="marks" checked type="checkbox" onClick= ... /> But as for the "checked" part, I am using a variable to do the job. It returned string contained either "checked" or " ". <xsl:variable name="checked"> <xsl:value-of select="xslfunction:getCheckedValue()"/> </xsl:variable> So, what I've done is: <input name="marks" "{$checked}" type="checkbox" onClick= .../> but obviously I am not doing it right. Can you help me on this? Thanks a lot in advance. Ming XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to use variable as "c, Mike Brown | Thread | Re: [xsl] how to use variable as "c, Ming |
Re: [xsl] how to use variable as "c, Mike Brown | Date | Re: [xsl] how to use variable as "c, Charles Knell |
Month |