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

Re: Result count in a for-each with an embedded if

Subject: Re: Result count in a for-each with an embedded if
From: "Bob DuCharme" <bob@xxxxxxxxx>
Date: Tue, 19 Jun 2001 13:05:04 -0400
xslt count for each
> Tring to do a count of the results of the following snip:
...
> There were XX articles found.

I'm not sure about the role of the xsl:if and the translate() in your
counting. Do you want to just count the number of articles, in which case
you only need the count function,

  <xsl:template match="articles">
    <!-- whatever else -->
    There were <xsl:value-of select="count(article)"/> articles found.
  </xsl:template>

or do you need to only count articles meeting a certain condition?

Bob DuCharme            www.snee.com/bob             <bob@
snee.com>      see http://www.snee.com/bob/xsltquickly for
info on new book "XSLT Quickly" from Manning Publications.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.