<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:tei="http://www.tei-c.org/ns/1.0" 
                xmlns:ct="http://www.comhartaighde.com/ns/1.0" 
                exclude-result-prefixes="tei ct"
                version="1.0">
    

<xsl:template match="tei:ref">
    <a href="{@target}"><xsl:value-of select="."/></a>
</xsl:template>
    
<xsl:template match="tei:ref[@type='citation']">
    <a class="citation" href="{@target}"><xsl:value-of select="."/></a>
</xsl:template> 
    
<xsl:template match="tei:ref[@type='endnote']">
    <a class="endnote" href="{@target}"><sup><xsl:value-of select="."/></sup></a>
</xsl:template>    
    
<xsl:template match="tei:placeName">
    <a class="placename" target="_blank" href="{@target}"><xsl:value-of select="."/></a>
</xsl:template> 
    
<xsl:template match="tei:persName">
    <a class="biography" target="_blank" href="{@biography}"><xsl:value-of select="."/></a>
</xsl:template>
    
    
</xsl:stylesheet>