summaryrefslogtreecommitdiff
path: root/xmlif/test/test.xml
blob: 97f14f2b357a4caebb09ea60bdfb2922d837b41b (plain)
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
Preamble
<!-- this is the test on the manual page -->
Always issue this text.
<?xmlif if condition='html'?>
Issue this text if 'condition=html' is given on the command line.
<?xmlif elif condition='pdf|ps'?>
Issue this text if 'condition=pdf' or 'condition=ps'
is given on the command line.
<?xmlif else?>
Otherwise issue this text.
<?xmlif fi?>
Always issue this text.
<!-- this ends the test on the manual page -->
<?xmlif if condition='foo'?>
Should display only if condition is foo
<?xmlif elif condition='baz'?>
Should display only if condition is baz
<?xmlif else?>
Should display only if condition is not foo and not baz
<?xmlif fi?>
<?xmlif if not condition='bar'?>
Should display only if condition is not bar
<?xmlif if cond2='on'?>
This should be displayed only when cond2 is on.
<?xmlif fi?>
<?xmlif else?>
Should display only if condition is bar
<?xmlif fi?>
Postamble.