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

Re: Tricky inclusion match

Subject: Re: Tricky inclusion match
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 29 Mar 2005 21:12:59 +0100
count unique xsl
> Here is what I have so far, I have a match on "record".  I use a key
> "key_paint" to count my "group a" items and the same key to count my
> "groub b" items.  Group a and group b items are predifined as part of
> the xml source.  So, I achieve a unique count of "group a" and "group
> b" items and now I need to evaluate the total of these two.  In plain
> english:  "count unique items and then sum the count".  (see
> additional comments inline below)
> 
> 

That description makes it sound like you are counting nodes in teh
source, and summing values held in thse nodes. In that case you should
be able just to use the countand sum functions, there is no
transformation involved so you don't need to use apply-templates.

Although node-set is available in msxml and exslt so I'd guess you can
use that extension in both your environments if you choose to use that.
(Not tries the .net classes though)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.