OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Putting default values inside elements

[ 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
<xsl:attribute name="value"><xsl:value-of
<xsl:value-of select="@DEFAULT"/>

I get:

<input type="checkbox" name="checkbox" value="TEST1">

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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS