Michael F.
I am one of the fortunate few that write XSLT stylesheets for finding
aids of collections here at the Library of Congress.
If anyone is interested, I have written a short 6 page document
outlining my dsc/descendant::did/child* template used here at LoC.
This template occurs once in my stylesheet.
I wrote this PDF to explain the inline processing of the stylesheet.
The PDF has a Venn diagram (SVG), general outline of the template and
examples. I designed the stylesheet for EAD 2002. I was primarly
interested in creating a stylesheet that would be based on datatypes
and formatting objects in EAD 2002 DTD. Most important was the
hierarchical structure of the EAD document.
The design was very successful. I was able to use it for a sister
stylesheet that generates XSL-FO which in turn becomes a PDF.
Currently, PDF finding aids on the Library of Congress web site are
all produced from my stylesheet. Soon, all the HTML full view will
also be the direct result of my stylesheet.
Much thanks to the EAD groups here at LoC for testing and suggestions
in this process. Special thanks to Daniel Pitti for his excellent
class, handouts and patience.
Mike Ferrando
Library Technician
Library of Congress
Washington, DC
202-707-4454
XSLT Transformation Overview
http://lcweb2.loc.gov/music/eadmusic/eadconv12/ead_xsl_overview.htm
PDF
http://lcweb2.loc.gov/music/eadmusic/eadconv12/mu20050001.pdf
--- "Fox, Michael" <[log in to unmask]> wrote:
> 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.
>
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
|