You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Anton Voskobovich <an...@gmail.com> on 2010/07/06 10:04:44 UTC

processing multiple schema with dependencies

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