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

Re: Display the number of records in a group

Subject: Re: Display the number of records in a group
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 09 Mar 2010 09:57:43 +0000
Re:  Display the number of records in a group
On 09/03/2010 06:29, anil kumar wrote:
Hi,

Sorry if i confused you.

Let me explain more clearly


you are outputting a value on every group when you just want to output one value
so you want


<xsl:value-of select="last()"/>                          giving o/p as
  <mezo eazon="0A0001D003A">1111111111111111</mezo>


last() should give all 8's not all 1's (I'd guess)


so if you only want it output once guard it with
<xsl:if test="position()=last()">
    <mezo eazon="0A0001D003A"><xsl:value-of select="position()"/></mezo>
</xsl:if>




My xml consists of 11 records , ================================ 123 ABC GOOD 10 123 ABC GOOD 20 123 ABC GOOD 30


XML doesn't have records but elements, it would be more helpful to show the xml markup.


David




________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


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.