Subject:FOR loop for Drop Down box in XSL Author:chandra sekhar Date:28 Nov 2006 01:38 AM
hi
here my xml code is like this
<devicelist>
<device>
<title>Diskette Drive A:</title>
<position>1</position>
<position>2</position>
<position>3</position>
<position>4</position>
<position>5</position>
</device>
<device>
<title>IDE CD ROM Device</title>
<position>1</position>
<position>2</position>
<position>3</position>
<position>4</position>
<position>5</position>
</device>
<device>
<title>Hard Drive</title>
<position>1</position>
<position>2</position>
<position>3</position>
<position>4</position>
<position>5</position>
</device>
</devicelist>
like this i have five devices. so i want to display in one row like
device name and corresponding dropdown box. Each dropdown box should contain 1,2,3,4,5 values.
wat should i write in xsl file.
here i have some xsl code
<xsl:for-each select="devicelist/device">
<tr>
<td>
<xsl:value-of select="title" />
</td>