janani b | c27947a | 2016-10-19 01:17:40 +0530 | [diff] [blame] | 1 | module IdRefInTypeDef1 { |
2 | namespace "http://org/IdRefInTypeDef1"; | ||||
3 | prefix id-ref-in-type-1; | ||||
4 | |||||
5 | import IdRefInTypeDef2 { | ||||
6 | prefix id; | ||||
7 | } | ||||
8 | |||||
9 | identity id1 { | ||||
10 | description "base identity"; | ||||
11 | } | ||||
12 | |||||
13 | identity id2 { | ||||
14 | base id1; | ||||
15 | } | ||||
16 | |||||
17 | typedef forleaf3 { | ||||
18 | type identityref { | ||||
19 | base id2; | ||||
20 | } | ||||
21 | } | ||||
22 | |||||
23 | typedef forleaf2 { | ||||
24 | type forleaf3; | ||||
25 | } | ||||
26 | |||||
27 | typedef forleaf1 { | ||||
28 | type forleaf2; | ||||
29 | } | ||||
30 | |||||
31 | leaf leaf { | ||||
32 | type forleaf1; | ||||
33 | } | ||||
34 | |||||
35 | leaf-list leaf-list { | ||||
36 | type forleaf2; | ||||
37 | } | ||||
38 | |||||
39 | container cont { | ||||
40 | leaf leaf { | ||||
41 | type forleaf1; | ||||
42 | } | ||||
43 | |||||
44 | leaf leaf-list { | ||||
45 | type forleaf2; | ||||
46 | } | ||||
47 | } | ||||
48 | |||||
49 | leaf with-uni { | ||||
50 | type union { | ||||
51 | type identityref { | ||||
52 | base id2; | ||||
53 | } | ||||
54 | type id:value; | ||||
55 | } | ||||
56 | } | ||||
57 | } |