[xsd-users] xsd::date
Boris Kolpackov
boris at codesynthesis.com
Tue Aug 14 03:13:52 EDT 2007
Hi Shiva,
Balasubramanyam, Shivakumar <sbalasub at qualcomm.com> writes:
> Is there one already or do we have to do use something like
> boost::Gregorian_date as nicely provided in one of the calendar
> examples.
Yes, this is probably the easiest option if you are already using
Boost. The reason why we do not provide anything more sophisticated
by default is that (1) we don't want to add extra dependencies (e.g.,
on Boost) and (2) we don't want to re-implement a date/time library
in libxsd especially since in most cases it won't be something
application developers use anyway (that is, they will most likely
convert it to their own date/time types). So instead we provide a
mechanism, as shown in the custom/calendar example, to re-map the
date type (or any built-in XML Schema type) to your own type.
hth,
-boris
More information about the xsd-users
mailing list