Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XSLT for-each get previous item >Thread Next - Re: XSLT for-each get previous item Re: XSLT for-each get previous itemTo: NULL Date: 2/6/2009 12:34:00 PM DustWolf wrote:
> I have been trying to do this with the position() function and have
> come up with this:
>
> <xsl:for-each select="/values/value">
> <item last="{/values/value[position()-1]}" current="{.}" />
<item last="{preceding-sibling::value[1]}"
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
