Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSLT for-each get previous item [Thread Next] Re: XSLT for-each get previous itemTo: NULL Date: 2/6/2009 3:52:00 AM This did not occur to me.
Thanks, Martin.
On Feb 6, 4:33=A0pm, Martin Honnen <mahotr...@yahoo.de> wrote:
> DustWolf wrote:
> > I have been trying to do this with the position() function and have
> > come up with this:
>
> > =A0 =A0<xsl:for-each select=3D"/values/value">
> > =A0 =A0 <item last=3D"{/values/value[position()-1]}" current=3D"{.}" />
>
> =A0 =A0 =A0 =A0<item last=3D"{preceding-sibling::value[1]}"
>
> --
>
> =A0 =A0 =A0 =A0 Martin Honnen
> =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
