Book a Demo

Author Topic: XML XSD schema generation  (Read 2832 times)

jmandile

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I am an instance of the schema human.xsd!
    • View Profile
XML XSD schema generation
« on: December 03, 2004, 09:25:11 am »
Hi,

I am trying to generate my schema with the package set to stereotype=XSDschema, Tag anonymousType=true.

for the class Shape contains a complexType element Location.  I try to set the stereotype=XSDcomplexType, Tag anonymousType=false to override the package level tag.

I am able to get all contained elements as anonymousType=true or all anonymousType=false.

I am trying to get mixed.

This is the result I am trying to get. Note that Location is referenced.

Any suggestions?

<xs:element name="Shape" type="sat:Shape"/>
<xs:complexType name="Shape">
  <xs:sequence>
      <xs:element name="name" type="xs:string"/>
      <xs:element name="colors" type="sat:Color"/>
      <xs:element name="texture" type="sat:Texture"/>
      <xs:element name="location">
      <xs:complexType>
          <xs:sequence>
              <xs:element ref="sat:Location"/>
          </xs:sequence>
      </xs:complexType>
      </xs:element>
 </xs:sequence>
</xs:complexType>

Best Regards and thanks,
Jack
Jack