Hello All,

I am trying to generate my source from a schema that includes another schema 
using <xs:include />. The problem is that the original schema is getting 
generated, then the include statement is triggering the schema to get generated 
again.

This would not be such a big deal, but when the second pass on the schema tries 
to generate the class again, the generator pompts for overwriting the first 
generation of the class. If I tried to make this part of our continuous build 
system, it would fall flat on it's face. Is there a way to automate my response 
and log the warning?

I noticed Wolfgang Haug was having this same problem in 2005. I guess my 
question is this; is the only workaround still to move all schema rules into 
one file or is there a flag that can allow the generator to ignore includes 
like there is for ignoring imports? All of my schemas will be local to the 
project and probably all in one directory.

I don't like the idea of making this all one schema, since I will be trying to 
validate at least a dozen separate xml document types. The includes were being 
split out in order to share node validation between the doc types. I guess I 
could take these common fragments and put them into one file with a separate 
namespace, but that just seems wrong for some reason (I cannot put my finger on 
why yet).

Thanks
Kurt


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

    http://xircles.codehaus.org/manage_email


Reply via email to