Result Node Navigation Examples
<xsl:template match="employees">
<xsl:for-each select="employee">
<tr><th><xsl:value-of select="name"/></th>
<td><xsl:value-of select="salary"/></td></tr>
</xsl:for-each>
</xsl:template>
- A selected name in the result
tree might be addressed as:
- ...
employees/result-node(#xsl:template[@match='employees'])/tr[n]/th
- ...
employees/employee[n]/name/result-node(#xsl:template[@match='employees']/xsl:for-each/tr/th/xsl:value-of)
- Not clear which is preferred or if a general solution
exists