Re: [xsl] Grouping / Count Issue

Subject: Re: [xsl] Grouping / Count Issue
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Dec 2005 15:04:23 GMT
or, if you are using xslt2



<xsl:stylesheet version="2.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:key name="f" match="Field" use="@name"/>

<xsl:template match="/">
    <xsl:value-of separator="" 
		  select="Report/GrandTotal/RecordValues/Record/FieldValue[key('f',@fieldName)/@dataType='F']/
                 ('&#10;',
                  ../FieldValue[key('f',@fieldName)/@dataType='V']/string(@fieldValue),substring(key('f',@fieldName)/@title,1,2),
                  ' ',string(@fieldValue))"/>
</xsl:template>

</xsl:stylesheet>


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread