ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

Re: Use 'count' or xsl:variable?

Subject: Re: Use 'count' or xsl:variable?
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>
Date: Mon, 24 Dec 2001 03:36:20 +0100
count in xsl
Hello Markus,

this is a general grouping problem. Search for 'grouping' and 'key' or
'xsl:key' on the list or look at Jeni's site:
http://www.jenitennison.com/xslt/grouping/muenchian.html.

Christmas regards to all,

Joerg

> Hello,
>
>
> > Jeni Tennison wrote:
>
> > .... For example to
> > count how many books there are with a last_name of 'Austen', you would
> > use:
> >
> >   count(/library/book[last_name = 'Austen'])
> >
> > (although if you're doing this a lot you'll be better off with a key)
>
>
> I have a similar (and follow up) problem like Marina, so I use her
example:
>
>
> Would there be any way to extract a summary containing the last name
> of the authors and the number of books they have written?
>
> like:
>
> <executive_summary>
>   <author last_name="Austen" nr_of_books="41" />
>   <author last_name="..." nr_of_books="..." />
>   ...
> </executive_summary>
>
>
> Whatever I was able to think of displayed multiple results for each
> author.
>
> So my problem is to call:
>
>   count(/library/book[last_name = '$current_author_i_am_dealing_with'])
>
> only the first time I encounter him.
>
>
> Thanks on any suggestions,
>
> Markus


 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.