[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

JAXB Schema problems with complexTypes

  • To: xml-dev@l...
  • Subject: JAXB Schema problems with complexTypes
  • From: Jim Beard <beard@c...>
  • Date: Mon, 16 Feb 2004 09:29:43 -0800

jaxb schema
Howdy all,

	I work with a company that is trying to use JAX-B generated code in a 
number of projects.  The most recent one involves a rather complex set 
of Schemas.  In these Schemas there are complexTypes defined using 
extension from other complexTypes.  Some of these complexTypes are 
based off of other complexTypes using restriction.  XmlSpy validates 
everything, as does a recent SAX parser.  However xjc spits out errors 
when I try to use JAX-B to generate code from the Schemas, and no code 
is generated.  The errors look like this:

[ERROR]  Base complex type is derived by restriction, while this 
complex type is derived by extension

	This problem occurs 5 or so times throughout the Schema.  We have a 
little bit of control over the Schema we are using ( though another 
company is mainly responsible for it ).  However we have no control 
over the base Schemas that this Schema uses in its namespace.
	I tried running with '-extension' and adding in the 
complexTypeSubstitution attributes, but still no luck.  Does anyone 
have any experience with this problem or any advice to offer?


Jim Beard
counterclaim.com, Inc
http://www.counterclaim.com
http://openefm.sourceforge.net
(800) 264-8145


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.