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: Grouping examples make my head spin


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


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