Well, the HTML 4.01 specs say the checked attribute is a boolean value, so
it should be set false or true.
Check the link I provided and you will agree.
About the short way, you may be right. I do remember having used 'selected'
without the true or false assignment in the <option> control. It may be very
well be valid also for the 'checked' attribute.
Cheers, Pieter
-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: Wednesday, March 17, 2004 10:42 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] xsl checkbox
the correct way to do this is
<input type="checkbox" name="name" checked="true" />
Cheers, Pieter
no, the value should be checked not true, the SGML shorthand
checked
is short for _any_ attribute declared in the dtd with value checked, it
isn't short for the checked attribute with some value.
--
http://www.dcarlisle.demon.co.uk/matthew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list