Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Determine total with xslt when parameter is used Determine total with xslt when parameter is usedTo: NULL Date: 5/10/2006 1:53:00 AM
I same problem as Felix Natter had in 2000 but cannot find an answer.
This is an exerpt from his topic:
<xsl:template match = "/">
<html>
<head><title>Trips</title></head>
<body>
<table>
<thead>
<tr><th>Destination</th><th>Distance</th></tr>
</thead>
<tbody>
<xsl:apply-templates select = "//trips"/>
</tbody>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="//trips">
<xsl:for-each select="./trip">
<tr>
<xsl:variable name="dest" select="@dest"/>
<td><xsl:value-of select="//address[@id=$dest]/@name"/></td>
<td><xsl:value-of select="//address[@id=$dest]/@distance"/></td>
</tr>
<tr>
<td>Total distance:</td>
<td>????</td>
</tr>
</xsl:for-each>
</xsl:template>
I need to calculate the total....
Please help.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
