-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.xml
More file actions
74 lines (74 loc) · 1.26 KB
/
loop.xml
File metadata and controls
74 lines (74 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<Root>
Hello.
<Template Name="T1">
<!-- Loop with an increment larger than one to verify that the loop
ends even if the limit is not reached exactly.
-->
<Loop>
<Setup>
<Param>FOO</Param>
<From>12</From>
<Inc>2</Inc>
<To>15</To>
</Setup>
<Do>
<Foo_#FOO#>#FOO#</Foo_#FOO#>
</Do>
</Loop>
<!-- Loop that is not executed even once -->
<Loop>
<Setup>
<Param>IX</Param>
<From>1</From>
<Inc>1</Inc>
<While>
<Lower>
<Value>IX</Value>
<Number>1</Number>
</Lower>
</While>
</Setup>
<Do>
<WRONG>#IX#</WRONG>
</Do>
<Then>
<CORRECT>#IX#</CORRECT>
</Then>
</Loop>
</Template>
<Template Name="T2">
<!-- Loop downwards -->
<Loop>
<Setup>
<Param>BAR</Param>
<From>4</From>
<Inc>-1</Inc>
<To>-1</To>
</Setup>
<Do>
<Bar>#BAR#</Bar>
</Do>
</Loop>
</Template>
<UseTemplate Name="T1"/>
<UseTemplate Name="T2"/>
<SHOULDBEEMPTY>#FOO#</SHOULDBEEMPTY>
<Loop>
<Setup>
<Param>I</Param>
<From>1</From>
<Inc>1</Inc>
<While>
<Lower>
<Value>I</Value>
<Number>5</Number>
</Lower>
</While>
</Setup>
<Do>
<I>#I#</I>
</Do>
</Loop>
<SHOULDBEEMPTY>#I#</SHOULDBEEMPTY>
Bye.
</Root>