Subject: Re: [xsl] XSLT data fetching from multiple places in XML file From: Glenn Thomas Hvidsten <gth@xxxxxxxxx> Date: Tue, 12 Apr 2005 09:08:53 +0200 |
I wrote
<xsl:template match="version[@version]"> <xsl:if test="not(position()=last())">, </xsl:if> <xsl:value-of select="@version"/> </xsl:template>
make that
<xsl:template match="version[@version]"> <xsl:if test="not(position()=1)">, </xsl:if> <xsl:value-of select="@version"/> </xsl:template>
or
<xsl:template match="version[@version]"> <xsl:value-of select="@version"/> <xsl:if test="not(position()=last())">, </xsl:if> </xsl:template>
________________________________________________________________________ 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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT data fetching from m, David Carlisle | Thread | Re: [xsl] XSLT data fetching from m, Havard Ferstad |
RE: [xsl] XSLT 1.0 Grouping, aspsa | Date | Re: [xsl] Having same number of row, Brian Chrisman |
Month |