To jest część mojego schematu XMLxsd: Jak przedłużyć typ z nieuporządkowanej liście elementów
<xs:complexType name="Friend">
<xs:all>
<xs:element name="name" type="xs:string" />
<xs:element name="phone" type="xs:string" />
<xs:element name="address" type="xs:string" />
</xs:all>
</xs:complexType>
<xs:complexType name="Coworker">
<xs:all>
<xs:element name="name" type="xs:string" />
<xs:element name="phone" type="xs:string" />
<xs:element name="office" type="xs:string" />
</xs:all>
</xs:complexType>
Dla lepszej konserwacji, chciałbym mieć wspólne atrybuty w (streszczenie) super typ czy coś takiego. Ale co ważniejsze, chcę, aby wszystkie elementy były nieuporządkowane, a także opcjonalne.
Czy to możliwe i jaki jest najlepszy sposób na zrobienie tego?
Obawiałem się, że tak będzie. Tak (1) tak będzie. – Cephalopod