<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" style="background-color:#f5f5f5; border-right:5px solid #fff;border-bottom:5px solid #fff; background-image:url('/ImagenesEduca/BackDeg.gif');background-repeat:no-repeat;background-position:center top; ">
		<tr>
		<td style="padding:10px;border-bottom:1px solid #ececec;">
		<span class="nps-h4Rojo" >
      Serunion-eko Errezetak
    </span>
		</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  style=" text-align:center; padding-left:10px; padding-right:10px; padding-top:10px;">
						<img style=" width:282px;">
							<xsl:attribute name="src"><xsl:value-of select="$ImageUrl"/></xsl:attribute>
						</img>
					</td>
				</tr>
				<tr>
					<td  valign="top" style=" padding: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 valign="top" style="padding-left:10px; padding-right:10px; height:195px; font-size:11px;">
						<span>
							<xsl:value-of select="PublishingPageContent" disable-output-escaping="yes"/>
						</span>
						
					</td>
				</tr>
        <tr>
          <td style="padding-right:10px; padding-bottom: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>
        </tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td  valign="top" style=" padding: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 valign="top" style="padding-left:10px; padding-right:10px; height:195px; font-size:11px;">
						<span>
							<xsl:value-of select="PublishingPageContent" disable-output-escaping="yes"/>
						</span>
						
					</td>
				</tr>
        <tr>
          <td style="padding-right:10px; padding-bottom: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>
        </tr>

			</xsl:otherwise>
		</xsl:choose>
</xsl:template>
</xsl:stylesheet>

