Re: [xsl] working out where the last() is

Subject: Re: [xsl] working out where the last() is
From: "Alexander Johannesen" <alexander.johannesen@xxxxxxxxx>
Date: Fri, 6 Oct 2006 20:21:25 +1000
On 10/6/06, Robert Walpole <robert.walpole@xxxxxxxxxxxx> wrote:
Kingswear, Totnes, Torbay

Completely untested, going by intuition late on a friday night ;


<xsl:for-each select="areaserved//*[count(child::*)=0]">
  <xsl:value-of select="@name" />
  <xsl:if test="not(last())">, </xsl:if>
</xsl:for-each>

Should give you some starting point.


Alex -- "Ultimately, all things are known because you want to believe you know." - Frank Herbert __ http://shelter.nu/ __________________________________________________

Current Thread