Not in XSD 1.0. In 1.1 (you can try it out with Saxon-SA 9.1) you can write assertions, for example
<xs:assert test="coursecode != '' or location eq 8.2"/>
<xs:assert test="signupdate ge current-dateTime() or totalpayment = amount - 100"/>
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|