
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rs='urn:schemas-microsoft-com:rowset' xmlns:z='#RowsetSchema'
version="1.0">

<xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>

<xsl:template match="/data">
	<table width="100%" cellpadding="0" cellspacing="15"  border="0" style=""  id="table73">
		<xsl:for-each select="row">
			<xsl:if test="position() mod 3 = 1"><xsl:value-of select="string('&lt;tr&gt;')" disable-output-escaping="yes"/></xsl:if>
			<td width="33%;" valign="top" style="padding-left:0px; background-color:#f5f5f5; border:1px solid #efefef; background-image:url('/ImagenesEduca/SombraOV.gif'); background-repeat:no-repeat;background-position:center top;"><xsl:apply-templates select="."/></td>
			<xsl:if test="position() mod 3 = 0"><xsl:value-of select="string('&lt;/tr&gt;')" disable-output-escaping="yes"/></xsl:if>
		</xsl:for-each>
	</table>	
</xsl:template>
<xsl:template match="row">
<table cellpadding="0" cellspacing="0" style=" vertical-align:top; background-position:left top; margin-top:0px;padding-top:0px; width:100%; ">
<tbody>

			<tr>
				<td valign="top">
				<table cellpadding="0" cellspacing="0" width="100%" height="130px">
					<tr>
						<td colspan="3" style="font-size:4pt; padding:10px;">
						<span style=" font-family:Verdana;color:#e89b1d; font-size:14px; font-weight:bold; text-transform:uppercase;">
						<xsl:value-of select="Title" disable-output-escaping="yes"/>
						</span>
						</td>
					</tr>
					<tr>
					<td  style="text-align:left; padding-right:10px; padding-left:10px;">
						<img>
						<xsl:attribute name="src"><xsl:value-of select="substring-before(Imagen,',')"></xsl:value-of></xsl:attribute>
						</img>
					</td>
					<td align="left" valign="top" style="text-align: left;">
						<span style="color:#484848; font-size:11px">
						<xsl:value-of select="Descripcion" disable-output-escaping="yes"/>
						</span>
					</td>
					</tr>
				</table>
				<table  cellpadding="0" cellspacing="0" width="73%" height="55px;" style="float:right;">
					<tr>
					<xsl:if test="substring-before(Enlace1,',')!=''">
						<td  style=" background-image:url('/ImagenesEduca/BottomAmarillo.gif'); background-position:right center; background-repeat:no-repeat;width:100px;height:27px;text-align:center;">
						<a style=" font-family:Verdana;color:#fff; font-size:10px; font-weight:bold; text-decoration:none;">
						<xsl:attribute name="href"><xsl:value-of select="substring-before(Enlace1,',')"/></xsl:attribute>
						<xsl:value-of select="substring-after(Enlace1,',')" disable-output-escaping="yes"/>
						</a>
						</td>
					</xsl:if>
					<xsl:if test="substring-before(Enlace1,',')=''">
						<td  style="width:100px;height:27px;text-align:center;">
						&#160;
						</td>
					</xsl:if>
					<xsl:if test="substring-before(Enlace2,',')!=''">
						<td style=" background-image:url('/ImagenesEduca/BottomAmarillo.gif'); background-position:center center;background-repeat:no-repeat; height:27px;text-align:center;">
						<a style=" font-family:Verdana;color:#fff; font-size:10px; font-weight:bold; text-decoration:none;">
						<xsl:attribute name="href"><xsl:value-of select="substring-before(Enlace2,',')"/></xsl:attribute>
						<xsl:value-of select="substring-after(Enlace2,',')" disable-output-escaping="yes"/>
						</a>
						</td>
					</xsl:if>
					<xsl:if test="substring-before(Enlace2,',')=''">
						<td style="height:27px;text-align:center;">
						&#160;
						</td>
					</xsl:if>

					</tr>
				</table>
				</td>
			</tr>
</tbody>
</table>
</xsl:template>
</xsl:stylesheet>


