<?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="teideal">
    <span class="workTitle"><xsl:apply-templates /></span>
</xsl:template>
    
<xsl:template match="béim">
    <span class="italicized"><xsl:apply-templates /></span>
</xsl:template>
    
<xsl:template match="láidir">
    <strong><xsl:apply-templates /></strong>
</xsl:template>

<xsl:template match="mioncheannlitreacha">
    <span class="smallCaps"><xsl:apply-templates /></span>
</xsl:template>
    
<xsl:template match="iasacht">
    <span class="italicized"><xsl:apply-templates /></span>
</xsl:template>
    
<xsl:template match="amparsan">
    <xsl:text>&amp;</xsl:text>
</xsl:template>

<xsl:template match="líneFaoi">
    <span style="text-decoration:underline;"><xsl:apply-templates /></span>
</xsl:template>
    
<xsl:template match="níosMó">
    <xsl:text>&gt;</xsl:text>
</xsl:template>
    
<xsl:template match="níosLú">
    <xsl:text>&lt;</xsl:text>
</xsl:template>
    
<xsl:template match="tagairt/amparsan">
    <xsl:text>&amp;</xsl:text>
</xsl:template>
    
<xsl:template match="liosta[@cineál='uimhrithe']">
    <ol>
        <xsl:for-each select="mír"><li><xsl:apply-templates /></li></xsl:for-each>
    </ol>
</xsl:template>
    
<xsl:template match="liosta[@cineál='urchair']">
    <ul>
        <xsl:for-each select="mír"><li><xsl:apply-templates /></li></xsl:for-each>
    </ul>
</xsl:template>

</xsl:stylesheet>