xs:redefine [message #596378] |
Wed, 14 September 2005 23:28 |
Eclipse User |
|
|
|
Originally posted by: abanerjee.vitria.com
Hi,
How can I resolve a redefined ComplexType so that it includes the elements
from redefined and original schema? The main schema attached below points
to the 2nd schema which redefines the 3rd schema. The
XSDComplexTypeDefintion corresponding to ClaimType points to the 2rd
schema. The content of the CompleType is instanceof XSDRedefine and I can
call redefine.getResolvedSchema() or redefine.getIncorporatedSchema() to
get the 3rd schema. What api can I use to get the contents of ClaimType
so that it includes the elements from schema 2 and schema 3.
Thanks in advance,
-Anindita.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="ClaimType.xsd"/>
<xsd:element name="Claim" type="ClaimType"/>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:redefine schemaLocation="../../../bom/Claim/ClaimType.xsd">
<xsd:complexType name="ClaimType">
<xsd:complexContent>
<xsd:extension base="ClaimType">
<xsd:sequence>
<xsd:element name="EncounterFlag" type="xsd:boolean" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:redefine>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="ClaimType">
<xsd:sequence>
<xsd:element name="AccidentCountryCode" type="xsd:string"
minOccurs="0"/>
<xsd:element name="AccidentDateTime" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="AccidentStateCode" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
|
|
|
Powered by
FUDForum. Page generated in 0.05193 seconds