This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Option in form problem
- To: xsl-list at mulberrytech dot com
- Subject: Re: Option in form problem
- From: "Perry Molendijk" <p_molendijk at hotmail dot com>
- Date: Thu, 11 May 2000 19:12:34 PDT
- Reply-To: xsl-list at mulberrytech dot com
this should work:
<xsl:element name="option">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:element>
the resulting html is <option selected="selected"/> which browser will
display just fine.
Perry
>From: "Elder, Larry" <elder@purchasingcenter.com>
>Reply-To: xsl-list@mulberrytech.com
>To: XSL-List@mulberrytech.com
>Subject: Option in form problem
>Date: Mon, 8 May 2000 11:12:12 -0400
>
>I'm trying to create a blank line in a drop down list. The list is inside a
>form, obviously.
>
>What I'm using, and works BTW, is...
>
><xsl:element name="OPTION">
> <xsl:attribute name="SELECTED"/>
> </xsl:element>
>
>The output I get is
>
><Option selected="" />
>
>
>What I want is the more robust...
>
><Option selected />
>
>Ideas, please.
>
>Larry Elder
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list