This may be slightly off topic but maybe someone could help me out.

I am confused about the group-by XSL functionality


            <xsl:for-each-group
select="xmlReportOutput/reportOutput/records/record"
group-by="saxon:evaluate($sortColumn1)">
                  <xsl:sort select="saxon:evaluate($sortColumn1)"
order="{$sortColumn1Order}"/>
                  <xsl:variable name="group1"
select="current-grouping-key()"/>
                  <xsl:call-template name="RenderByDesk">
                        <xsl:with-param name="tradeType" select="$group1"/>
                  </xsl:call-template>
            </xsl:for-each-group>



However  the values in $sortColumn1   has 4 different possibilities ....
lets say "A", "B", "C", "D"

and I need some logic that groups all "A"s into one group and everything
else into another group ( A = group1 -- B,C,D = group2 ) .

Is there an easy way to do that?

*************************************************************************
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration.   
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates 
shall be liable for the message if altered, changed or falsified. 

*************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to