<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 border="0" width="100%" id="table73">
		<xsl:apply-templates select="row"/>
		<tr>
		<td style="height:57px;text-align:right;">
		<a style=" font-family:Verdana;color:#fff; font-size:10px; font-weight:bold; text-decoration:none;">
		<xsl:attribute name="href">/quienessomos/actualidadserunion/Paginas/</xsl:attribute>
		<img border="0" src="/ImagenesEduca/btn_masNoticias.jpg"></img>
		</a>
		</td>
		</tr>
	</table>	
</xsl:template>

<xsl:template match="row">
	<xsl:variable name="ImageUrl" select="substring-before(substring-after(PublishingRollupImage,'src=&quot;'),'&quot;')"/>
		<xsl:choose>
			<xsl:when test="$ImageUrl!=''">
			<tr>
				<td valign="top" colspan="2">
				<table cellpadding="0" cellspacing="0" width="100%">

				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>

				<tr>
					<td rowspan="5" style=" text-align:left; padding-right:10px;">
						<img style=" float:left; width:100px ">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
					</td>
					<xsl:if test="ArticleByLine='Educa'">
					<td style="font-size:9px; font-family:Verdana;color:#fbaf31;"><xsl:value-of select="ArticleByLine"></xsl:value-of></td>
					</xsl:if>
					<xsl:if test="ArticleByLine='Marketing'">
					<td style="font-size:9px; font-family:Verdana;color:#568b35;"><xsl:value-of select="ArticleByLine"></xsl:value-of></td>
					</xsl:if>
					<xsl:if test="ArticleByLine='Alimentación'">
					<td style="font-size:9px; font-family:Verdana;color:#b41e3e;"><xsl:value-of select="ArticleByLine"></xsl:value-of></td>
					</xsl:if>
					<td style=" font-size:9px; font-family:Verdana;color:#484848;width:100%;"> / <xsl:value-of select="substring(ArticleStartDate,1,11)" /></td>
				</tr>
				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>

				<tr>
					<td colspan="2" style=" text-align:left;margin:0px;padding:0px; padding-left:0px;">
						<a style="color:#e58b30;font-family:Verdana;font-size:12px; text-align:left; font-weight:bold; ">
							<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</a>
					</td>
				</tr>

				<tr>
					<td colspan="2"  valign="top" width="100%" style="padding-top:5px; text-align:justify;font-family:Verdana;color:#484848;font-size:11px; font-weight:normal;">
					<xsl:value-of select="Comments" disable-output-escaping="yes"/>
					</td>
				</tr>
				
				<tr>
					<td colspan="2"><br/>
					<a style="font-family:Verdana;font-size:10px;font-weight:bold;color:#e8950c;float:right; text-decoration:underline;">
					<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
					Ampliar noticia
					</a>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>
				</table>
				</td>
			</tr>

	
			</xsl:when>
			<xsl:otherwise>
			<tr>
				<td valign="top" colspan="2">
				<table cellpadding="0" cellspacing="0" width="100%">

				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>

				<tr>
					<xsl:if test="ArticleByLine='Educa'">
					<td style="font-size:9px; font-family:Verdana;color:#fbaf31;"><xsl:value-of select="ArticleByLine"></xsl:value-of></td>
					</xsl:if>
					<xsl:if test="ArticleByLine='Marketing'">
					<td style="font-size:9px; font-family:Verdana;color:#568b35;"><xsl:value-of select="ArticleByLine"></xsl:value-of></td>
					</xsl:if>
					<xsl:if test="ArticleByLine='Alimentación'">
					<td style="font-size:9px; font-family:Verdana;color:#b41e3e;"><xsl:value-of select="ArticleByLine"></xsl:value-of></td>
					</xsl:if>
					<td style=" font-size:9px; font-family:Verdana;color:#484848;width:100%;"> / <xsl:value-of select="substring(ArticleStartDate,1,11)" /></td>
				</tr>
				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>

				<tr>
					<td colspan="2" style=" text-align:left;margin:0px;padding:0px; padding-left:0px;">
						<a style="color:#e58b30;font-family:Verdana;font-size:12px; text-align:left; font-weight:bold; ">
							<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</a>
					</td>
				</tr>

				<tr>
					<td colspan="2"  valign="top" width="100%" style="padding-top:5px; text-align:justify;font-family:Verdana;color:#484848;font-size:11px; font-weight:normal;">
					<xsl:value-of select="Comments" disable-output-escaping="yes"/>
					</td>
				</tr>
				
				<tr>
					<td colspan="2"><br/>
					<a style="font-family:Verdana;font-size:10px;font-weight:bold;color:#e8950c;float:right; text-decoration:underline;">
					<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
					Ampliar noticia
					</a>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>
				</table>
				</td>
			</tr>


			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>

