XSD 1.0 doesn't support this feature (known as "co-occurrence constraints"). You can do it in XSD 1.1 using assertions. However, I'm sceptical whether this is a good design: the maximum number of students on each course looks to me like data, not metadata, and I'm not sure it really belongs in a schema.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|