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

Re: how to populate drop down list

Subject: Re: how to populate drop down list
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Fri, 22 Mar 2002 18:44:30 +0000
populate dropdown
><xsl:for-each select="./question/answer">
>     <select>
>	<xsl:for-each select="@match">
>	<option>
>       		<xsl:value-of select="."/>
>          	</option>
>	</xsl:for-each>
I think you mean:
<!-- the ./ is not needed, and the list covers the whole question -->
<xsl:for-each select="question">
             <!- now you want an option for each answer -->
	<xsl:for-each select="answer">
                          <!-- the option value is the match attribute
                                  from an answer -->
       		<xsl:value-of select="@match"/>

Trevor Nash
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

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

Current Thread


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.
First Name
Last Name
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.