Assuming that the bpg.xsl stylesheet used in the Online tool is the same
as the one distributed in the Desktop version (which is what I looked
at)...
There's an error in the stylesheet that checks the normalized form of
dates.
Around line 776 of bpg.xsl...
<axsl:when test="@normal[(number(substring-before(., '-')) < 3000
and number(substring-before(substring-after(., '-'), '-')) < 13
and number(substring-after(substring-after(., '-'), '-')) < 31) 

or (number(substring-before(., '-')) < 3000 ...
There's more to that, but the part on the third line that checks if the
day is less than 31 is wrong, because it doesn't actually match 31.
Your file, at least this date, appears to be fine.
I'll see if I can send RLG feedback on this issue.
Ryan Wick
Information Technology Consultant
Special Collections - OSU Libraries
Oregon State University
541-737-2075
[log in to unmask]
http://osulibrary.oregonstate.edu/specialcollections
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]]
> On Behalf Of Michele Rothenberger
> Sent: Monday, April 03, 2006 12:25 PM
> To: [log in to unmask]
> Subject: Problem with dates in EAD report card?
>
> I'm getting an error from the RLG EAD report card on my date
> formatting.
>
> Here's the XML:
>
> <date normal="2005-10-31" era="ce" calendar="gregorian">31
> Oct 2005</date>
>
> Here's the error I'm getting:
>
> This attribute is not formated correctly. Use "iso8601" to
> format the attribute value.
>
> And here's what ISO8601 has as their sample at
> http://www.w3.org/TR/NOTE-datetime :
>
> Complete date:
> YYYY-MM-DD (eg 1997-07-16)
>
> Can anyone tell me what's causing this error??
>
> Thanks
>
> Michele
>
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=-
> Michele Rothenberger
> Syracuse University
> Special Collections Research Center
> Syracuse, NY
> (315) 443-2697
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=-
>
|