Appendice 18
Foglio di stile per l'estrapolazione di alcuni dati utili all'analisi di Baltico
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
Numero Personaggi .fit: <xsl:value-of select="count(//name[@type='persona.fit'])"/>
Numero Personaggi .Real: <xsl:value-of select="count(//name[@type='persona.real'])"/>
Numero Discorsi diretti: <xsl:value-of select="count(//q[@type='diretto'])"/>
Numero Personaggi indefiniti: <xsl:value-of select="count(//q[contains(@who,
'indefinito')])+count(//q[contains(@who,'indefiniti')])"/>
<!---->
ELENCO PERSONAGGI
<xsl:for-each select="//name[@type='persona.fit']">
<xsl:text> </xsl:text>
<xsl:sort select="@key"/>
<xsl:value-of select="@key"/>
</xsl:for-each>
ELENCO PARLANTI
<xsl:for-each select="//q[@type='diretto']">
<xsl:text> </xsl:text>
<xsl:sort select="@who"/>
<xsl:value-of select="@who"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="teiHeader"/>
<xsl:template match="text"/>
</xsl:stylesheet>