Hi all,
I’m running out of time on this project I am working
on and so I am hoping someone can help me again:
I’m trying to set an instance’s value to be the
position of the choice node where special = true in my main instance.
The xpath expression to find that particular node is
instance(‘my-instance’)/setup[os=’windows’]/choices/choice[special=’true’].
Only one node per OS will have special=’true’.
Can someone please tell me the correct syntax to get the
position of that node? I’ve tried many combinations but none seem
to work.
Doing “string(count(../preceding-sibling::choice[special=’true’])+1)”
doesn’t seem to work as there are multiple OSes in this setup and I need
the one that is for windows specifically (in this case).
Thanks!
Stephanie
Free forum by Nabble | Edit this page |