单项选择题

A.只有simpleType元素中可以使用restriction从其他类型继承。
B.只有complexType元素中可以使用restriction从其他类型继承。
C.只有simpleType的元素可以含有attribute。
D.只有complexType的元素可以含有attribute。