Hello Rob,
sorry, but Christian is currently on a well-deserved vacation so you will have to either wait or I (and maybe others) try as good as we can to help as well.
However, I didn't really get what you want to achieve. You say you want to get "positions of each node amongst its siblings", but in your query you access ancestors? Maybe you could give a small example with a small example data set and your expected output.
Cheers, Dirk
On 05/17/2016 03:51 PM, Rob Stapper wrote:
Hi Chistian,
In order to get some path to the element that is being processed I hoped that the following statement [ 1] would return a sequence of positions of each node amongst its siblings.
Unfortunately it only returns a bunch of: 1.
[ 1] $element/ancestor-or-self::* ! ./fn:position()
Should this work?
Is there some other ;-) clever way to retrieve a path to a random element that is being processed?
TIA for your reply,
Rob Stapper