Creates a shape for ISO 8601 year values (YYYY).
Fixes the datatype to xsd:gYear and admits an optional timezone indicator (Z for UTC or a ±hh:mm offset bounded to the ±14:00 range).
xsd:gYear
Z
The stated constraints
Optional
Optional value constraints
An immutable shape admitting ISO 8601 years, narrowed to the values the constraints enumerate
TraceError Where the stated constraints contradict one another
XSD permits timezone indicators for gYear as a deviation from ISO 8601.
XSD 1.0 Part 2: Datatypes § 3.2.11 gYear
Creates a shape for ISO 8601 year values (YYYY).
Fixes the datatype to
xsd:gYearand admits an optional timezone indicator (Zfor UTC or a ±hh:mm offset bounded to the ±14:00 range).