Unable to process EAD input document
Posted: Fri Nov 30, 2012 4:48 pm
Hello,
I am trying to transform (XSLT) a set of EAD XML documents. When I try to access the nodeset from my stylesheet (e.g., <xsl:for-each select="//">) it only reads in the attributes from the <eadheader> element (the first child element after <ead>). No other nodes from the source document are recognized. I can perform an <xsl:apply-templates/> to output the document text, but nothing else. Here are what the two top-level elements look like:
Again, only the attributes of <eadheader> are accessible from my stylesheet. Any idea of what is happening here?
Thanks in advance for your help!
I am trying to transform (XSLT) a set of EAD XML documents. When I try to access the nodeset from my stylesheet (e.g., <xsl:for-each select="//">) it only reads in the attributes from the <eadheader> element (the first child element after <ead>). No other nodes from the source document are recognized. I can perform an <xsl:apply-templates/> to output the document text, but nothing else. Here are what the two top-level elements look like:
Code: Select all
<ead audience="external"
xmlns="urn:isbn:1-931666-22-9"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/ead/ http://www.loc.gov/ead/ead.xsd">
<eadheader langencoding="iso639-2b" audience="external" countryencoding="iso3166-1" dateencoding="iso8601" repositoryencoding="iso15511" scriptencoding="iso15924" relatedencoding="MARC21">
Thanks in advance for your help!