PyXB rejects restriction that changes element type
Brought to you by:
pabigot
See https://sourceforge.net/p/pyxb/discussion/956708/thread/ffc7f0fe/#cee0
The restriction changes the element type to a new type that is not related to the original type. This may or may not be valid; the XML Schema Validator accepts it, though, so we'll consider it a PyXB bug.
While PyXB would be correct in doing this if the restriction type were not related to the original type, in fact the restriction to xs:int given a base of xs:integer is valid, since xs:int is itself derived from xs:integer. PyXB does not correctly maintain this derivation information for built-in types.
Fixed in next branch in following commit.