One thing to keep in mind is that <dao> "Digital Archival Object" can be
any of a number of digital object formats, not just jpegs, so it is going
to be pretty generic in that sense. If you know that you will never want
to link to anything other than a jpeg, then a stylesheet could certainly
be programmed to always turn a <dao> element into an <img> element in
HTML. I think this is probably 95% of usage of this element today. But
thinking forward, let's say you want to link to a sound file. A
stylesheet processing a <dao> in such a case would need to know to use
<object> instead of <img> to render that. So you need something in the
encoding that qualifies your digital object. I recommend using a standard
such as MIME types in such a case:
<dao title="Text of the legend" show="embed" actuate="onload"
role="image/jpeg" href="image.jpg" altrender="dao1"/>
Also, many archives are favoring <daogrp> over <dao> because of its
flexibility, although its usage is more complex than with <dao> (for
further discussion, you can see an article I'm writing about this here:
http://staff.washington.edu/carlsonm/XLinkToEAD.pdf which I hope to update
soon!)
As far as height/width, the current trend [XML/XHTML] in coding for
display is to use Cascading Style Sheets to handle such things rather than
hard coding them into the elements. In EAD, you could handle this either
by coding an "id" [requires specific format] or "altrender" [does not
require specific format] attribute for the linking element and then
mapping that to a CSS class or ID:
<style type="text/css">
.dao1 {height: 50px; width: 100px;}
</style>
Mark
On Tue, 12 Apr 2005, André Kahle wrote:
> Michael: Thank you for help!!!
>
> I have a further question: how can I also show the legend of the photo,
> while just hovering over it?
>
> What about the size of the picture?
>
> In HTML I would use <img src="..." alt="text of the legend" height="..."
> width="..." >
>
> Thanks,
>
> Andre Kahle
> SHLM & INFOKA
>
>
> A 14:06 2005/04/12 -0500, Fox, Michael a écrit :
>> Linda,
>> This is a two step process.
>>
>> 1. In your finding aid, you obviously have to include a pointer to
> the image file in your encoding of each <dao>. Assuming that this is a url
> in an HREF attribute, it might look like this.
>>
>> <dao show="embed" href="picture.jpg"/>
>>
>> 2. You need to include a template like the following in your
> stylesheet to create the link from the <dao> element to the digital image
> file.
>>
>>
>> <xsl:template match="dao[@show='embed']">
>> <img src="{@href}">
>> <xsl:apply-templates/>
>> </img>
>> </xsl:template>
>>
>> In the example above, this would generate the following in your HTML
> output.
>>
>> <img src="picture.jpg">
>>
>> Michael
>>
>>
>> -----Original Message-----
>> From: Encoded Archival Description List [mailto:[log in to unmask]]On Behalf Of
>> Linda Raditz
>> Sent: Tuesday, April 12, 2005 1:19 PM
>> To: [log in to unmask]
>> Subject: Linking jpegs using <dao>
>>
>>
>> I am trying to encode a finding aid and am having problems linking to the
>> jpegs. I have jpegs of every item described in the inventory of this finding
>> aid and I would like to link to the component description to the jpeg. I'd
>> like to use <dao> . I've tried inserting <dao> and setting the attributes,
>> but when I transform my file to html there is no link. Do I need to add
>> something to my stylesheet to do this? Should I use a linking tag other than
>> <dao>? I'm sorry if the answer is obvious - my ead skills are rusty (at
>> best) and I've never tried to link to an outside file before.
>>
>> Any help is much appreciated!
>>
>> Linda
>> -----------------------
>>
>> Linda Machado Raditz
>> Archivist
>> Freer Gallery of Art and Arthur M. Sackler Gallery Archives
>> Smithsonian Institution
>> P.O. Box 37012, MRC 707
>> Washington, DC 20013-7012
>> Telephone: 202-633-0329
>> Fax: 202-357-4911
>> http://www.asia.si.edu/
>>
>
|