|
[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
> 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
|
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
|

Cart








