[xsd-users] xsd:include

Al Niessner Al.Niessner at jpl.nasa.gov
Fri Jun 12 12:23:44 EDT 2009


On Fri, 2009-06-12 at 01:51 -0700, Boris Kolpackov wrote:
> Hi Al,
> 
> Al Niessner <Al.Niessner at jpl.nasa.gov> writes:

> > I tried --file-per-type but that did not do it either. It still crashed
> > when it hit an unknown in b.xsd that was referencing a.xsd even though
> > a.xsd was included just before b.xsd.
> 
> In the file-per-type mode you only compile the "top" schema, that is,
> the schema that includes all other schemas (d.xsd in your case). If
> that schema is complete then you shouldn't get any errors. See this
> article for more information:
> 
> http://www.codesynthesis.com/~boris/blog/2008/02/13/codesynthesis-xsd-3-1-0-released/
> 
> If you are still getting errors while compiling your d.xsd with the
> --file-per-type option, then I will need to take a look at your
> schemas or a test case that reproduces the problem.
> 
> Boris

When I type the compile command correctly (I was compiling the wrong
schema previously), it all works just fine with the -file-per-type
option. It all compiles and runs without any changes.

Thanks for your help.

-- 
Al Niessner
818.354.0859

--------
|  dS  | >= 0
--------




More information about the xsd-users mailing list