[xsd-users] xsd::date

Balasubramanyam, Shivakumar sbalasub at qualcomm.com
Tue Aug 14 06:13:38 EDT 2007


Boris,

I appreciate your detailed response and I agree with your reasoning.

Thanks,
Shiva

-----Original Message-----
From: xsd-users-bounces at codesynthesis.com
[mailto:xsd-users-bounces at codesynthesis.com] On Behalf Of Boris
Kolpackov
Sent: Tuesday, August 14, 2007 12:14 AM
To: Balasubramanyam, Shivakumar
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] xsd::date

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