Re: [xsl] about meucheun method (using multiple keys)

Subject: Re: [xsl] about meucheun method (using multiple keys)
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 03 Jul 2002 18:53:31 +0200
> with mucheun mehtod i can only group them with one condition (either
> name or type) but i think there must be a way to archive such. any
> feedback with be a great help

That's not correct, you only have to change the key.

Example:

<xsl:key name="group-books-by-author-and-type" match="book" use="concat(author, '::', type)"/>

'::' is the separator to avoid conflicts. The rest is the same as with "normal" grouping. Of course you also have to change the key() like key('group-books-by-author-and-type', concat(author, '::', type)).

Regards,

Joerg


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread