XML Script logo
The _while command
Code
<_data ><Tree type="ash" />
<Tree type="ash" />
<Tree type="ash" />
<Tree type="ash" />
</_data>
# \.type := 1 #
<_while test="\.type" >
<_foreach element="Tree" >
# \.type := 0 #
ash</_foreach></_while>
Output

ash

ash

ash

ash
Ref

x.7302

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited