Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to take union of elements inside two different complex types?

From: nandanprasad <pola_nandana@---.--->
To: xmlschema-dev@--.---
Date: 4/15/2007 8:05:00 PM

I've an xsd CIM_ManagedSystemElement.xsd in which the following is defined.

<xs:complexType name="CIM_ManagedSystemElement_Type">
        <xs:sequence>
            <xs:element ref="class:HealthState" minOccurs="0"/>
            <xs:element ref="class:InstallDate" minOccurs="0"/>
            <xs:element ref="class:Name" minOccurs="0"/>
            <xs:element ref="class:OperationalStatus" maxOccurs="unbounded"
minOccurs="0"/>
            <xs:element ref="class:Status" minOccurs="0"/>
            <xs:element ref="class:StatusDescriptions" maxOccurs="unbounded"
minOccurs="0"/>
            <xs:any namespace="##other" processContents="lax" minOccurs="0" 
                    maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:anyAttribute namespace="##any" processContent="lax"/>
    </xs:complexType>
     <xs:element name="CIM_ManagedSystemElement"
type="class:CIM_ManagedSystemElement_Type"/>

and another xsd named CIM_ManagedElement.xsd with the follwoing content:

<xs:complexType name="CIM_ManagedElement_Type">
        <xs:sequence>
            <xs:element ref="class:Caption" minOccurs="0"/>
            <xs:element ref="class:Description" minOccurs="0"/>
            <xs:element ref="class:ElementName" minOccurs="0"/>
            <xs:any namespace="##other" processContents="lax" minOccurs="0" 
                    maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:anyAttribute namespace="##any" processContents="lax"/>
    </xs:complexType>
<xs:element name="CIM_ManagedElement" type="class:CIM_ManagedElement_Type"/>

Now, I want to relate these two xsd's elements(as CIM_ManagedSystemElement
extends CIM_ManagedElement) inside a third xsd, called cls_hierarchy.xsd.
i.e CIM_ManagedSystemElement element must include the elements inside the
CIM_ManagedElement also.

How can I do this?? please help.

-- 
View this message in context: http://www.nabble.com/How-to-take-union-of-elements-inside-two-different-complex-types--tf3583517.html#a10013359
Sent from the w3.org - xmlschema-dev mailing list archive at Nabble.com.


From lists@n... Mon Apr 16 11:40:19 2007
Received: from wiggum.w3.org 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent