| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- Extends an attribute-only complexType with a simple content --> |
| 3 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 4 |
|
| 5 |
<xs:element name="value" type="int-node"/> |
| 6 |
|
| 7 |
<xs:complexType name="node-type" mixed="true"> |
| 8 |
<xs:attribute name="choice" type="xs:string"/> |
| 9 |
</xs:complexType> |
| 10 |
|
| 11 |
<xs:complexType name="int-node"> |
| 12 |
<xs:simpleContent> |
| 13 |
<xs:restriction base="node-type"> |
| 14 |
<xs:simpleType> |
| 15 |
<xs:restriction base="xs:int"/> |
| 16 |
</xs:simpleType> |
| 17 |
</xs:restriction> |
| 18 |
</xs:simpleContent> |
| 19 |
</xs:complexType> |
| 20 |
|
| 21 |
</xs:schema> |