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