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

Re: Count() on Distinct, but want to include additiona

Subject: Re: Count() on Distinct, but want to include additional condition
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Wed, 10 Aug 2005 17:14:40 +0200
count and distinct
Hi,

Tempore 17:06:07, die 08/10/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Ian E. Powell <Ian.Powell@xxxxxxxxxxxxx>:

I am having a lil issue with a count(distinct element) situation. I am
pretty new to XSLT scripting and the issue seems rather trivial.
Generating the Unique MDBService elements works great but I also want to
include 2 counts per distinct MDBservice based upon MDBDivision.
(ie) count(  MDBService and MDBDivision = "MCAP") & count(  MDBService
and MDBDivision = "HSS")

I'm not sure what you're looking for precisely (what ouput do you expect with the sample?) - but here's a guess:


count(key('service',MDBService)[MDBDivision ='MCAP'])
&
count(key('service',MDBService)[MDBDivision ='HSS'])

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Vincit omnia simplicitas
Keep it simple

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.