[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how to use variable as "checked" in checkbox

Subject: how to use variable as "checked" in checkbox
From: Ming <myu@xxxxxxxx>
Date: Wed, 10 Jul 2002 09:52:18 -0600
xsl checked 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.