So if I am doing a search for the c var I want the total of the tag tags? Which would be 16. I would also like to divide it if it is possible. So get the total of 16 and divide by 2 to get 8.
[tt]<xsl:template match="home">
<xsl:value-of select="sum(//tag[preceding-sibling::var='c'])" />
</xsl:template>[/tt]
The rest, go figure out yourself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.