Print

Print


That did the trick!  Thanks for sharing the code Michele!

Enjoy the Holiday weekend!

Nathan

On Fri, Apr 2, 2010 at 3:51 PM, Michele R Combs <[log in to unmask]> wrote:

If I remember correctly, none of the cookbook style sheets have the code to handle linking elements.  You have to add it.  Ours looks like this:

 

   <!-- ****************************************************************** -->

   <!-- LINKS                                                              -->

   <!-- Converts REF, EXTREF, DAO and PTR elements into HTML links         -->

   <!-- ****************************************************************** -->

 

   <xsl:template match="ref">

      <a href="#{@target}">

         <xsl:apply-templates/>

      </a>

   </xsl:template>

 

   <xsl:template match="extref | archref">

      <xsl:choose>

         <xsl:when test="self::extref[@show='new']">

            <a href="{@href}" target="_blank"><xsl:apply-templates/></a>

         </xsl:when>

         <xsl:otherwise>

            <a href="{@href}"><xsl:apply-templates/></a>

         </xsl:otherwise>

      </xsl:choose>

   </xsl:template>

 

   <xsl:template match="ptr">

      <a href="{@href}">

         <xsl:value-of select="@href"/><xsl:apply-templates/>

      </a>

   </xsl:template>

 

   <xsl:template match="extptr">

      <xsl:choose>

         <xsl:when test="self::extptr[@show='embed']">

            <img src="{@xpointer}" alt="{@title}" align="{@altrender}"/>

         </xsl:when>

         <xsl:otherwise>

            <a href="{@xpointer}">"{@title}"ha</a>

         </xsl:otherwise>

      </xsl:choose>

   </xsl:template>

 

   <xsl:template match="dao">

      <xsl:choose>

         <xsl:when test="self::dao[@show='new']">

            <a href="{@href}" target="_blank">Digital object</a>

         </xsl:when>

         <xsl:otherwise>

            <a href="{@href}">Digital object</a>

         </xsl:otherwise>

      </xsl:choose>

   </xsl:template>

 

 

From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Nathan Tallman
Sent: Friday, April 02, 2010 12:40 PM
To: [log in to unmask]
Subject: Extref

 

Hello again,

 

Has anyone had trouble with external links and the cookbook style sheets?  Here's an example of the tag: 

 

<p>For more information see the American Jewish Archives <extref href="http://www.americanjewisharchives.org/general/copyright.php" actuate="onrequest" role="text/html" show="new">copyright information webpage</extref>.</p>

 

When I transform the document using eadcbs6 and dsc6, the link does not show up.  I feel like I'm missing an obvious step somewhere...

 

Thanks,

Nathan Tallman