Appendice 6

Foglio di Stile XSLT per la ristrutturazione del codice XML/TEI di Baltico per l'utilizzo XML Data Island

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="iso-8859-1"/>
	<xsl:template match="/">
<liber>
<pag>
<pagina>
<xsl:text>&#xD;</xsl:text>
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/author"/><xsl:text>&#xD;
</xsl:text>
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/title"/><xsl:text>&#xD;
</xsl:text>
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/editionStmt/edition"/><xsl:text>&#xD;
</xsl:text>
<xsl:value-of select="/TEI.2/teiHeader/fileDesc/titleStmt/respStmt"/><xsl:text>&#xD;
</xsl:text>
Pubblicazione e Distribuzione: <xsl:value-of 
select="/TEI.2/teiHeader/fileDesc/publicationStmt/publisher"/><xsl:text>&#xD;
</xsl:text>

<xsl:apply-templates/>
</pagina>
</pag>
</liber>
</xsl:template>

<xsl:template match="pb">
<xsl:text disable-output-escaping="yes">&lt;/pagina&gt;</xsl:text>
<xsl:text disable-output-escaping="yes">&lt;/pag&gt;</xsl:text>
<xsl:text disable-output-escaping="yes">&lt;pag&gt;</xsl:text>
<numero><xsl:value-of select="@n"/></numero>
<xsl:text disable-output-escaping="yes">&lt;pagina&gt;</xsl:text>
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="teiHeader"/>

<xsl:template match="front"/>

<xsl:template match="div0/p"/>
</xsl:stylesheet>