<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="95%" id="table73" style="background-color:#f5f5f5">
		<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=" text-align:center;">
						<img style="  ">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
					</td>
				</tr>
				<tr>
					<td  valign="top" style="">
						<span class="nps-h3Rojo">
							<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</span><br/><br/></td>
				</tr>
				<tr><td>
						<span>
							<xsl:value-of select="PublishingPageContent" disable-output-escaping="yes"/>
						</span>
						
					</td>
				</tr>
        <tr>
          <td>
            <a style="float:right;">
              <xsl:attribute name="href">
                <xsl:value-of select="substring-before(enlace,',')"/>
              </xsl:attribute>
              <img alt="Acceder" style="border:0px" src="/ImagenesEduca/btn_Acceder.jpg"></img>
            </a>
          </td>
        </tr>
			</xsl:when>
			<xsl:otherwise>
<tr>
	<td style="padding-bottom:15px;padding-top:15px;border-bottom:1px solid #ececec;">
		<span style="color:#b80e2b; font-family:'Verdana';font-size:14px;font-weight:bold;">
		PROPUESTA DE CENAS
		</span>
	</td>
	</tr>
<tr>
	<td style="padding-top:5px; padding-bottom:15px;border-bottom:1px solid #ececec; background-color:#fff;">				<tr>
					<td  valign="top" style="">
						<span class="nps-h3Rojo">
							<xsl:attribute name="href"><xsl:value-of select="FileRef"/></xsl:attribute>
							<xsl:value-of select="Title" />
						</span><br/><br/></td>
				</tr>
				<tr><td>
					<span>
						<xsl:value-of select="Comments" disable-output-escaping="yes"/>
					</span>
					
				</td>
				</tr>			
			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>

