[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: SOLVED: Build a select list of nodes

Subject: AW: SOLVED: Build a select list of nodes
From: "Moore, Simon" <Simon.Moore@xxxxxxxxxx>
Date: Wed, 27 Nov 2002 08:31:59 +0100
xsl select list
Thanks Michael and Tom for the solution - 
My apologies for multiple postings asking the same question - I was
having problems confirming that my post had arrived.



-----Ursprüngliche Nachricht-----
Von: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
[mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx]
Gesendet am: Dienstag, 26. November 2002 11:03
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: RE:  Build a select list of nodes

Hi Simon

You problem is that you're trying to make the output HTML like it was text.
You've got a serialiser to look after that, all you need to do is create the
nodes.

Instead of this, 
>                         <xsl:text>&lt;OPTION VALUE = &quot;</xsl:text>
>                         <xsl:value-of select="name()" />
>                         <xsl:text>&quot;&gt;</xsl:text>
>                         <xsl:value-of select="name()" />
>                         <xsl:value-of select="$newline"/>

<OPTION VALUE="{name()}"><xsl:value-of select="name()"/></OPTION>

You can also use <xsl:element> and <xsl:attribute> to make the option
elements, but the above is quicker to type.

Regards,
Tom SW

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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.