<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="/esercizio">
  <html>
    <head>
    
    <style>
       div.capitolo { font-size:14pt; color:red; margin-top: 12pt; margin-bottom: 6pt; }
       div.paragrafo { font-size:12pt; color:navy; margin-top: 4pt; margin-bottom: 2pt; margin-left: 10pt; margin-right: 10pt; }
       span.piepar { font-size:12pt; color:green; margin-top: 4pt; margin-left: 15pt; }
       span.descr { font-size:12pt; color:navy; margin-top: 4pt; }
       span.elencop {  font-size:12pt; color:navy; margin-top: 4pt; margin-left: 25pt;}
    </style>
    </head>

 <body background="image001.jpg">
<table width="100%" border="0">
  <tr>
    <td width="33%"><img src="../dacrema.gif" border="0" usemap="#Map"></img></td>
    <td><div align="center"><p><a href="percorso_fondamenti_info.htm">Fondamenti di Informatica</a></p></div></td>
    <td width="33%"><div align="right"><img src="../Appunicri/logoapp.gif" width="200" height="30" border="0" usemap="#Map2"></img></div></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="0,2,196,28" href="../index.html"></area>
</map>
<map name="Map2">
  <area shape="rect" coords="4,1,187,29" href="../Appunicri/appunicri.htm"></area>
</map>
    

   
<B>Esercizio n. <xsl:value-of select="@numero"/> <br/><xsl:value-of select="@titolo"/><br/></B>
	     <xsl:apply-templates select="capitolo"/>
	

    </body>
   
  </html>
</xsl:template>

<xsl:template match="capitolo">
  <br/>
  <div class="capitolo"><xsl:value-of select="@titolo"/></div>
  <xsl:apply-templates select="paragrafo"/>
</xsl:template>

<xsl:template match="paragrafo">
 <div class="paragrafo"><xsl:value-of select="@testo"/></div>
 <xsl:apply-templates select="piepar"/>
 <xsl:apply-templates select="elencop"/>
 <xsl:apply-templates select="image"/>
 <xsl:apply-templates select="link"/>
</xsl:template>

<xsl:template match="piepar">
 <span class="piepar"><b><xsl:value-of select="@testo"/></b></span>: <span clas="descr"><xsl:value-of select="@descr"/></span><br/>
</xsl:template>

<xsl:template match="elencop">
 <span class="elencop">- <xsl:value-of select="@testo"/></span><br/>
</xsl:template>

<xsl:template match="image">
 <img border="0"><xsl:attribute name="src"><xsl:value-of select="@url"/></xsl:attribute></img>
</xsl:template>

<xsl:template match="link">
 <a target="_new"><xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute><xsl:value-of select="@url"/></a>
</xsl:template>

</xsl:stylesheet>

