Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: get current position as parameter get current position as parameterTo: NULL Date: 9/9/2006 2:40:00 PM I have this situation: <xsl:for-each select="../../ReturnList/Return" > xsl:sort="sum(../../OutwardList/Outward[$pos]/Price/Amount|../../ReturnList/Return[position()]/Price/Amount|$prezzo_gruppo)" order="ascending" data/type="number" /><br/> </xsl:for-each> but the sum is not right becouse the position value is not understanded from xpath... I check it by a comparing: <xsl:for-each select="../../ReturnList/Return" > <xsl:variable name="posrt" select="position()" /> <xsl:value-of select="sum(../../OutwardList/Outward[$pos]/Price/Amount|../../ReturnList/Return[$posrt]/Price/Amount|$prezzo_gruppo)" /><br/> <xsl:value-of select="sum(../../OutwardList/Outward[$pos]/Price/Amount|../../ReturnList/Return[position()]/Price/Amount|$prezzo_gruppo)" /><br/> </xsl:for-each> Wich is the right way to get the "position()" value in this case without using a variable? | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
