|
Subject: Re: [xsl] Insert <options> from XML From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 26 Nov 2003 11:45:40 GMT |
are you sure you want the same id on all your select elements? this
wouldn't be valid html, but anyway:
<xsl:template match="ROOM">
<select class="combo" name="QRoom" id="QRoom">
<xsl:for-each select="//*[position()<=@quantity]">
<option value="{position()}"><xsl:value-of select="position()"/></option>
</xsl:for-each>
</select>
</xsl:template>
David
--
http://www.dcarlisle.demon.co.uk/matthew
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Insert <options> from XML, Fran | Thread | [xsl] Build hierarchies, Steven Lloyd |
| Re: [xsl] on-fly xml will not be tr, David Carlisle | Date | Re: [xsl] XML grouping by attribute, nicolas . m |
| Month |