Hello to all,
I have defined the following xml schemas : ops.xsd that includes trf.xsd trf.xsd that includes ldc.xsd All the files are in the same directory (/home/nouvel/ProjetTI/src/test.xsd/) They all have the same targetNamespace, which is set to their public URL on the web http://www.irit.fr/~Alexandre.Nouvel/XML/test.xsd/ (this URL is valid and contains the actual files to build the classes from). When I launch Castor's sourceGen on ldc.xsd or trf.xsd, it correctly builds all the expected Java classes from these files. But when I try the command: sourceGen -i ops.xsd -dest .. I get the following exception : org.xml.sax.SAXException: Error reading include file 'ouvel/ProjetTI/src/test.xsd/ldc.xsd' at org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.<init>(IncludeUnmarshaller.java:142) at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:382) [snip] It seems that castor's method at org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.<init>(IncludeUnmarshaller.java:142) truncates a filename when this filename is a second-level included file. I don't understand why it truncates this filename at its begenning. I tried several path names, this does not seem to be related to the length of the file path. I also tried with targetNamespaces that were purely local (file:///home/nouvel/...) and got the same error. I'm really blocked by this problem, and couldn't find any turnaround (either by using an <xsd:import .../>). Oh, BTW, I'm using: Castor 0.9.3.9, JDK 1.3.0 SunSolaris 5.8 on an Ultra5 Any help will be very appreciated :) Best regards from France, -- [EMAIL PROTECTED] - http://www.bigfoot.com/~alexandre.nouvel _______________________________________________________________________ Les eMails commerciaux non sollicites | Unsollicited commercial eMails sont soumis a une taxe de 1000$US. | are subject to a US$1000 fee. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
