Book a Demo

Author Topic: XSD - inheritance  (Read 2882 times)

reinmh

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
XSD - inheritance
« on: August 24, 2006, 01:17:23 am »
I imported the SID (shared information and data model) XSD-Model into EA. This model consists of 7 individual xsd-files. For example complex-types in model A inherit from a complex-type in model B.

Now if i want to create an object-diagram creating instances of these complex-types and setting the run state (defining a run-time value) the inherited elements do not appear.

Example:

Model A (SIDBusinessViewService.xsd)
Code: [Select]

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:SIDBusCm="http://www.tmforum.org/NGOSS/SID/Business/3.1/Common">
<xs:import schemaLocation="SIDBusinessViewCommon.xsd"
namespace="http://www.tmforum.org/NGOSS/SID/Business/3.1/Common"/>

<xs:complexType name="ServiceOrder">
 <xs:complexContent>
   <xs:extension base="SIDBusCm:BusinessInteraction">
     <xs:sequence>...</xs:sequence>
   </xs:extension>
 </xs:complexContent>
</xs:complexType>


Model B (SIDBusinessViewCommon.xsd)
Code: [Select]

<xs:complexType name="BusinessInteraction" abstract="true">
 <xs:sequence>
   <xs:element name="ID" minOccurs="0" type="xs:string"/>
 </xs:sequence>
</xs:complexType>


In my object-diagram i drag an instance of the ServiceOrder to the diagram and want so set a runtime-value of the element ID.