improper references to namespace in namespace group
Brought to you by:
pabigot
When generating a binding for a namespace that imports the OpenGIS GML 3.2 namespace and creates a type referencing the gml:id attribute, the code generated for the corresponding attribute improperly references an identifier _Namespace_gml which is in the private module, rather than the gml_3_2.Namespace public reference.
The problem is that the name_expr for the attribute use is calculated and stored in the OpenGIS archive, and that name is not valid in other contexts. We really need two name_expr values: one within the module, and one for global reference.
Fixed in [8d0af3495665]: name_expr is no longer stored in the _NamedComponent_mixin _templateMap() field. It is recalculated at each point it is generated.
Not that anyone will remember to look here, but it's likely there are additional problems like this still present.