Daniel Veillard | 8839938 | 2004-06-04 09:29:37 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1" ?> |
| 2 | <!-- 3.2.3 : 3 |
| 3 | type and either <simpleType> or <complexType> are mutually exclusive |
| 4 | --> |
| 5 | <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo="http://foo"> |
| 6 | |
| 7 | <element name="foo" type="foo:someType"> |
| 8 | <complexType> |
| 9 | <sequence> |
| 10 | <element name="bar" type="string"/> |
| 11 | </sequence> |
| 12 | </complexType> |
| 13 | </element> |
| 14 | |
| 15 | <element name="bar" type="foo:someType"> |
| 16 | <simpleType> |
| 17 | <restriction base="string"> |
| 18 | <maxLength value="20"/> |
| 19 | </restriction> |
| 20 | </simpleType> |
| 21 | </element> |
| 22 | |
| 23 | <complexType name="someType"> |
| 24 | <sequence> |
| 25 | <element name="bar" type="string"/> |
| 26 | </sequence> |
| 27 | </complexType> |
| 28 | |
| 29 | </schema> |