If you're prepared to explore the bleeding edge, Saxon-EE 9.2 has an extension that allows you to define reformatting to be applied to an element or attribute before validation. So you could write an XPath expression that rearranges the components of the date into standard ISO order (yyyy-mm-dd), and then validates as an xs:date.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|