| 1 |
<testSuite> |
| 2 |
<testCase> |
| 3 |
<correct> |
| 4 |
<constraints xmlns="http://www.thaiopensource.com/validate/picl"> |
| 5 |
<constraint key=".//@id" ref=".//@idref"/> |
| 6 |
</constraints> |
| 7 |
</correct> |
| 8 |
<valid> |
| 9 |
<doc> |
| 10 |
<foo idref="morestuff" id="stuff"/> |
| 11 |
<bar id="morestuff"/> |
| 12 |
<baz idref="stuff"/> |
| 13 |
</doc> |
| 14 |
</valid> |
| 15 |
<invalid> |
| 16 |
<doc> |
| 17 |
<foo id="stuff"/> |
| 18 |
<bar id="stuff"/> |
| 19 |
</doc> |
| 20 |
</invalid> |
| 21 |
<invalid> |
| 22 |
<doc> |
| 23 |
<foo id="stuff"/> |
| 24 |
<bar idref="morestuff"/> |
| 25 |
</doc> |
| 26 |
</invalid> |
| 27 |
</testCase> |
| 28 |
<testCase> |
| 29 |
<correct> |
| 30 |
<constraints xmlns="http://www.thaiopensource.com/validate/picl"> |
| 31 |
<constraint key="foo/bar" ref="foo/baz"/> |
| 32 |
</constraints> |
| 33 |
</correct> |
| 34 |
<valid> |
| 35 |
<x/> |
| 36 |
</valid> |
| 37 |
<valid> |
| 38 |
<foo> |
| 39 |
<baz>forward</baz> |
| 40 |
<bar>xyzzy</bar> |
| 41 |
<bar>forward</bar> |
| 42 |
<baz>xyzzy</baz> |
| 43 |
</foo> |
| 44 |
</valid> |
| 45 |
<invalid> |
| 46 |
<foo> |
| 47 |
<baz>forward</baz> |
| 48 |
<bar>xyzzy</bar> |
| 49 |
<bar>forward</bar> |
| 50 |
<baz>xyzy</baz> |
| 51 |
</foo> |
| 52 |
</invalid> |
| 53 |
</testCase> |
| 54 |
</testSuite> |