Subject:[Context] variable Author:Oleg Tudor Date:03 Feb 2009 01:27 PM
I am sorry, I thik I was not clear enough.
What I am tying to is to check on the [Context] variable, and if my condition is met to do something.
The problem I have is that I am trying to do something different on nodes of the same type based on their relative position with eachother. Basically on the first node I want to do something different than on the second node of the same type and so on. I need to check on the position of that type of node relative to eachother. Debugging my stylesheet I just noticed that [Context] variable does exactly what I was needed, therefore I am trying to check on its value so I can make my decisions.
For this sample code I am interested in the <task> node. As you can see I have 4 <task> nodes. On the second <task> node I want to perform a different action than on the third <task> node.