RE: [xsl] Complex group-by with saxon:evaluate?

Subject: RE: [xsl] Complex group-by with saxon:evaluate?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 26 Sep 2006 19:33:26 +0100
Firstly, if only the element name varies, then you don't need xx:evaluate(),
you can use group-by="*[name()=$param]".

Secondly, if you tried something and it didn't work, then we need to know
exactly what you tried and exactly how it failed.

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

 

> -----Original Message-----
> From: Moritz Ringler [mailto:xsl-list@xxxxxxxxxxxxxxxxx] 
> Sent: 26 September 2006 19:28
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Complex group-by with saxon:evaluate?
> 
> I currently have the following section in my XSL 2.0:
>    <xsl:for-each-group select="bibtex:entry"
> group-by="tokenize(normalize-space(*/bibtex:refgroup),' *; *')">
>     <xsl:sort select="current-grouping-key()" order="ascending"/>
> 
> This works as expected.
> Now, I've tried to replace bibtex:refgroup with a stylesheet 
> parameter (say $groupby). I know this does not work in XSLT 
> without extensions.
> However I could not even
> get it to work using saxon:evaluate (in Saxon 8.6), though - 
> as far as I understand - it should be possible. Maybe someone 
> could help me out?
> 
> Moritz Ringler (xsl-list@xxxxxxxxxxxxxxxxx)

Current Thread