Print

Print


Hello gang,

Thanks for figuring this out.  I'll also make the change to the report 
card and post a new version sometime soon.

Best,

Merrilee

Merrilee Proffitt
RLG -- www.rlg.org 
2029 Stierlin Court, Suite 100, Mountain View, CA  94043 USA
voice: +1-650-691-2309
[log in to unmask]
www.hangingtogether.org





Michele Rothenberger <[log in to unmask]> 
Sent by: Encoded Archival Description List <[log in to unmask]>
04/03/06 02:35 PM
Please respond to
Encoded Archival Description List <[log in to unmask]>


To
[log in to unmask]
cc

Subject
Re: Problem with dates in EAD report card?






Thanks -- that's it, it was all the dates with 31 in them.  I changed it 
from < 31 to < 32 and it goes with no problem.  We will just have to take 
the risk that we'll miss someone erroneously dating something April 31 :)

Michele

>>> [log in to unmask] 04/03/06 5:14 PM >>>
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(., '-')) &lt; 3000 
and number(substring-before(substring-after(., '-'), '-')) &lt; 13
and number(substring-after(substring-after(., '-'), '-')) &lt; 31) &#xA;

or (number(substring-before(., '-')) &lt; 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
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=-
>