Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Previous value in a for-each Previous value in a for-eachTo: NULL Date: 11/1/2004 3:18:00 PM Can someone explain why doing this writes a number one less than the current position. <xsl:value-of select="position()-1"/> Doing this will display a specific positions value <xsl:value-of select="/foo/bar[position()=3]/@attrib"/> But that this never returns a result <xsl:value-of select="/foo/bar[position()=position()-1]/@attrib"/> What I want to do here is look at the last record in a loop to see if I am at the end of a grouping (begininig of the next actually) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
