Message
end_date attribute if present must contain a valid date in YYYY-MM-DD format
end_date attribute if present must contain a valid date in YYYY-MM-DD format
This rule ASSERTS the following, raising an alert if FALSE:
not(@end_date) or (matches(@end_date, '^\d{4}-\d{2}-\d{2}$') and (@end_date castable
as xs:date))