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

RE: radio button default

Subject: RE: radio button default
From: "Lee Barwick" <lee.barwick@xxxxxxxxxxxxxxx>
Date: Thu, 28 Sep 2000 09:15:10 +0100
radio button default
In my experience I've found that just specifiying a checked attribute
irrespective of it's value works (in IE4+ anyway).  For example:

<input type="radio" name="KeyActivity" value="1" checked="">

would created a 'checked' radio button.  Therefore if you modify your XSL as
something like...

yes<input type="radio" name="KeyActivity" value="1">
<xsl:if test="***Your decision goes here***">
	<xsl:attribute name="checked"/>
</xsl:if>
<xsl:attribute name="value">
	<xsl:apply-templates select="key-activity"/>
</xsl:attribute>
</input>

This will allow you to choose which radio is checked.  If it's always a
default then just add the attribute to the <input> element directly.

Hope this helps
Lee
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of D. Bennion
Sent: 27 September 2000 22:24
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: radio button default


I have searched for this topic everywhere and can't
find anything. Does anyone know how to set a radio
button to default in xsl/html?

Right now I have this:
yes<input type="radio" name="KeyActivity"
value="1"><xsl:attribute
name="value"><xsl:apply-templates
select="key-activity"/></xsl:attribute></input>
				No<input type="radio" name="KeyActivity"
value="0"><xsl:attribute
name="value"><xsl:apply-templates
select="key-activity"/></xsl:attribute></input></td>

I tried checked after value but it wouldn't process.
An error occurred.

Any ideas?


thanks.

dave



__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/


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



Why not log on and see just how our new factory
is coming along.  Point your browser to
www.metromail-buildingsite.co.uk

*******************************************************
The information contained in this e-mail and any
files transmitted with it are confidential and
intended for the addressee only.  If you have 
received this e-mail in error please notify the 
originator or telephone 0191 554 6262.

This e-mail and any attachments have been
scanned for viruses prior to leaving MetroMail
but MetroMail will not be liable for any losses as
a result of any viruses being passed on.

If this e-mail offends in any way please forward 
it to sysadmin@xxxxxxxxxxxxxxx

MetroMail Ltd, Palmer Road, SW Ind Est, Peterlee
www.metromail.co.uk
*******************************************************


 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.