This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: string-length select="preceding-sibling::ROW[entered_formatted_day=$currentFruit]" is too slow
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: Re: string-length select="preceding-sibling::ROW[entered_formatted_day=$currentFruit]" is too slow
- From: Mark Sproule <msproule at cadvision dot com>
- Date: Mon, 3 Apr 2000 13:25:33 -0600
- Reply-To: xsl-list at mulberrytech dot com
What about:
<xsl:for-each select="ROW">
<xsl:sort select="entered_formatted_data">
<xsl:variable name="currow"><xsl:value-of select="entered_formatted_data"></xsl:variable>
<xsl:if test="not(position() = 1) and not(ROW[position() - 1] = $currow)">
<h2><xsl:value-of select="entered_formatted_data"/></h2>
</xsl:if>
... row data ...
</xsl:for-each>
Haven't tested it but I think it would work. You can do without the sort if the rows are in date order.
... Mark
application/ms-tnef