Feuille de style xsl

Publié le par Nassim & Marco.


Voici notre feuille de style xsl:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

 <xsl:template match="element">

 <xsl:choose>

 <xsl:when test="(./data[contains(text(),'NOM')]) and (following-sibling::element[1][./data[contains(text(),'ADJ')]])">
  <br />
    <br />
 <font color="blue">
<strong>
  <xsl:value-of select="./data[3]" />
&#160;
</strong>
  </font>

  <xsl:text />

  </xsl:when>

 <xsl:when test="(./data[contains(text(),'ADJ')]) and (preceding-sibling::element[1][./data[contains(text(),'NOM')]])">

 <font color="red">
<strong>
  <xsl:value-of select="./data[3]" />
</strong>
  </font>

 
  </xsl:when>

  </xsl:choose>

  </xsl:template>

  </xsl:stylesheet>

 

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article