[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Acheiving ..2nd level grouping but with different

Subject: Re: Acheiving ..2nd level grouping but with different node structure ..
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 24 Jul 2002 18:56:33 +0100
Re:  Acheiving ..2nd level grouping but with different
Hi Kumar,

> Thank you so much for the solution while i was away.... I think
> there is one more problem in this ..correct me if i am wrong .. It
> can only pull data from a <uwr> nodeset only and not from <arr> .

At the point where you're having problems:

  <xsl:for-each
    select="key('distinct-region', @reg)
              [generate-id() =
               generate-id(key('distinct-reg-user',
                               concat(@userid, '+', @reg)))]">
    <tr>
      <!-- So From here how do i get same 'users' from <ARR> which
           is a sibling of this   -->
    </tr>
  </xsl:for-each>

the current node is a los element within the <uwr> element. Presumably
you want to get hold of the los element within <arr> element that has
the same userid and reg as the los element that you're currently on.

To do that, use the 'distinct-reg-user' key -- it will return both the
los elements with the same userid and reg, the first from <uwr> and
the second from <arr>, and you can create the pair of cells for each
of them:

  <xsl:for-each select="key('distinct-reg-user',
                            concat(@userid, '+', @reg))">
    <td> <xsl:value-of select="review[@type='N']"/></td>
    <td> <xsl:value-of select="review[@type='Y']"/></td>
  </xsl:for-each>

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.