This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Option in form problem


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]