xsl-list
[Top] [All Lists]

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

2006-10-06 03:21:38
On 10/6/06, Robert Walpole <robert(_dot_)walpole(_at_)devon(_dot_)gov(_dot_)uk> 
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/ __________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>