As a reminder, the important parts of the IRC session today, of course subjectively compressed:
<Matze> Regarding 1864: when I said it is possible to convert it ( i meant converting it for my current project). At our company we heavily use Castor and (probably) not all of us will agree here.
<Matze> So a command line option, which turns the generation back to 0.9-1.0 days would be very appreciated, if there is no cleaner option.
<Matze> Still, I think, that it s a "common understanding", that an anonymous inner simpleType just belongs to its element. Disclaimer: it is long ago when I read the schema spec last time and I am not a lawyer 
<Matze> Where should the anonymous simpleType belong to, if not to its enclosing element?
<ralf> if i understand what werner wanted to offer in his comment to 1864 was that all anonymous generated class go into a default package
<ralf> it also sounds reasonable that they should be put in the same package as the enclosing element but i am not able to tell you if that is easy
<wguttmn> hi Matze
<wguttmn> yes, the offer is indeed to make all classes that represent the Java class that's generated as a result of an anon type for an unqualified element/attribute
<wguttmn> go into a configurable package, the default being the default package.
<wguttmn> in other words, a new command lineoption to source generator that will be exposed in the standard ways.
<wguttmn> having said that, if you happen to have multiple target namespaces 8as you would with imports, this still means that you will not be able to
<wguttmn> generated (locally) unqualified artefacts into separate packages.
<wguttmn> how does this read ß
<Matze> that would help me even if it is a repetition of the "package" entry in binding.xml
<Matze> of course we have imports with different target namespaces, but in our case, we do not generate imported schemas
<wguttmn> maybe there's a way of allowing things to be defined tehre as well .....
<wguttmn> as far as I remember, namespace to package mappings can be defined in three places:
<Matze> they are generated on their own: 1 schema -> 1 jar as a rule of thumb
<wguttmn> a) binding file
<wguttmn> b) catsorbuilder.properties
<wguttmn> c) through a setter on SourceGenerator.
<wguttmn> okay, looks like this will work for you and your environment.
<Matze> yes
<wguttmn> which makes me still wonder whether this si a valid enough approach in general.
<Matze> what do you think? is this use case uncommon, because i wonder that noone cried since November when it got introduced
<wguttmn> good question ... 
<wguttmn> I guess I will introduce this new way of specifying namespace to package mappings for unqualified artefacts and make it clear in the
<wguttmn> release notes as well as HTML docs what this means.
<wguttmn> and clean up any ambiguity as part of that job.
<wguttmn> and maybe read up on what the JAXB spec has got to say on this very subject ....
<Matze> So if you add the command line option, it just means that I can really start trying that version.
<wguttmn> i have gopt a(commercial) client of mine that seems to be thinking along the same lines(s)
<wguttmn> is there any other 'biggies' out there (bugs or missing features) that you'd like to see added/tackled ?
<Matze> Maybe. When I have the "anonymous simpleType" support, I will maybe come beyond source generation.
<Matze> Any plans, when you get this in?
<wguttmn> so if you happen to have a few minutes, please do not hesitate to join us here ,,,,
<wguttmn> I'll try for 1.1, but cann ot promise anything
<Matze> As soon as you have it, I will continue testing. Right now, just for trying a version, it would be too much work to convert all simpleTypes, for example.
If I may add a wish here: It would be nice to have support in the binding file for that (for the first step, command line option is absolutely enough), because then I have the important parts together, e.g.
<package>
<name>x.y.z</name>
<namespace>http://...</namespace>
</package>
<anonpackage>
<name>x.y.z.anon</name>
</anonpackage>
If there is only command line, then I have the package once in binding.xml and once in build environment where source generator is called.
Matthias, looking at the attribute definition below ...
<xs:attribute name="enumAttr" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="a"/>
<xs:enumeration value="b"/>
<xs:enumeration value="c"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
in the context of your XML schema (with attributeFormDefault set to 'unqualified'), I wonder what the resulting namespace of that anonymous simple type definition will be. My working assumption is that this anon type will not be associated with the target namespace of the schema; if that's the case, Castor works just fine. I guess I will have to verify that my assumption.