This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: efficiency
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 26 Mar 2002 21:37:02 -0000
- Subject: RE: [xsl] efficiency
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Is there a more efficient way of doing this:
>
> <xsl:if test="count(Memos/Memo) > 1">
>
> <xsl:for-each select="Memos/Memo">
>
> <xsl:if test="position() > 1"><xsl:text>88,</xsl:text><xsl:value-of
> select="."/></xsl:if>
>
> </xsl:for-each>
>
> </xsl:if>
>
I think it's equivalent to:
<xsl:for-each select="Memos/Memo[position() > 1]">
<xsl:text>88,</xsl:text><xsl:value-of select="."/>
</xsl:for-each>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list