﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="/data">
    <table>
      <tr>
        <td style="height:51px;">
          <span class="nps-h3Rojo">RECETAS</span>
        </td>
        <td style="border-bottom-style:solid; border-bottom-width: 1px;border-bottom-color:#e7e7e7; padding:0px; font-size:4pt; " colspan="3">&#160;</td>


      </tr>

      <xsl:apply-templates select="row"/>
    </table>
  </xsl:template>

  <xsl:template match="row">

    <tr>
      <td rowspan="3">
        <img alt="" width="200px">
          <xsl:attribute name="src">
            <xsl:value-of select="substring-before(substring-after(PublishingPageImage,'src=&quot;'),'&quot;')" disable-output-escaping="yes" />
          </xsl:attribute>
        </img>

      </td>
      <td width="100%" colspan="2" >
        <b>
          <xsl:value-of select="Title" />
        </b>
      </td>
      <td width="100%" />
    </tr>
    <tr>
      <td>
        <a href="{substring-before(Video, ', ')}">
          <img src="/ImagenesEduca/Nutricion/btn_video.jpg"/>
        </a>
      </td>
    </tr>

    <tr>
      <td width="100%" colspan="2">

        Tiempo: 	<xsl:value-of select="Tiempo" /> | Dificultad: <xsl:value-of select="Dificultad" /> | Raciones: <xsl:value-of select="@Raciones" />
        <br />Ingredientes:
        <xsl:value-of select="Ingredientes" disable-output-escaping="yes" />


      </td>
    </tr>
    
  </xsl:template>
</xsl:stylesheet>

