position() and last()

Subject: position() and last()
From: "Emmanuel.Leguy" <Emmanuel.Leguy@xxxxxxx>
Date: Wed, 29 Sep 1999 11:32:57 +0200
Hello,
 
I am using cocoon 1.2. I can't use 'position()' or 'last()' in <xsl:if>
test. I tried this example of the xslt specification:

<xsl:template match="namelist/name">
  <xsl:apply-templates/>
  <xsl:if test="not(position()=last()))">, </xsl:if>
</xsl:template>

and a comma is written after the last name.

Does cocoon recognize 'position' and 'last()'?
Must I install cocoon 1.4?

I can't find tutorials about xsl. Everything I found was obsolete and
the xslt specification is sometimes hard to understand (specially for a
french). Do you know a good and recent tutorial?
I am looking for some web sites which use cocoon and some code examples
too.

Thank you,

Emmanuel Leguy
--
Laboratoire d'Informatique Fondamentale de Lille (LIFL)
Universite des Sciences et Technologies de Lille
Batiment M3 Cite Scientifique
59655 Villeneuve d'Ascq Cedex
FRANCE
tel: 03 20 33 63 38
fax: 03 20 43 65 66
mailto:Emmanuel.Leguy@xxxxxxx
http://www.lifl.fr


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


Current Thread