Okay, ignore my last comment then .. ;-).

Werner

Bharat Kumar Meda wrote:
> I was using old version of the jar (castor-0.9.3-xml). Seems it doesn't
> support the inner xsds.
> 
> It is working fine with castor-1.1-xml.jar and castor-1.1-codegen.jar
> 
> Thanks & regards,
> Bharat
> 
> -----Original Message-----
> From: Bharat Kumar Meda 
> Sent: Thursday, February 22, 2007 4:57 PM
> To: '[email protected]'
> Subject: RE: [castor-user] Castor code generator: help regarding xsd
> with included xsds
> 
> Indeed Werner, all the schemalocations are relative.
> 
> My main xsd is Billing_Document.xsd and other xsds are relative to it.
> 
> The main xsd is having the below structure:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
> elementFormDefault="qualified" attributeFormDefault="unqualified">
>       <xs:include schemaLocation="Common/MessageHeader_Type.xsd"/>
>       <xs:include
> schemaLocation="Common/B/Billing_Account_ID_Type.xsd"/>
> --
> --
> --
> --
> 
> The error comes when it reaches Billing_Account_ID_Type.xsd.
> 
> When I remove the inner xsds or run the inner xsds separately, the
> source files are generated.
> 
> Earlier when the paths were wrong, I got the message as:
> unable to open XML schema file
> 
> Thanks & regards,
> Bharat
> 
> -----Original Message-----
> From: Werner Guttmann [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 22, 2007 4:43 PM
> To: [email protected]
> Subject: RE: [castor-user] Castor code generator: help regarding xsd
> with included xsds
> 
> Can I assume that you know that all values within a schemaLocation
> attribute ar erelative to the XMl schema that includes e.g. the one
> given below ? 
>  
> Werner
> 
> ________________________________
> 
>       From: Bharat Kumar Meda [mailto:[EMAIL PROTECTED] 
>       Sent: Donnerstag, 22. Februar 2007 11:00
>       To: [email protected]
>       Subject: [castor-user] Castor code generator: help regarding xsd
> with included xsds
>       
>       
>       Hi All,
>        
>       I am trying to use Castor's source code generator. When my xsd
> has other schema files included, I am getting 
>       The following error:
>       org.xml.sax.SAXException: Error reading include file
> 'ourceCode/castor/Common/B/Billing_Account_ID_Type.xsd'
>        
>       Could anyone let me know how to generate sources for complex
> xsds which include xsds?
>        
>       Thanks in advance,
>       Bharat
>       **************** CAUTION - Disclaimer *****************
>       This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION
> intended solely for the use of the addressee(s). If you are not the
> intended recipient, please notify the sender by e-mail and delete the
> original message. Further, you are not to copy, disclose, or distribute
> this e-mail or its contents to any other person and any such actions are
> unlawful. This e-mail may contain viruses. Infosys has taken every
> reasonable precaution to minimize this risk, but is not liable for any
> damage you may sustain as a result of any virus in this e-mail. You
> should carry out your own virus checks before opening the e-mail or
> attachment. Infosys reserves the right to monitor and review the content
> of all messages sent to or from this e-mail address. Messages sent to or
>>from this e-mail address may be stored on the Infosys e-mail system.
>       ***INFOSYS******** End of Disclaimer ********INFOSYS***
>               
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to