This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Grouping examples make my head spin
- From: "Charles Knell" <cknell at onebox dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 06 Aug 2002 07:38:57 -0700
- Subject: RE: [xsl] Grouping examples make my head spin
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks for your help. What was confusing me was that I misunderstood
this:
<xsl:for-each select="contractors/contractor/contract/@org[generate-id(.)=generate-id(key('orgsByOrg',.)[1])]">
to be some sort of value assignment, which I kept thinking it couldn't
be because generate-id() is a function which returns a value, not a variable
which accepts a value. With your help I realize that I was right, it
isn't an assignment, it's an equality test. Now that I grasp that, the
rest follows naturally.
--
Charles Knell
cknell@onebox.com - email
---- "Macaulay,Malcolm (US)" <Malcolm.Macaulay2@cnare.com> wrote:
> Hi Charles,
>
> Below is a sample XSLT which does (hopefully) something close to what
> you want. I've put comments into the XSLT to try to explain what is
> going on.
>
> I used the Muenchian method to get the unique @org's - take a look
> at Jeni T's good website (http://www.jenitennison.com/xslt/grouping/muenchian.html)
> and the archives of this list for more info.
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list