<rules xmlns="http://namespaces.plone.org/xdv" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <!-- Head: title,base,styles and js -->
<!--  <prepend theme="/html/head/base" content="/html/head/base/@*" />
  <before theme="/html/head/meta[@name='xdv-meta']" content="/html/head/meta" />
  <before theme="/html/head/meta[@name='xdv-link']" content="/html/head/link[@rel='stylesheet']" />
  <before theme="/html/head/meta[@name='xdv-css']" content="/html/head/style" />
  <before theme="/html/head/meta[@name='xdv-js']" content="/html/head/script" />
  <before theme="/html/head/meta[@name='xdv-link']" content="/html/head/link" />
-->
  <prepend theme="/html/head" content="/html/head/*"/>

  <!-- copy body attributes -->
  <prepend theme="/html/body" content="/html/body/@*" />

  <!-- copy personaltools and searchbox -->
<!--MKT  <replace theme="//*[@id='portal-personaltools']" content="//*[@id='portal-personaltools']" />
<replace theme="//*[@id='portal-searchbox']" content="//*[@id='portal-searchbox']" />-->

  <!-- language selector -->
  <!--MKT<after content="//*[@id='portal-header']/../*[@id='portal-languageselector']" theme="//*[@id='portal-personaltools-wrapper']" />-->
  
  <!-- copy portal logo attributes -->
  <!--MKT<prepend theme="//a[@id='portal-logo']" content="//a[@id='portal-logo']/@*" />-->
    


  <!-- copy globalnav preserving no-whitespace between elements -->
  <!--MKT<append theme="//*[@id='portal-globalnav']" >
    <xsl:for-each select="//*[@id='portal-globalnav']">
      <xsl:copy-of select="*"/><xsl:text> </xsl:text>
    </xsl:for-each>
  </append>
  -->

  <!-- copy breadcrumbs & messages -->
<!--MKT
<replace theme="//*[@id='portal-breadcrumbs']" content="//*[@id='portal-breadcrumbs']" />
  <replace theme="//*[@id='kssPortalMessage']" content="//*[@id='kssPortalMessage']" />
  -->
  <!--edit mode -->
  <prepend theme="//div[@id='editplaceholder']" content="//*[@id='content']/../@*" />
  <drop theme="//*[@id='edit-bar']" if-content="not(//div[@class='documentEditable'])"/>
  <replace theme="//*[@id='edit-bar']" content="//*[@id='edit-bar']" />


  <!-- copy content -->
  <replace theme="//*[@id='content']" content="//*[@id='content']" />

  <!-- copy attributes to column content, useful for sidecolumns -->
  <prepend theme="//*[@id='portal-column-content']" content="//*[@id='portal-column-content']/@*" />
  <!-- copy sidecolumns -->
  <replace theme="//*[@id='portal-column-one']" content="//*[@id='portal-column-one']" />			
  <replace theme="//*[@id='portal-column-two']" content="//*[@id='portal-column-two']" />

  <!-- copy footer & colophon -->
<!--  <replace theme="//*[@id='portal-footer']" content="//*[@id='portal-footer']" /> -->
<!--<replace theme="//*[@id='portal-colophon']" content="//*[@id='portal-colophon']" />-->
  <!-- copy siteactions -->
  <!--MKT  <replace theme="//*[@id='portal-siteactions']" content="//*[@id='portal-siteactions']" />-->


    <!-- borrar el slider en todas als paginas no home -->
    <drop if-content="//body[not(contains(@class,'section-escuela-de-negocios-ealde'))]" theme="//*[@id='slider1']" />
    <drop if-content="//body[not(contains(@class,'section-escuela-de-negocios-ealde'))]" theme="/html/head/script[@class='headslider']" />

  <!-- eliminar ufv en paginas seleccionadas -->
<drop if-content="//title[contains(text(),'Máster en Dirección Comercial y Márketing')]" theme="//*[contains(@class, 'ufv')]" />
<drop if-content="//title[contains(text(),'Máster en Dirección y Gestión de Proyectos')]" theme="//*[contains(@class, 'ufv')]" />
<drop if-content="//title[contains(text(),'Máster en Dirección y Gestión del Capital Humano')]" theme="//*[contains(@class, 'ufv')]" />

<drop if-content="//title[contains(text(),'Máster en Dirección Financiera')]" theme="//*[contains(@class, 'ufv')]" />
<drop if-content= "//title[not(contains(text(),'Escuela de negocios EALDE')) and not(contains(text(),'Máster en Administración y Dirección de Empresas'))]" theme="//*[contains(@class, 'ufv')]" />
  
</rules>

