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

RE: first n nodes from a current-group

Subject: RE: first n nodes from a current-group
From: "Manish_Jaiswal" <Manish_Jaiswal@xxxxxxxxxx>
Date: Fri, 8 Feb 2008 12:23:42 +0530
 RE: first n nodes from a current-group
This XSLT code when I am using on Sun Solaris with saxon9, I m getting
the desired output but when I used same code on Windows with Altova6,
Its generating very odd output. Is this a problem of Altova6? I don't
remember exactly but I faced same problem many times where Saxon is
generating meaningful output but not Altova.


-----Original Message-----
From: Manish_Jaiswal
Sent: Thursday, February 07, 2008 7:50 PM
To: 'Michael Kay'; xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: first n nodes from a current-group

Thank you very much Michael. It's working.


-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: Thursday, February 07, 2008 7:06 PM
To: Manish_Jaiswal; xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: first n nodes from a current-group

> But I wanted only the first two name elements having highest counts.
> that is output like:


  <xsl:for-each-group select=" School/student
                      group-by="name/tokenize(., ';\s*')">
    <xsl:sort data-type="number" select="count(current-group())"
order="descending" />
    <xsl:sort select="current-grouping-key()"/>
    <xsl:if test="position() <= 2">
      <name count="{count(current-group())}">
        <xsl:value-of select="current-grouping-key()"/>

Michael Kay

This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE
COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the
sender by email and delete all copies; your cooperation in this regard is

Current Thread


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.
First Name
Last Name
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.