RE: Option in form problem

Subject: RE: Option in form problem
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Mon, 8 May 2000 16:53:29 +0100
Larry Elder wrote:
> The output I get is  <Option selected="" />
> 
> What I want is the more robust... <Option selected />

Use <xsl:output method="html"/> as a child node of the <xsl:stylesheet>
node.

Then, in your <option> tag, put this:

<option selected="selected">

This will be converted in the output tree into <option selected> (as
required).

See the spec: http://www.w3.org/TR/xslt#section-HTML-Output-Method for a
more indepth discussion of <xsl:output> and what it does.

Ben


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread