[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: xslt 2 grouping
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 11 Jul 2002 23:42:13 +0200
DPawson@xxxxxxxxxxx wrote:
<p>
<el att='a'>x</el>
<el att='b'>x</el>
<el att='c'>x</el>
<el att='d'>y</el>
</p>
I have about 1200 lines of this, so keys are out.

Why discount keys?


Because I have so many variants on (above) x, y.
ditto on the att values, so I would have to define about 200 unique
keys.

<xsl:key name="generic" match="el" use="concat(@att,':',.)"/>

Iterate over @att, group by el content, or vice versa.
What's the problem?

J.Pietschmann


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



Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member