Subject: RE: [xsl] how to populate drop down list From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx> Date: Fri, 22 Mar 2002 20:37:31 +0200 |
Hello! That's because you are creating select element for each answer element - children of question. Create only one and multiply options instead of select: <select> <xsl:for-each select="question/answer"> <option> <xsl:value-of select="@match"/> </option> </xsl:for-each> </select> --- Oleg Tkachenko, Multiconn International, Israel > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Uslu, > Cihan Y (MED) > Sent: Friday, March 22, 2002 8:09 PM > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: [xsl] how to populate drop down list > > > 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. > > > ----------- > <xsl:for-each select="./question/answer"> > <select> > <xsl:for-each select="@match"> > <option> > <xsl:value-of select="."/> > </option> > </xsl:for-each> > </select> > </xsl:for-each> > ---------- > > -------------- > <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-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to populate drop down, Ivan Rubin | Thread | Re: [xsl] how to populate drop down, Trevor Nash |
Re: [xsl] <br/> tags, xhtml output,, Wendell Piez | Date | RE: [xsl] FOP - what, where, when, , Peter Drivas |
Month |