This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: about meucheun method (using multiple keys)
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 03 Jul 2002 18:53:31 +0200
- Subject: Re: [xsl] about meucheun method (using multiple keys)
- References: <F59Oebzm0zZXCkDDRqV00005760@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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