Nested type definitions.

Hello.

Do nested type definitions such as

<xs:element name="foo">
 <xs:complexType>
  <xs:attribute ...>...</xs:attribute>
 </xs:complexType>
</xs:element>

get added to the schema's {type definitions} property? Obviously, the lack
of a name makes it a bit difficult to resolve but what if it did have a
name?

<xs:element name="foo">
 <xs:complexType name="bar">
  <xs:attribute ...>...</xs:attribute>
 </xs:complexType>
</xs:element>

Is that legal or are nested type definitions required to be anonymous and
thus unsuitable for inclusion in {type definitions}?

Thanks,
Jason Diamond.

Received on Sunday, 29 October 2000 14:49:28 UTC