L
Lord0
Hi there,
Am I correct when I say that "--12" is a valid value for an xs:gMonth
data-type in a schema but "12" is not?
Similarly for an xs:gDay, "---30" is a valid value but "30" is not?
This seems bizarre. Is there a more suitable datatype for representing
days, months etc? I hoped I would be able to, in my schema do something
like:
<xs:element name="DAY" type="xs:gDay"/>
<xs:element name="MONTH" type="xs:gMonth"/>
and the following would be valid:
<DAY>30</DAY>
<MONTH>12</MONTH>
I have read http://www.w3.org/TR/xmlschema-2/#built-in-datatypes and it
does state, for example:
"The lexical representation for gDay is the left truncated lexical
representation for date: ---DD".
This seems counterintuitive (to the layman at least)
Lord0
Am I correct when I say that "--12" is a valid value for an xs:gMonth
data-type in a schema but "12" is not?
Similarly for an xs:gDay, "---30" is a valid value but "30" is not?
This seems bizarre. Is there a more suitable datatype for representing
days, months etc? I hoped I would be able to, in my schema do something
like:
<xs:element name="DAY" type="xs:gDay"/>
<xs:element name="MONTH" type="xs:gMonth"/>
and the following would be valid:
<DAY>30</DAY>
<MONTH>12</MONTH>
I have read http://www.w3.org/TR/xmlschema-2/#built-in-datatypes and it
does state, for example:
"The lexical representation for gDay is the left truncated lexical
representation for date: ---DD".
This seems counterintuitive (to the layman at least)
Lord0