[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] using xsl:for-each-group, grouping by child nodes?

Subject: [xsl] using xsl:for-each-group, grouping by child nodes?
From: Eric Scheid <eric.scheid@xxxxxxxxxxxxxxx>
Date: Sat, 04 Oct 2008 17:38:36 +1000

I have export data that looks like this:

    <ROW MODID="3" RECORDID="1">
    <ROW MODID="3" RECORDID="2">
    <ROW MODID="3" RECORDID="3">
    <ROW MODID="3" RECORDID="4">

I'm trying to transform it into this:

    Team: mets, ny
            joe, 2
            mark, 11
            mike, 7

    Team: cubs, ny
            jane, 13

.. so naturally I thought of using for-each-group, only problem is I can't
find any examples which shows how to group-by using values in the child
nodes .. so I don't know if this is even possible, let alone exactly how to
specify it. I've tried a few different things to no avail.

Is this even possible?


Ironclad Networks
Information Architecture

"Providing tactical IA services to web agencies"

Current Thread