xsl-list
[Top] [All Lists]

Re: Grouping / Count Issue

2005-12-01 08:04:23

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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>