K
kk
I have this portion in my schema definition:
<xsd:simpleType name="MyTimeType">
<xsd:restriction base="xsd:dateTime">
<xsd
attern value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}-Z"/>
<xsd
attern
value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}+\d{2}:\d{2}"/>
<xsd
attern
value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}-\d{2}:\d{2}"/>
</xsd:restriction>
</xsd:simepleType>
When I validate this with XMLSpy, it high-lights the second pattern
and gives this error message:
"This schema doesn't appear to be valid by itself (as a part
of anohter schema, it might still be OK): Schema error -
invalid regular expression: \ expected at position 41"
Could someone tell what's wrong with this pattern?
thanks a lot.
kk
<xsd:simpleType name="MyTimeType">
<xsd:restriction base="xsd:dateTime">
<xsd
<xsd
value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}+\d{2}:\d{2}"/>
<xsd
value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}-\d{2}:\d{2}"/>
</xsd:restriction>
</xsd:simepleType>
When I validate this with XMLSpy, it high-lights the second pattern
and gives this error message:
"This schema doesn't appear to be valid by itself (as a part
of anohter schema, it might still be OK): Schema error -
invalid regular expression: \ expected at position 41"
Could someone tell what's wrong with this pattern?
thanks a lot.
kk