|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Putting default values inside elements
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








