Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: steve.capell on September 09, 2006, 04:44:34 pm

Title: XSD Schema Profile
Post by: steve.capell on September 09, 2006, 04:44:34 pm
I am wondering how to force Schema generation of elements within complex types to use global types rather than xsd references when using types from an imported module.  For example, EA generates:

<xs:complexType name="BCCResponse">
 <xs:sequence>
   <xs:element name="BatchResultsPending" type="xs:boolean"/>
       <xs:element name="StatusCode">
           <xs:complexType>
              <xs:sequence>    <xs:element ref="cdt:BatchComputerStatusCode"/>
</xs:sequence>
           </xs:complexType>
      </xs:element>
   </xs:sequence>
</xs:complexType>

But I want:

<xs:complexType name="BCCResponse">
 <xs:sequence>
   <xs:element name="BatchResultsPending" type="xs:boolean"/>
       <xs:element name="StatusCode"
type="cdt:BatchComputerStatusCode"/>
   </xs:sequence>
</xs:complexType>

Note that the type "cdt:BatchComputerStatusCode" is from another namespace and is a complex type definition in the imported module.