[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
On 09/03/2010 06:29, anil kumar wrote:
Hi, 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>
XML doesn't have records but elements, it would be more helpful to show the xml markup. David
This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
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
|