Hi Eric,
A couple of things to try:
XMLNS: in your root <xsl> element try xmlns:ead="urn:isbn:1-931666-22-9",
which then means all ead elements in the stylesheet must be preceded with
ead: e.g.
<xsl:value-of
match="ead:ead/ead:eadheader/ead:filedesc/ead:titlestmt/ead:titleproper"/>
Even attributes. Can be a headwreck until you get the hang of it.
Check <xsl:template match=""> and see if your xsl:value-of is the correct
extension of that
e.g.
<xsl:template match="/"> => <xsl:value-of match="ead/..."/>
Or
<xsl:template match="/ead"> => <xsl:value-of match="eadheader/..."/>
Try adding the root '/' to your value-of xpath if those 2 don't work.
Post EAD/XSLT if still no luck.
-------------------------------------------
Joseph Greene
Institutional Repository Project Manager
325 James Joyce Library
University College Dublin
(353 0)1 716 7398
[log in to unmask]
http://irserver.ucd.ie
-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]] On
Behalf Of Eric Lease Morgan
Sent: 07 November 2011 16:03
To: [log in to unmask]
Subject: none of my value-of statements work
I'm pulling my hair out because none of my XSL value-of statements work.
I have an EAD file which validates against the EAD schema:
http://zoia.library.nd.edu/tmp/stc/stc.xml
It has this root element:
<ead
xmlns:ns2 = "http://www.w3.org/1999/xlink"
xmlns = "urn:isbn:1-931666-22-9"
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation = "urn:isbn:1-931666-22-9
http://www.loc.gov/ead/ead.xsd">
I have a style sheet also:
http://zoia.library.nd.edu/tmp/stc/ead2html.xsl
It has this root element:
<xsl:stylesheet
xmlns:xsl = "http://www.w3.org/1999/XSL/Transform"
xmlns = "urn:isbn:1-931666-22-9"
version = "1.0">
Unfortunately, statements like the following return no content:
<xsl:value-of select="ead/eadheader/filedesc/titlestmt/titleproper" />
Why?
It works when the EAD is validated against the EAD DTD, as in:
http://zoia.library.nd.edu/tmp/stc/shu.xml
Ack!
--
Eric Lease Morgan
University of Notre Dame
|