You can do this using XSD 1.1's Conditional Type Assignment:
Do consider, however, an alternative design that's expressible in both XSD 1.1 and 1.0 that's generally preferable:
That is, rather than have a kind
attribute, use the element name to convey kind.