1primary 2{ 3 namespace test 4 { 5 complex common-base: http://www.w3.org/2001/XMLSchema#string 6 { 7 } 8 complex base: test#common-base 9 { 10 } 11 enumeration one: test#base 12 { 13 <romance documentation> 14 enumerator romance 15 enumerator fiction 16 enumerator horror 17 } 18 enumeration two: test#common-base 19 { 20 enumerator horror 21 enumerator history 22 enumerator philosophy 23 } 24 enumeration three: http://www.w3.org/2001/XMLSchema#anyURI 25 { 26 enumerator foo 27 enumerator bar 28 } 29 enumeration union0: test#common-base 30 { 31 <romance documentation> 32 enumerator romance 33 enumerator fiction 34 enumerator horror 35 enumerator history 36 enumerator philosophy 37 } 38 <union1 documentation> 39 enumeration union1: test#common-base 40 { 41 <romance documentation> 42 enumerator romance 43 enumerator fiction 44 enumerator horror 45 enumerator history 46 enumerator philosophy 47 } 48 union union2 test#one test#union1 test#common-base 49 union union3 test#one test#three 50 complex complex1 51 { 52 element a 53 [1, 1] sequence 54 { 55 [1, 1] element a test#union1 56 } 57 } 58 complex complex2: test#union1 59 { 60 } 61 } 62} 63