JATS-0031-016

Rule Overview

Message

end_date attribute if present must contain a valid date in YYYY-MM-DD format

Rule XPath:

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))

Contexts