yes -- the node that has the maximum value is in position() = 1 (we sorted in descending order) i'll try to do another test for values in other position() = 2 .. position()= n and get the count.
Thanks, M ________________________________ From: Deepak Shetty <[email protected]> To: JMeter Users List <[email protected]> Sent: Tue, November 24, 2009 2:48:21 PM Subject: Re: xslt help -count the number of max values in a thread ok ill have to take a look. XSLT is a functional language , a variable once assigned a value cant be changed (but you can pass in different values / take advantage of scope to work around this). Wouldnt you first find out what the maximum value is , then simply select the count of nodes that have the value? regards deepak On Tue, Nov 24, 2009 at 2:21 PM, Maya Hague <[email protected]> wrote: > I would like to get the count of all maximum times (from the total time > colum) in the detailed-report from 5 iterations of 1 thread , say I have > total time - > thread1_iteration1 - 11ms > thread1_iteration2 - 12ms > thread1_iteration3 -14ms > thread1_iteration4 - 13ms, > thread1_iteration5 - 14ms. > > I expect the maxcount (which is 14ms) = 2 > I pass the nodes/time to the template called maxcount, added a param, > sorted in descending order and added the test condition. but I am not to > increment the counter variable - I am not sure how do that. > > Thanks for your help > > > > ________________________________ > From: Deepak Shetty <[email protected]> > To: JMeter Users List <[email protected]> > Sent: Tue, November 24, 2009 10:34:08 AM > Subject: Re: xslt help -count the number of max values in a thread > > It is not clear what you want to do. Provide an example of what output you > expect, > though you might better answers on XSLT forums. > > regards > deepak > > On Mon, Nov 23, 2009 at 11:26 PM, Maya Hague <[email protected]> > wrote: > > > Hi, > > Can someone help me count the number of maximum values for a thread in > > xslt. I would like to do something like > > > > <xsl:param name ="count"/> > > <xsl:for-each select="$nodes"> > > <xsl:sort data-type="number" order="descending" /> > > <xsl:if test="position() = 1"> > > <xsl:value-of select="$count+1" /> > > </xsl:if> > > </xsl:for-each> > > > > Thanks in advance > > Maya > > > > > > > > > > >

