1 <?xml version="1.0" encoding="ISO-8859-1" ?>
3 If ref is present, then all of <complexType>, <simpleType>, <key>, <keyref>, <unique>,
4 nillable, default, fixed, form, block and type must be absent, i.e. only minOccurs, maxOccurs,
5 id are allowed in addition to ref, along with <annotation>.
8 <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo="http://foo">
10 <element name="bar" type="string"/>
16 <!-- The good ones. -->
17 <element ref="foo:bar" minOccurs="0"/>
18 <element ref="foo:bar" maxOccurs="0"/>
19 <element ref="foo:bar" id="myomy"/>
21 <!-- The bad ones. -->
22 <element ref="foo:bar">
24 <attribute name="bar" type="string"/>
28 <element ref="foo:bar">
30 <restriction base="string">
31 <maxLength value="20"/>
36 <element ref="foo:bar" type="string"/>
37 <element ref="foo:bar" nillable="true"/>
38 <element ref="foo:bar" default="Joni"/>
39 <element ref="foo:bar" fixed="Mitchel"/>
40 <element ref="foo:bar" form="unqualified"/>
41 <element ref="foo:bar" block="restriction"/>