![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Count preceding-sibling back to a specific node >Thread Next - Re: Count preceding-sibling back to a specific node Re: Count preceding-sibling back to a specific nodeTo: NULL Date: 3/4/2004 12:05:00 PM mikeT wrote:
> If I can identify a node by its id and I know that it is in the set of preceding-sibling of my context node can I count the number of preceding-sibling from the context node back to that node?
May be something like
count(
preceding-sibling::*[
not(
following-sibling::*[count(.|$node-where-stop)=1]
)
]
)
--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
