Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Redefine does give the resolved schema
Redefine does give the resolved schema [message #63260] Wed, 14 September 2005 23:09 Go to next message
Eclipse User
Originally posted by: abanerjee.vitria.com

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. How can I resolve
the ComplexType so that it includes the elements from schema 2 and schema
3.

Thanks,
-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>
Re: Redefine does give the resolved schema [message #63332 is a reply to message #63260] Thu, 15 September 2005 10:08 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Anindita,

I guess you hit send twice. ;-)


Anindita Banerjee wrote:

> 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. How can I
> resolve the ComplexType so that it includes the elements from schema 2
> and schema 3.
>
> Thanks,
> -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>
>
>
>
>
Re: Redefine does give the resolved schema [message #596398 is a reply to message #63260] Thu, 15 September 2005 10:08 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26131
Registered: July 2009
Senior Member
Anindita,

I guess you hit send twice. ;-)


Anindita Banerjee wrote:

> 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. How can I
> resolve the ComplexType so that it includes the elements from schema 2
> and schema 3.
>
> Thanks,
> -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>
>
>
>
>
Previous Topic:Redefine with extension does not pick up the
Next Topic:XSD serialization format
Goto Forum:
  


Current Time: Wed Oct 22 06:28:21 GMT 2014

Powered by FUDForum. Page generated in 0.02496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software