This isn't a one-size-fits all XSL, but may be of help with XMLNS issues.
Note the use of the ead: prefix in the XSLT and declaration of
xmlns:ead="urn:isbn:1-931666-22-9" in EAD and stylesheet. Use Ctrl+U or
'View source' to view because Firefox hides a little bit for some reason.
(This wasn't made with the AT though.)
EAD and XSLT (2x):
http://ivrlaprod.ucd.ie/fedora/get/ivrla10-:10905/fedora-system:3/viewItemIn
dex
HTML result(s):
http://ivrlaprod.ucd.ie/fedora/get/ivrla10-:10905/ivrla10-:collectionLayoutb
Def/getLayout/
Joseph
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]] On
Behalf Of Michele R Combs
Sent: 08 December 2010 15:04
To: [log in to unmask]
Subject: Re: XSLT for HTML display of schema-compliant EAD?
Hi Kathryn --
I haven't worked much with the schema, but I don't think the problem lies in
the style sheet. The problem appears to be this line in the root element
(<ead>) :
xmlns="urn:isbn:1-931666-22-9"
If you take that out, the document renders fine. Is that line absolutely
necessary?
Michele
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]] On
Behalf Of Dunn, Kathryn M.
Sent: Monday, December 06, 2010 9:44 AM
To: [log in to unmask]
Subject: XSLT for HTML display of schema-compliant EAD?
Hello EAD folks,
I'm wondering if anyone has a stylesheet that works with
schema-compliant EAD documents for in-browser transformation to HTML, or
advice on converting a stylesheet for DTD-compliant EAD to one for
schema-compliant EAD.
I found this blog post while searching for information on stylesheets
for schema-valid EAD.
http://woodsonresearch.wordpress.com/2009/01/07/a-humbling-discovery/
Is everyone who is using schema-valid EAD using Archivists' Toolkit to
convert their finding aids to HTML? I was surprised that I wasn't able
to readily locate a stylesheet that works with schema-valid EAD, but
maybe it's a more complicated issue than I realize.
Here are the DTD- and schema-valid versions of the EAD I'm working with:
http://www.rpi.edu/~dunnk2/ead/q/AC_27_DTD.xml
http://www.rpi.edu/~dunnk2/ead/q/AC_27_XSDschema.xml
The main stylesheet is here:
http://www.rpi.edu/~dunnk2/ead/q/test_for_display.xsl
It also uses a dsc stylesheet adapted from a stylesheet provided by
Michele Combs at her awesome workshop in Albany:
http://www.rpi.edu/~dunnk2/ead/q/su1_modified_kd.xsl
Thanks very much in advance for any advice you can offer!
Katie
-------
Katie Dunn
Technology & Metadata Librarian
Rensselaer Polytechnic Institute
518-276-8353
[log in to unmask]
|