Greetings,
hi, I'm new in XSL. I need to generate a drop down
box in the HTML. I got the END_INDEX from the XML file
and the default start index is always 1 and increment
is +1.
My question is: how am I going to populate the drop
down box value in my XSL ? Can it be done? (i.e. using
maybe a for loop). I know there is a <xsl:for-each>
but is it suitable to use in this case?
Part of My XML file:
<END_INDEX>10</END_INDEX>
My XSL File:
<SELECT NAME="NUMBER">
??...
</SELECT>
Ideal Output:
<SELECT NAME="NUMBER">
<OPTION VALUE="1">1</OPTION>
<OPTION VALUE="2">2</OPTION>
<OPTION VALUE="3">3</OPTION>
<OPTION VALUE="4">4</OPTION>
<OPTION VALUE="5">5</OPTION>
<OPTION VALUE="6">6</OPTION>
<OPTION VALUE="7">7</OPTION>
<OPTION VALUE="8">8</OPTION>
<OPTION VALUE="9">9</OPTION>
<OPTION VALUE="10">10</OPTION>
</SELECT>
Any suggestion? TIA!
===
Regards,
June
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one place.
Yahoo! Shopping: http://shopping.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- For Loop in XSL
- Low Kiam Imm - Sun, 12 Dec 1999 23:29:30 -0800 (PST) <=
- <Possible follow-ups>
- Ben Robb - Mon, 13 Dec 1999 09:35:10 -0000
- Ben Robb - Mon, 13 Dec 1999 09:43:54 -0000
|
|