<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"/>
	</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 style="border-bottom-style:solid; border-bottom-width: 1px;border-bottom-color:#e7e7e7; padding:0px; font-size:4pt; " colspan="3">&#160;</td>
				</tr>
				<tr>
					<td colspan="3" style="font-size:4pt;">&#160;</td>
				</tr>
				<tr>
					<td valign="top" rowspan="2" style=" text-align:left;">
						<img width="271px" style=" float:left; ">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
					</td>
					<td colspan="2" valign="top" style=" padding-left:20px;">
						<span  style="font-weight: bold; font-size:16px; color:#b80e2b;">
							<xsl:attribute name="href"><xsl:value-of select="URL"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</span><br/><br/>
						<span style="font-size:11px; color:#484848;">
						<xsl:value-of select="Comments" disable-output-escaping="yes"/>
						</span>
						
					</td>
				</tr>	
				<tr>
				<td>
				<a style="float:right">
				<xsl:attribute name="href"><xsl:value-of select="URL"/></xsl:attribute>
				<img alt="Ampliar Información" style="border:0px" src="/ImagenesEduca/btn_Acceder_ca.png"></img>
				</a>
				</td>
				</tr>
				
			</xsl:when>
			<xsl:otherwise>
			<tr>
					<td style="border-bottom-style:solid; border-bottom-width: 1px;border-bottom-color:#e7e7e7; padding:0px; font-size:4pt; " colspan="3">&#160;</td>
				</tr>
				<tr>
					<td colspan="3" style="font-size:4pt;">&#160;</td>
				</tr>
				<tr>
				<td valign="top" rowspan="2" style=" text-align:left;">
				&#160;</td>

					<td colspan="2" valign="top" style="">
						<span  style="font-weight: bold; font-size:16px; color:#b80e2b;">
							<xsl:attribute name="href"><xsl:value-of select="URL"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</span><br/><br/>
						<span style="font-size:11px; color:#484848;">
						<xsl:value-of select="Comments" disable-output-escaping="yes"/>
						</span>
						
					</td>
				</tr>
				
				<tr>
				<td>
				<xsl:value-of select="PublishingImageCaption" disable-output-escaping="yes"/>
				</td>
				<td>
				<a style="float:right">
				<xsl:attribute name="href"><xsl:value-of select="URL"/></xsl:attribute>
				<img alt="Ampliar Información" style="border:0px" src="/ImagenesEduca/btn_Acceder_ca.jpg"></img>
				</a>
				</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>

