Re: Option in form problem

Subject: Re: Option in form problem
From: "Perry Molendijk" <p_molendijk@xxxxxxxxxxx>
Date: Thu, 11 May 2000 19:12:34 PDT

this should work:

<xsl:element name="option">
 <xsl:attribute name="selected">selected</xsl:attribute>

the resulting html is <option selected="selected"/> which browser will display just fine.


From: "Elder, Larry" <elder@xxxxxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: XSL-List@xxxxxxxxxxxxxxxx
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"/>

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:

________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at

XSL-List info and archive:

Current Thread