<xsd:simpleType name="StringDateTimeType">
<xsd:annotation>
<xsd
ocumentation>YYYY-MM-DD hh:mm:ss</xsd
ocumentation>
</xsd:annotation>
<xsd:restriction base="xsd
ateTime">
<xsd:minLength value="19"/>
<xsd:maxLength value="19"/>
<xsd
attern value="\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}"/>
</xsd:restriction>
</xsd:simpleType>
Someone told me that I cannot use minLength and maxLength restrictions using a xsd
ateTime base.
But I don't find any information about this.
Is it true?