Message

A date must be formatted YYYY-MM-DD.

Context
cbc:IssueDate | cbc:BirthDate | cbc:Date
Test
(normalize-space(text()) castable as xs:date) and string-length(normalize-space(text())) = 10