<?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="tagairtí">
    <xsl:apply-templates select="liostaBibl"/>
</xsl:template>

<xsl:template match="liostaBibl">
    <xsl:apply-templates select="ceann[@xml:lang='ga']"/>
    <xsl:for-each select="bibl|liostaBibl"><p id="{@xml:id}"><xsl:apply-templates /></p></xsl:for-each>
    <xsl:apply-templates select="nóta"/>
</xsl:template>
    
<xsl:template match="liostaBibl[@cineál='lámhscríbhinní']">
    <xsl:apply-templates select="ceann[@xml:lang='ga']"/>
    <xsl:for-each select="bibl|liostaBibl">
        <!-- inneachar na lámhscríbhinní a aschur gan p-chlib bhreise-->
        <xsl:apply-templates />
    </xsl:for-each>
    <xsl:apply-templates select="nóta"/>
</xsl:template>

<xsl:template match="liostaBibl/ceann[@xml:lang='ga']">
    <h3><xsl:apply-templates /></h3>
</xsl:template> 
    
<xsl:template match="lonnaíocht">
    <h4 id="{../@xml:id}"><xsl:apply-templates /></h4>
</xsl:template>
    
<xsl:template match="taisclann">
    <h5><xsl:apply-templates /></h5>
</xsl:template>

<xsl:template match="monogr|analytic">
    <xsl:apply-templates />
</xsl:template>
    
<xsl:template match="údar|eagarthóir|addName|dáta|reprint|pubPlace|foilsitheoir|biblScope">
    <xsl:apply-templates />
</xsl:template>
    
<xsl:template match="lámhscríbhinn">
    <p><xsl:apply-templates /></p>
</xsl:template>
    
<xsl:template match="nóta">
    <p id="{@xml:id}" class="note"><xsl:apply-templates /></p>
</xsl:template>

    
</xsl:stylesheet>