Michele,
It would except that the way the templates for c#/did are written, the apply templates statements have select attributes. As a result only those children of <did> that are selected are processed. Any that are not "selected" are suppressed. This is standard XSLT syntax.
This was done for two reasons.
1. Not all children of <did> are processed alike- <abstract> for example appears in a separate row following <unittitle>, <unitdate> and <physdesc>. So you can't have one apply-templates statement that applies to all did children. When different children are to be displayed differently from their "siblings", you sometimes do in fact have to "specify every element inside every other element by name". Or at least a group of similar elements.
This is one of the penalties of a data model- archival finding aids- where content and its sequence is not fixed and immutable. That's not entirely the fault of EAD- it's about what we record. These are variable textual documents not a database. We could change the way finding aids are structured but that's another war altogether.
2. To enforce a consistent display sequence. You probably don't want the display order of <unitdate>, <unittitle>, etc. to rely solely on the consistency of your data entry person.
There are often lots of way to specify a given output in a stylesheet. I sure that one could probably do these differently but that's how and why these are written the way they are and hence the result.
Michael
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]]On Behalf Of
MicheleR
Sent: Wednesday, April 13, 2005 10:35 AM
To: [log in to unmask]
Subject: Re: Linking jpegs using <dao>
Puzzlement -- why would you have to specifically address a dao in a c03/did
rather than simply having a single template that addresses all dao's
wherever they occur? I thought the standard "apply-templates" would look at
all child elements and match *any* applicable templates -- surely you don't
have to specify every element inside every other element by name?
Michele
----- Original Message -----
From: "Fox, Michael" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, April 13, 2005 11:11 AM
Subject: Re: Linking jpegs using <dao>
There needs to be a statement in the element where the <dao> is located that
applies the <dao> template cited. In Linda's case, this was in the
template for c03/did.
|