Check the definition as some xs:element nodes will not have inline type ...

...defintions and instead will use the @ref attribute.