You use a sequence
or choice
to add references to other elements:
<element name="extension">
<complexType>
<sequence minOccurs="1" maxOccurs="unbounded">
<element ref="detail"/>
</sequence>
...
</complexType>
</element>
<element name="detail">
....
</element>
The Definition tab looks like this: