It returns an element corresponding the current node in which every node satisfying xpath is replaced with the result of exp after the current node is moved to the node. You can use before-notation in xpath.
Consider the following XTiSP program:
visit `.//TITLE` do
<NAME> [ { value() } ]
done
Suppose that the input XML is
<PLAY><TITLE>R and J</TITLE>
<SCENE><TITLE>Prologue</TITLE></SCENE></PLAY>
The XTiSP program above returns
<PLAY><NAME>R and J</NAME>
<SCENE><NAME>Prologue</NAME></SCENE></PLAY>
Last modified:2006/06/11 10:12:01
Keyword(s):
References:[TabTree]
Keyword(s):
References:[TabTree]