[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [ubl-lcsc] ** Please Review UBL Model 1.0 draft 3 as a proposed final 1.0 model ** (sent earlier)
Folks
Hi
Looking at the CCTSpec and the datatype question
regarding YearMonth, I'm fairly sure that we
couldn't
or wouldn't wish to use a DataType. The reason
is
1. a DT has to be derived from a CCT by extension
or
restriction (as Sue pointed out in
NDRSC)
2. we wouldn't wish to use as a base type any
type
that lost its 'date' characterisation (as Eduardo
pointed out)
3. I'm pretty sure we cannot restict or extend a
date or
date_time to get a
YearMonth because a pattern
based on date can
only take values, even after
restriction, which are technically *legal*. So
2004-02, say,
could never be a legal value for a date, even a
restricted date.
Therefore what would be needed, to my mind, is a
new
CCT, as Sue suggested, with some date-related base
like
a union of xsd:date and xsd:gYearMonth (to
allow either format)
(Incidentally, is a union of CCTs allowed as a user
defined
DataType?)
** If unions can be used for CCTs, I'd *very* much
like to propose
one to allow EITHER xsd:date OR xsd:dateTime.
Usually one
needs to cater for either of these in all sorts of
date entities. **
4. The alternative would be to restrict
cct:TextType or the like
and in doing so lose the recognition of a value as
a part
of an ISO date. This could be a UBL DataType, but would be
less than desirable, technically speaking, since it
can only
be validated with parsers as a string and not as a
date or
part of a date.
All the best
Steve
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]