C
Chris
I have the following XML structure:
<NODE>
<ITEM>
<IMAGE>
<FILE></FILE>
<WIDTH></WIDTH>
</IMAGE>
</ITEM>
<ITEM>
<IMAGE>
<FILE></FILE>
<WIDTH></WIDTH>
</IMAGE>
</ITEM>
<ITEM> --> current node
<IMAGE>
<FILE></FILE>
<WIDTH></WIDTH>
</IMAGE>
</ITEM>
to get the syntax right. I image it is something like this:
<xsl:value-of select="sum(preceding-sibling::ONIMAGE/WIDTH)"/>
Can someone help me? It would be greatly appreciated.
Thanks!
<NODE>
<ITEM>
<IMAGE>
<FILE></FILE>
<WIDTH></WIDTH>
</IMAGE>
</ITEM>
<ITEM>
<IMAGE>
<FILE></FILE>
<WIDTH></WIDTH>
</IMAGE>
</ITEM>
<ITEM> --> current node
<IMAGE>
<FILE></FILE>
<WIDTH></WIDTH>
</IMAGE>
</ITEM>
that point. I have playing around with preceding-sibling but can't seemFrom the ITEM node level I need to sum up all the image widths up to
to get the syntax right. I image it is something like this:
<xsl:value-of select="sum(preceding-sibling::ONIMAGE/WIDTH)"/>
Can someone help me? It would be greatly appreciated.
Thanks!