RE: [xsl] for-each-group

Subject: RE: [xsl] for-each-group
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 17 Dec 2005 00:43:05 -0000
> After sending this email I realized that my or in my group-by  field
> actually worked.
> <xsl:for-each-group 
> select="xmlReportOutput/reportOutput/records/record"
>             group-by="saxon:evaluate($sortColumn1)='Buy' or
> saxon:evaluate($sortColumn1)='Sell'">
> 
> If I had more than two values is there a better way to 
> emulate a SQL  IN clause?

As stated in previous reply: use (X = ('a', 'b', 'c'))

I thought we had also established that you could replace the very expensive
construct saxon:evaluate($sortColumn1) with the much cheaper (and more
standard) *[name()=$sortColumn1].

Michael Kay
http://www.saxonica.com/

Current Thread