[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    processing multiple schema with dependencies
From:       Anton Voskobovich <anton.voskobovich () gmail ! com>
Date:       2010-07-06 8:04:44
Message-ID: AANLkTinbfLbsHFWgOXM5KzfagVM1J70AJzLkdIJx6zju () mail ! gmail ! com
[Download RAW message or body]

Hi,
 I have an question about this chapter in wiki.

"How do I compile multiple schema files with dependencies?

Schema files need to be compiled with its compiled dependencies on the
classpath. For example, if s4.xsd and s3.xsd depends on s2.xsd which
depends on s1.xsd, compile using the following:

scomp -out s1.jar s1.xsd
scomp -cp s1.jar -out s2.jar s2.xsd
..

Which result is expected for s2.jar contents ? Is it right that s2.jar
should contain generated files for s2.xsd types and doesn't include
any files for s1.xsd types? This technique should be working both for
includes and imports, isn't it ?

In my case, s2.jar contains all types (from s1.xsd and s2.xsd) and I
don't know how to solve this problem.

Another problem: compilation process for sources generated from s2.xsd
is broken:


"
public interface W4TApplBase extends org.apache.xmlbeans.XmlObject

                                                        ^

C:\Temp\xbean1053936815063480969.d\src\noNamespace\W4TApplBase.java:18:
package org.apache.xmlbeans does not exist

    public static final org.apache.xmlbeans.SchemaType type =
(org.apache.xmlbeans.SchemaType)

                                           ^

C:\Temp\xbean1053936815063480969.d\src\noNamespace\W4DRegNumber.java:16:
package org.apache.xmlbeans does not exist

public interface W4DRegNumber extends org.apache.xmlbeans.XmlString"


This could be easily fixed by providing path to xbean.jar in -cp
parameter, but it doesn't work by default.

Regards,
     Anton

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic