EAD id attributes in XTF

14 views
Skip to first unread message

Bewley, John

unread,
May 21, 2013, 5:06:51 PM5/21/13
to xtf-...@googlegroups.com

I am hoping that somebody who is using EAD files in XTF has already encountered and solved this problem: id attributes coded within the container list anyplace other than series statements in unitid elements are not getting transformed into <a name> values so the links created by corresponding <ref target> statements are not working. An example can be seen at:

http://libweb1.lib.buffalo.edu:8080/findingaids/view?docId=ead/archives/ubar_ms0070.xml&doc.view=content&brand=default&anchor.id=0#series4f

 

under folder 50.11 which has an internal ref link to a place earlier in the container list.

 

I have checked the same file in a default installation of XTF3.1 that is straight out of the box and the same thing happens there so it doesn’t seem to be anything happening as a result of local changes. The id attribute is available in just about all the elements within the container list so I don’t want to limit the application based on what I can do with the stylesheets, for example by limiting the use of id attribute to <unittitle>.

 

I get the links to work by adding the following code to the ead stylesheet in dynaXML/docFormatter/ead folder but I haven’t been able to get the correct reference within <xsl:apply templates> in order to keep all other applicable templates for the container list.

 

<xsl:template match="*[@id]">                  
  
<xsl:element name="a">
  
<xsl:attribute name="name">
  
<xsl:value-of select="@id"/>
  
</xsl:attribute>
  
</xsl:element>                   
     
<xsl:apply-templates/>   
   
</xsl:template>

 

or the alternative

 

<xsl:template match="*[@id]">
      <a name="{@id}">
   
      <xsl:value-of select="@id"/>
      </a>
      <xsl:apply-templates/>
   </xsl:template>

 

It seems like a change that should be made to the default files even if the problem doesn’t occur often.

 

--

John Bewley

Associate Librarian/Archivist

Music Library

University at Buffalo

716 645 0614

 

Reply all
Reply to author
Forward
0 new messages