This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSTL - Help / Easy one!
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 6 Feb 2002 08:46:11 -0000
- Subject: RE: [xsl] XSTL - Help / Easy one!
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:if test="position()!=last()">,</xsl:if>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ragan
> Sent: 06 February 2002 00:42
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: [xsl] XSTL - Help / Easy one!
>
>
> How can I remove the "trailing coma" on this XSLT output
> with our using an "if" statement:
>
> XSLT:
> <xsl:template match="Portfolio/Stock">
> <xsl:apply-templates select="Symbol"/>,
> </xsl:template>
>
>
> Output:
> BA, BA, AAA, BBB,
>
> Input:
> <Root>
> <Portfolio>
> <Stock>BA</Stock>
> <Stock>BA</Stock>
> <Stock>AAA</Stock>
> <Stock>BBB</Stock>
> </Portfolio>
> </Root>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list