JATS-0031-015

Rule Overview

Message

start_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(@start_date) or (matches(@start_date, '^\d{4}-\d{2}-\d{2}$') and (@start_date castable as xs:date))