[
Lists Home |
Date Index |
Thread Index
]
- From: Matrix 01 <thematrix01@email.com>
- To: xml-dev@lists.xml.org
- Date: Mon, 20 Nov 2000 11:03:14 -0500 (EST)
I am having trouble defaulting the checkbox to "checked"
Here is the XML:
<CHECKBOX NAME="checkbox" VALUE="TEST" DEFAULT="checked"/>
Here is the xsl:
<xsl:element name="input">
<xsl:attribute name="type">checkbox</xsl:attribute> <xsl:attribute
name="name"><xsl:value-of
select="@NAME"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of
select="@VALUE"/></xsl:attribute>
<xsl:value-of select="@DEFAULT"/>
</xsl:element>
I get:
<input type="checkbox" name="checkbox" value="TEST1">
checked
</input>
but I would like the "checked" inside the brackets:
<input type="checkbox" name="name" value="TEST" checked>
Is there any way of specifying this?
-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com
|