Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Position() with Following-Sibling >Thread Next - Re: Position() with Following-Sibling Re: Position() with Following-SiblingTo: NULL Date: 8/5/2005 1:31:00 PM Tempore 15:20:19, die Friday 05 August 2005 AD, hinc in foro {microsoft.public.xsl} scripsit Roshawn Dawson <udrago@b...>:
> I can't seem to get the position() function to work with the
> following-sibling function. I've tried the following lines of code but
> none of them works:
The 'position()' function returns the context position of the context node. It does not accept an argument.
A possible solution could be:
count(following-sibling::Item[1]/preceding-sibling::*) + 1
But it's difficult to guess what you're really trying to do without a sample XML.
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
«Φιλήκοον ειναι μαλλον η φιλόλαλον» - Κλεόβουλος
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
