<xsl:for-each
select="/CommandList/CheckRouting/RouterList/Router[Complete='true']//GroupList/Group/OutwardList/Outward"
>
<xsl:variable name="root"
select="/CommandList/CheckRouting/RouterList/Router[Complete='true']/GroupList/Group/ReturnList/Return"
/>
<xsl:variable name="totale">
<xsl:choose>
<xsl:when test="Price/Amount">
<xsl:value-of select="number(Price/Amount) +
number($root/Price/Amount)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="//Group/Price/Amount/text()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
</xsl:for-each>
the problem is :
number($root/Price/Amount)
display always the same (first) value
I dont know how get the relative value of OutwardList/Outward with the
ReturnList/Return ones.
Perhaps using ancestor or some axes... ?
you could find the document here...
www.lastminutesud.it/test/901968736.xml
Thanks a lot.