XTiSP on the Web  Index  Search  Changes  RSS  Login

'before' - 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
Querying 'before'
 

Halt to querying: 'before'

XTiSP provides an extended notation of XPath for efficient querying. We write

`xpath1` before `xpath2`

to query elements which satisfy xpath1, which do not satisfy xpath2 and which do not follow an element satisfying xpath2. A future version of XTiSP may support the automatic insertion of 'before' notation using the schema information of inputs. Suppose that the input XML is r_and_j.xml by Jon Bosak. An XTiSP program

<HTML> [
 <HEAD> [ `PLAY/TITLE` before `PLAY/FM` ];
 <BODY> [ 
   <PRE> [ `PLAY/FM` before `PLAY/PERSONAE` ]
 ]
]

returns the same result as the example for XPath querying. This program is more efficient than that because it can output </HEAD><BODY> on reading <FM> which is a child of PLAY element.

Last modified:2006/06/11 00:36:31
Keyword(s):
References:[TabTree]