Hi Wei, xsi-type support is currently limited in Castor as you noticed. You can use the following xsi-type="java:package.oneType", it might solve your problem.
Hope that helps, Arnaud > -----Original Message----- > From: Wei Chiang [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 8:35 AM > To: [EMAIL PROTECTED] > Subject: [castor-dev] name space in JavaNaming.java > > Hi, > > We use abstract type in our schema, and uses > xsi:type="nameSpace:oneType" in > the xml to substitute for the abstract type. And we use the > sourceGenerator > to generate classes from the xsds. > > We try to use the associate() method of the > ClassDescriptorResolverImpl > class to associate "nameSpacePrefix.oneType" with its descriptor. > The > resolve() method, I believe, uses JavaNaming.toJavaClassName() to > transform > nameSpace::oneType to a proper java class name. The comment in the > JavaNaming class indicates that name space is not yet supported. > > My questions are: > > -When the name space will be supported (by JavaNaming class)? > -Is there other ways to have the unmarshaller create a > nameSpacePrefix.oneType instance instead of the base class instance? > > Thanks, > Wei > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
