<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 
  doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes" method="html"/>

<xsl:template match="pagina">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<xsl:apply-templates/>
</html>
</xsl:template>

<xsl:template match="head">
<head>
  <title>
    <xsl:value-of select="title"/>
  </title>
  <link rel="stylesheet" href="stile.css" type="text/css" />
</head>
</xsl:template>

<xsl:template match="body">
<body>
  <xsl:apply-templates/>
  <table width="100%"> 
  <tr> 
    <td valign="top" width="67%" height="30"></td>
    <td valign="top" width="33%" height="30"> 
      <div align="right">
      <a href="c_scavo.htm" onmouseout="MM_swapImgRestore()"
        onmouseover="MM_swapImage('Image3','','rollovers/back_on.jpg',1)"
        target="_self"><img name="Image3" alt="back" border="0"
        src="rollovers/back_off.jpg" width="120" height="54" /></a></div>
    </td>
  </tr>
</table>
</body>
</xsl:template>

<xsl:template match="immagineIntestazione">
<p>
<img src="{src}" alt="{alt}" />
</p>
</xsl:template>


<xsl:template match="immagine">
  <xsl:choose>
    <xsl:when test="@align=''">
      <img src="{src}" alt="{alt}" width="{@width}" height="{@height}" />
    </xsl:when>
    <xsl:otherwise>
      <img src="{src}" alt="{alt}" width="{@width}" height="{@height}"
        align="{@align}" />
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

<xsl:template match="notizia">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="notizia/titolo">
<p class="titoletto" align="{@align}">
  <xsl:value-of select="."/>
</p>
</xsl:template>

<xsl:template match="notizia/corpo">
<p class="corpo" align="{@align}">
  <br />
  <xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="notizia/corpo/testo">
    <xsl:value-of select="."/>
    <br />
</xsl:template>

<xsl:template match="bibliografia">
  <p class="titoletto">Bibliografia</p>
  <p class="corpo">
    <xsl:apply-templates/>
  </p>
</xsl:template>

<xsl:template match="bibliografia/titolo">
  <xsl:value-of select="."/>
  <br />
</xsl:template>

<xsl:template match="bibliografia/riferimento">
  <xsl:apply-templates/>
  <br />
</xsl:template>

<xsl:template match="autore">
  <span class="autore"><xsl:value-of select="."/></span>,
</xsl:template>

<xsl:template match="sezione">
  <i><xsl:value-of select="."/></i>,
</xsl:template>

<xsl:template match="libro">
  <i><xsl:value-of select="."/></i>
</xsl:template>

<xsl:template match="luogoPubblicazione">
  <xsl:value-of select="."/>
</xsl:template>

<xsl:template match="dataPubblicazione">
  <xsl:value-of select="."/>
</xsl:template>

<xsl:template match="pagine">
  <xsl:value-of select="."/>
</xsl:template>

</xsl:stylesheet>

