<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; background-image:url('/ImagenesEduca/SombraFrameGMap.gif');background-repeat:no-repeat;background-position:center top;">
		<tr>
		<td style="font-size:1px;">&#160;</td>
		<td style="padding-top:15px; padding-bottom:10px; border-bottom:1px solid #ececec;">
		<span class="nps-h4Rojo">
		Propuesta de cena
		</span>
		</td>
		<td style="font-size:1px;">&#160;</td>
		</tr>
		<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 colspan="3"  style=" text-align:center;">
						<img style=" width:600px; padding:10px;">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
					</td>
				</tr>
				<tr>
					<td colspan="3"  valign="top" style="padding-left:10px; padding-right:10px">
						<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 colspan="3" valign="top">
				<table cellpadding="0" cellspacing="0" width="100%">
					<td style="padding-left:10px; padding-right:10px; padding-bottom:10px; ">
						<span style="font-size:11px;">
							<xsl:value-of select="PublishingPageContent" disable-output-escaping="yes"/>
						</span>
						
					</td>
				    <td valign="bottom" style="padding:10px;">
				     <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_eu.png"></img>
				    </a>
				   </td>
				</table>
				</td>
        		</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td colspan="3"  valign="top" style="padding-left:10px; padding-right:10px">
						<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 colspan="3" valign="top">
				<table cellpadding="0" cellspacing="0" width="100%">
					<td style="padding-left:10px; padding-right:10px; padding-bottom:10px; ">
						<span style="font-size:11px;">
							<xsl:value-of select="PublishingPageContent" disable-output-escaping="yes"/>
						</span>
						
					</td>
				    <td valign="bottom" style="padding:10px;">
				     <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_eu.png"></img>
				    </a>
				   </td>
				</table>
				</td>
        		</tr>

			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>

