Subject:Sum and Count together Author:Elias Huter Date:21 Jun 2007 03:21 AM
You dont have to sum the result as count already returns only one value. If you are in a for-each loop and therefore whant to sum it up, do it the other way:
Declare a variable outside the loop and fill it with the result of the count statement. So you will have all desired nodes counted.
Subject:Sum and Count together Author:Dogmar S Date:21 Jun 2007 08:28 AM
Hello Elias,
What you have said makes sense I think, but I am not sure if I understand. If I do the following:
<xsl:value-of select="count(people)"/>
then I get the number that I am looking for, but it is in a loop and so I am not summing those numbers (which is what I would really need to do). That is why I tried to sum the return of the count. Does this make sense? Anything else I can try? Thank you!
Subject:Sum and Count together Author:Tony Lavinio Date:21 Jun 2007 10:53 AM
Could you provide a sample of your input so we can see
what you're working against, and also a sample of your
output, and also which version of Stylus Studio you are
using (since this is the Stylus Studio support forum).