Looping trough multi-pal nodes with text fields in XSLT
I need to loop through multipal nodes that have text field, to output into
a tabel.
this is the XML:
<upload-notification>
<delay-message-list>
<delay-message>Could not get Health Number from Card Number =
null</delay-message>
<delay-message>In order to qualify for the Vitalitydrive Integrator,
</delay-message>
</delay-message-list>
This is what I have tried:
<table width="800" align="left" class="normalFont"
style="table-layout:fixed" border="1">
<col width="10%">
<col width="90%">
<tr bgcolor="lightgrey">
<td align="left" bgcolor="lightgrey"
width="800">
please note:
</td>
</tr>
<xsl:for-each
select="/upload-notification/delay-message-list">
<tr>
<td>
1
</td>
<td>
<xsl:value-of
select="//delay-message"/>
</td>
</tr>
</xsl:for-each>
</col>
</col>
</table>
<br/>
</td>
</tr>
</table>
So far it only it only displays the one field in the table.
No comments:
Post a Comment