how can i have 2 for-each loops in one

webmasterbeta

New Member
<table>
<tr>
<xsl:for-each select="record/field[@name='FirstName']">
<td>Name: <xsl:value-of select="."/></td>
</xsl:for-each>
</tr>
</table>


the code above finds all the firstnames from an xml file and displays them in an individual cell in a table.
does anyone know how i ca add the lastname directly underneath the firstname in the respective cell???
 
Back
Top