
October 13th, 2003, 09:55 AM
|
|
Junior Member
|
|
Join Date: Oct 2003
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Help!! Counting Positions And Nodes!! :(
Hey all!
I've gota question regarding representing data in XSLTs.
Basically I've got an XML file full of data. The data is arranged by qustnsequenceno, qustnname and answername.
now basically ive got a table to draw to represent the data but the xml file sometimes has multiple questions i.e. different questnsequenceno will have the same qustnname but a different answername.
<xsl:for-each select="xyz">
<tr>
<td><xsl:value-of select='"qustnsequenceno"/></td>
<td><xsl:value-of select='"answername"/></td>
</tr>
</xsl:for-each>
is what i currently have and it displays all qustnnames and the corresponding answers but in the case of when different questions have the same name but different answers it repeats the same name.
is there any way of checking the previous qustnname and comparing it to the current and if they match then priting out a blank <td></td> but still show the answername in the corresponding <td></td>
any ideas?? please help!
thanks! 
|