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 item Re: XSLT for-each get previous itemTo: NULL Date: 2/7/2009 8:42:00 AM Hi,
On 6 feb., 12:33, 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]}"
This does not work for me (I'm getting blanks). My nodes are actually
in another namespace, could this be the problem (e.g.: "data:value",
not "value")? Where do I add the namespace?
Thanks.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
