xsd不具备此项功能
cases like :
(a) validating Element depending on the value or presence of any other element/attribute
(b) validating value of an element depending on the value or presence of any other element/attribute
(c) validating attribute depending on the value or presence of any other element/attribute
(d) defining elements/attributes of same name having different Types/DataTypes under same scope
(e) validating child elements on the basis of value or presence of any other Elements/Attributes
all the above mentioned cases are not possible to achieve ..
http://stackoverflow.com/questions/4126988/restricting-xml-elements-based-on-another-element-via-xsd