A complex type that is internal to an element with global scope is allowed to have a name attribute, in violation of the constraints which make that attribute prohibited when used as a localComplexType.
fix #6: SF/192: non-global complex types permit names
Be aware this impacts generated code: in the past these invalid names
were used for the corresponding classes in the generated bindings. Now
those classes are CTD_ANON instances.