How to find the position for next element in Xquery
ManiApr 16 2013 — edited Apr 29 2013Hi All,
I am looking for the how to find the position of next element in Xquery,My input (text)is like
aaa|test1.............test1value|
aaa| space1value|
aaa|test2.............test2value|
aaa| space2value|
I have to concat the value as "test1value space1value" one target element and "test2value space2value" to another target element that means second position value is starts with spaces ( space1value)I have to concat the number of spaces between values of position one and second position value(test1value space1value) like 3rd and 4th position also.
Regards
Mani