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]

Re: string-length select="preceding-sibling::ROW[entered_formatted_day=$currentFruit]" is too slow


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


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