[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: Ivan Rubin <iayma@xxxxxxxxxxxx>
Date: Fri, 22 Mar 2002 15:24:08 -0300
populate dropdownlist name value
Uslu, Cihan Y (MED) wrote:

Hi,
How can I get drop down lists filled with all the match attributes for
each answer element?
I tried this xsl snippet, and I get same number of drop down list as
number of answers but the list has only one @match attribute instead of
all the attributes.


-----------

--------------
<question>
<stem> <para>Match each statement below with the best term.</para>
</stem>
<answer match="Systole" item-id="C"> <para></para></answer>
<answer match="Stenosis" item-id="D"> <para></para></answer>
<answer match="Collateral circulation" item-id="A"> <para></para></answer>
<answer match="Augmentation" item-id="E"> <para></para></answer>
<answer match="Arterial insufficiency" item-id="B"> <para></para></answer>
</question>
------------


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





<xsl:match pattern="question">
<!--here goes the question-->

<!--and a drop down with all the possible answers-->

<select>

<xsl:for-each answer>
<option>
<xsl:attribute name="value"><xsl:value-of select="@match"/></xsl:attribute>
<xsl:value-of select="@match"/>
</option>
</xsl:for-each>
</select>
</xsl:match pattern="question">


Hope it helps,


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.