XTiSP on the Web  Index  Search  Changes  RSS  Login

visit - XTiSP/IV

[English / Japanese]
Top Download Documentation Support Link
Publication XTiSP/PD XTiSP/IV XTiSP/AG
Installation Usage Tutorial Example
Basic Notion Element Non-Element XPath Iteration
invite visit
 

Partial Modification

A visit expression is used as the form:

visit `xpath` do exp done

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]