|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxx - email
---- "Macaulay,Malcolm (US)" <Malcolm.Macaulay2@xxxxxxxxx> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








