xsl-list
[Top] [All Lists]

Re: Comma in between!

2004-09-13 02:45:58

<xsl:for-each select="B|C">
  <xsl:value-of select="."/>
  <xsl:if test="postion()!=last()">, </xsl:if>
</xsl:for-each>

In XSLT2 you could simplify this to

<xsl:value-of select="B|C" separator=", "/>

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


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