|
19 | 19 |
|
20 | 20 | <complexType name="namedType">
|
21 | 21 | <choice>
|
22 |
| - <element name="sequence" type="asnx:container"/> |
| 22 | + <element name="element" type="asnx:element"/> |
| 23 | + <element name="type" type="asnx:type"> |
| 24 | + </element> |
23 | 25 | </choice>
|
24 | 26 | <attribute name="name" type="NCName"/>
|
25 | 27 | </complexType>
|
| 28 | + |
| 29 | + <complexType name="type"> |
| 30 | + <choice> |
| 31 | + <element name="sequence" type="asnx:container"/> |
| 32 | + <element name="enumerated" type="asnx:enumerated"/> |
| 33 | + </choice> |
| 34 | + </complexType> |
| 35 | + |
| 36 | + <complexType name="enumerated"> |
| 37 | + <sequence> |
| 38 | + <element name="enumeration" maxOccurs="unbounded"> |
| 39 | + <complexType> |
| 40 | + <attribute name="name" type="NCName"/> |
| 41 | + <attribute name="number" type="integer"/> |
| 42 | + </complexType> |
| 43 | + </element> |
| 44 | + </sequence> |
| 45 | + </complexType> |
| 46 | + |
26 | 47 | <complexType name="container">
|
27 | 48 | <choice maxOccurs="unbounded">
|
28 | 49 | <element name="element" type="asnx:element"/>
|
29 | 50 | </choice>
|
30 | 51 | </complexType>
|
31 | 52 |
|
32 | 53 | <complexType name="element">
|
| 54 | + <choice> |
| 55 | + <element name="type" type="asnx:type"/> |
| 56 | + </choice> |
33 | 57 | <attribute name="name" type="NCName"/>
|
34 |
| - <attribute name="type" type="asnx:type"/> |
| 58 | + <attribute name="type"> |
| 59 | + <simpleType> |
| 60 | + <restriction base="string"> |
| 61 | + <enumeration value="asnx:UTF8String"/> |
| 62 | + <enumeration value="asnx:INTEGER"/> |
| 63 | + <enumeration value="asnx:BOOLEAN"/> |
| 64 | + <enumeration value="asnx:OCTET-STRING"/> |
| 65 | + <enumeration value="asnx:UTCTime"/> |
| 66 | + </restriction> |
| 67 | + </simpleType> |
| 68 | + </attribute> |
35 | 69 | <attribute ref="ethereum:type"/>
|
36 | 70 | <attribute ref="ethereum:indexed"/>
|
37 | 71 | </complexType>
|
38 |
| - |
39 |
| - <simpleType name="type"> |
40 |
| - <restriction base="string"> |
41 |
| - <enumeration value="asnx:UTF8String"/> |
42 |
| - <enumeration value="asnx:INTEGER"/> |
43 |
| - <enumeration value="asnx:BOOLEAN"/> |
44 |
| - <enumeration value="asnx:OCTET-STRING"/> |
45 |
| - </restriction> |
46 |
| - </simpleType> |
47 | 72 | </schema>
|
0 commit comments