对不起,XML模式无法做到这一点.
Sorry, XML Schema can't do that.
一些类似的问题:
- can the length of two xml lists be defined as being required to be equal?
- Restrict Element Values Based on Attribute
- How to use attribute value as a discriminator for XML polymorphic type selection?
- How to Validate in XSD the xml node value against it’s neighbor xml node value