It still seems like there is an issue
<xsl:for-each-group select="
xmlReportOutput/reportOutput/records/record" group-by="
saxon:evaluate($sortColumn1)='A'">
<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>
XSL transformation failed due to the following error:
Error in Xpath 2.0 expression Unknown function Name and number of arguments
do not match any function.
Regards,
Tom Maciejewski
Société Générale
Information Technology
1221 Avenue of the Americas
New York, NY 10020
Tel. (212) 278-7103
Cell. (917) 690-9541
Andreas L
Delmelle To:
[email protected]
<[EMAIL PROTECTED] cc:
dora.be> Subject: Re: group-by
12/11/2005 02:04
PM
Please respond to
fop-users
On Dec 7, 2005, at 22:52, [EMAIL PROTECTED] wrote:
Hi,
I saw this question was still unanswered. This is most likely because
it is indeed slightly OT for this list. For XSLT-related questions,
you may want to check out the Mulberry XSLT list in the future.
> 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 ) .
I haven't had much experience with XSLT 2.0 yet, but I suppose, since
the group-by attribute must be an expression, you could try something
like:
group-by="saxon:evaluate($sortColumn1)='A'"
HTH!
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
*************************************************************************
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]