I am creating a schema that requires a date that corresponds to the end of a quarterly period (so YYYY-03-31, YYYY-06-30, YYYY-09-30, and YYYY-12-31).
<xs:element type="xs:date" name="FilingPeriod"/>
Is there a sensible way to accept these values in date format and restrict them to these specific but potentially infinite values (i.e., any year forever)? I imagine I could put some restrictions on a string field and validate that way, but that seems like a hack around using the proper date format.
XSD 1.1 with assertion on simple type:
Online XSD fiddle in XML workbench.