[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] problem with xsl:if


Subject: [xsl] problem with xsl:if
From: "Yann Verlynde" <yverlynde@xxxxxxxxx>
Date: Fri, 15 Nov 2002 10:52:21 +0100

Hello,

How can I do to compare the 2 values codenet in a xsl:if

I tried: <xsl:if test="../codenet[position()] = ../codenet[position()+1]">
but it doesn't work

 <agent id="013">
  <datenaissance>27/02/1967</datenaissance>
  <sexe>M</sexe>
  <cadreemploi>emploi3</cadreemploi>
  <codenet>3</codenet>
  <specialite>specialite3</specialite>
  <discipline>discipline3</discipline>
  <datedebut>3/01/1977</datedebut>
 </agent>
 <agent id="014">
  <datenaissance>27/02/1977</datenaissance>
  <sexe>F</sexe>
  <cadreemploi>emploi4</cadreemploi>
  <codenet>4</codenet>
  <specialite>specialite4</specialite>
  <discipline>discipline4</discipline>
  <datedebut>4/01/1977</datedebut>
 </agent>

Thanks in advance


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread