forked from ewadkins/cda-schematron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.xml
80 lines (80 loc) · 1.5 KB
/
test.xml
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
75
76
77
78
79
80
<xml xmlns="urn:dh">
<!-- count of elements -->
<test root="A">
<element>true</element>
</test>
<test root="A">
<element>false</element>
<element>false</element>
</test>
<!-- attibute equivalence -->
<test root="B">
<element atttribute="ok">true</element>
</test>
<test root="B">
<element atttribute="notok">false</element>
</test>
<!-- child presence -->
<test root="C">
<element>
<child>true</child>
</element>
</test>
<test root="C">
<element>
<notchild>false</notchild>
</element>
</test>
<!-- conditional child presence -->
<test root="D">
<element attribute="needChild">
<child>true</child>
</element>
</test>
<test root="D">
<element attribute="needNoChild">true</element>
</test>
<test root="D">
<element attribute="needChild">false</element>
</test>
<!-- OR presence -->
<test root="E">
<element>
<firstChild>true</firstChild>
</element>
</test>
<test root="E">
<element>
<secondChild>true</secondChild>
</element>
</test>
<test root="E">
<element>
<notChild>false</notChild>
</element>
</test>
<!-- AND presence -->
<test root="F">
<element>
<firstChild>true</firstChild>
<secondChild>true</secondChild>
</element>
</test>
<test root="F">
<element>
<secondChild>false</secondChild>
</element>
</test>
<test root="F">
<element>
<notChild>false</notChild>
</element>
</test>
<!-- Element value -->
<test root="G">
<element>true</element>
</test>
<test root="G">
<element>false</element>
</test>
</xml>