<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet SYSTEM "xsl.dtd" [
<!ENTITY nbsp   "&#160;" >
<!ENTITY copy   "&#169;" >
<!ENTITY middot "&#183;" >
]>
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:wb="urn:adysa-com:WebBlocks5.3.X"
	xmlns:gea="urn:geaportal-com:GeaPortal5.3.X"
    version="1.0"
    >
    <!-- Plantilla de transformación para aplicaciones WebBlocks:
         módulo correspondiente a los elementos comunes a varias plantillas.        -->

    <!-- HTML output! -->
    <xsl:output method="html" encoding="ISO-8859-1" indent="no"
    omit-xml-declaration="yes" /> 

    <xsl:template match="/gea:ecm">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Newsletter</title>
        <style type="text/css">
        <!--
        body {
        	margin-left: 0px;
        	margin-top: 0px;
        	margin-right: 0px;
        	margin-bottom: 0px;
        }
        -->
        p {
        	font-family:Verdana, Arial, Helvetica, sans-serif;
        	font-size:11px;
        	color:#000000;
        }
        
        h4 {
        	font-family:Verdana, Arial, Helvetica, sans-serif;
        	font-size:14px;
        	color:#000000;
        	}
        .titulo {
        	font-family: Verdana, Arial, Helvetica, sans-serif;
        	color: #000000;
        	font-size: 14px;
        	font-weight: bold;
        }
        .txtlegal {
        	font-family: Verdana, Arial, Helvetica, sans-serif;
        	font-size: 9px;
        }
        .fecha {
        	font-family: Verdana, Arial, Helvetica, sans-serif;
        	font-size: 12px;
        	font-weight: bold;
        }
        a:link {
        	color: #FF9900;
        	text-decoration: none;
        	font-weight: bold;
        }
        a:visited {
        	text-decoration: none;
        	color: #FF9900;
        	font-weight: bold;
        }
        a:hover {
        	text-decoration: underline;
        	color: #FF9900;
        	font-weight: bold;
        }
        a:active {
        	text-decoration: none;
        }
        </style>
        </head>

<body>
<!-- TABLA CONTENEDORA BASE -->
<table width="550" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" id="Contenedora">
 <tr>
  <td>
<!-- TABLA PRINCIPAL DE CONTENIDOS -->
    <table width="550" border="0" cellpadding="0" cellspacing="0" id="main">
    <tr>
     <td width="550" valign="top" bgcolor="white">
     
     
     <img src="{../gea:imageelem/gea:image/gea:src}"><xsl:apply-templates select="gea:ecmblock/gea:webpage[@current='yes']/gea:imageelem/gea:attrib[@tag = 'src']"/>
     <xsl:value-of select="gea:ecmblock/gea:webpage[@current='yes']/gea:imageelem/gea:title" disable-output-escaping="yes"/>
     </img>
     
     <!--xsl:apply-templates select="gea:ecmblock/gea:webpage[@current='yes']/gea:imageelem/gea:attrib[@tag = 'src']"/>
     <xsl:value-of select="gea:ecmblock/gea:webpage[@current='yes']/gea:imageelem/gea:title" disable-output-escaping="yes"/-->
     
     
    <xsl:for-each select="gea:ecmblock[@id='main']/gea:webpage[@current='yes']/gea:imageelem[@section = 'main']">      
<!-- TABLA MÓDULO NOTICIA -->
	<!-- IMAGEN -->
	    <table cellpadding="0" cellspacing="0" align="right">
	    <tr>
	    	<td style="padding:0px 0px 12px 12px"><img src="{../gea:imageelem/gea:image/gea:src}" alt="{../gea:imageelem/gea:image/gea:alt}" width="127" height="122">
    	    <xsl:apply-templates select="../gea:imageelem/gea:attrib[@tag = 'src']"/></img></td>
	    </tr>
	    </table>
	<!-- FIN IMAGEN -->
	</xsl:for-each>
  	</td>
  	</tr>
	</table>
  </td>
 </tr>
</table>

     <!-- FIN TABLA MÓDULO NOTICIA -->
<!-- FIN TABLA CONTENEDORA BASE -->
</body>
</html>
   
    </xsl:template>

	<xsl:template match="gea:attrib">
	    <xsl:attribute name="{gea:name}"><xsl:value-of select="gea:value"/></xsl:attribute>
	</xsl:template>
</xsl:stylesheet>
