This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about meucheun method (using multiple keys)


> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]