You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by Ian Harrigan <ia...@hotmail.com> on 2009/06/22 00:58:11 UTC

Question about looping assignments

Hi All,

Im wondering if someone might be able to let me know how i can extract a numbered node based on a loop of some kind. Essentially im wanting to so something like:

request.payload/ns:items/ns:item[$counter]/@someValue

The $counter variable will get incremented in the loop, however, i get an XPath compilation error, im assuming this is possible but maybe im just attempting to perform it in the wrong way

Any help/pointers would be great...

Thanks
Ian Harrigan