Maybe this will help you understand better. Here's the snipped from the xsl file:
Code:
<table border='1' width='100%'>
<col width="15%" />
<col width="35%" />
<col width="15%" />
<col width="35%" />
<xsl:for-each select ='NewDataSet/FACILITY_INFO'>
<tr>
<td>Facility Number</td><td><xsl:value-of select='FACILITY_NUMBER'/></td>
<td>Layer Name</td><td><xsl:value-of select ='LAYER_ID'/></td>
</tr>
<tr>
<td>Description</td><td><xsl:value-of select='FACILITY_DESC'/></td>
<td>Facility ID</td><td><xsl:value-of select ='SDS_ID'/></td>
</tr>
</xsl:for-each>
</table>
The value that reads 'LAYER_ID' is what I need to use to reference the 'map_layer' table to pull out the 'layer_name'. The layer_name is what actually needs to be displayed in that table cell.