xsl-list
[Top] [All Lists]

Re: Insert <options> from XML

2003-11-26 04:45:40

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()&lt;=(_at_)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



<Prev in Thread] Current Thread [Next in Thread>