<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">
	<tr>
	<td>
	<xsl:apply-templates select="row"/>
	</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!=''">
				<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;</td>
				</tr>
				<tr>
					<td valign="top" rowspan="5" style=" text-align:left;padding-right:10px;">
						<img style=" float:left; width:77px;">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
					</td>
					<td valign="top" style=" width:100%;">
						<a  style="color:#b80e2b;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><br/><br/>
						<span style="padding-top:5px; text-align:justify;font-family:Verdana;color:#484848;font-size:10px; font-weight:bold;">
						<xsl:value-of select="Comments" disable-output-escaping="yes"/>
						</span>
						
					</td>
          
				</tr>	
				<tr>
					<td colspan="2">
					<a style="font-family:Verdana;font-size:10px;font-weight:bold;color:#e11739;float:right; text-decoration:underline;">
					<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
					Ampliar Artículo
					</a>
					</td>
				</tr>
				<tr>
					<td style="font-size:4pt;">&#160;<br></br>
        </td>
				</tr>
				</table>
			</xsl:when>
			<xsl:otherwise>
			<table>
				<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:#b80e2b;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="3">
					<a style="font-family:Verdana;font-size:10px;font-weight:bold;color:#e11739;float:right; text-decoration:underline;">
					<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
					Ampliar Artículo
					</a>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="font-size:4pt;">&#160;<br></br>
        </td>
				</tr>
				</table>
			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>

