This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: efficiency


> Is there a more efficient way of doing this:
> 
> <xsl:if test="count(Memos/Memo) &gt; 1">
> 
> <xsl:for-each select="Memos/Memo">
> 
> <xsl:if test="position() &gt; 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() &gt; 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]