Non-global complex types permit names
Brought to you by:
pabigot
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.
Diff:
See github #6