For single values, allow the type modifier to indicate
before,after,exact. I like this better, because it gives us room for
expansion should we need it in the future.
<dateval val="2001-05" type="before"/>
<dateval val="2001-05-15" type="after"/>
Add a date range:
<daterange start="2001-05-15" stop="2001-05-15"/>
Add an text string:
<datestr val="Summer 1969">
Date values will use '?' to indicate the unknowns, but 4 for year, 2 for
month. gramps will currently not do anything with them, but in the
future we may be able to support "19??" in some manner. (forward
Both the dateval and daterange will support dpref="x" to indicate
calendar preference, but all dates in the file will be Gregorian.
On Tue, 2001-11-20 at 09:29, Jochen Topf wrote:
> On Tue, Nov 20, 2001 at 07:49:42AM -0700, Don Allingham wrote:
> > Subject: Re: [Gramps-devel] Date format in XML - I think I have something
> > that will work
> > From: Don Allingham <dallingham@...>
> > To: Jochen Topf <jochen@...>
> > Cc: Gramps Development List <gramps-devel@...>
> > Date: 20 Nov 2001 07:49:42 -0700
> > On Tue, 2001-11-20 at 07:42, Jochen Topf wrote:
> > >
> > > How about:
> > > <dateval date="2001-05-15"/>
> > > <dateval after="2001-05-15"/>
> > > <dateval before="2001-05-15"/>
> > > <dateval after="2001-05-15" before="2002-05-15"/>
> > >
> > I think this would be considered rather bad XML. I don't think you can
> > say an attribute cannot be used if another one is used, and you would
> > have to do this to prevent:
> > <dataval date="2001-05-15" before="2002-05-15" after="2003-05-15"/>
> > There are a good number of people depending on gramps producing valid
> > XML.
> > Maybe one of the XML experts can clarify this?
> Well this is definitely valid XML. It is true that there is now way to say
> in a DTD that you can't use the 'date' and the 'after' attribute at the
> same time, but this is hardly a problem. There are many restrictions you
> can't express in a DTD. This is the same kind of problem as with the date
> itself. You can't specify in a DTD that "1900-40-50" is not a valid date.
> This is just something that the application has to check.
> Jochen Topf jochen@... http://www.remote.org/jochen/ +49-721-388298
> Gramps-devel mailing list
GPG/PGP Public Key at