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

RE: Counting uniquely selected values of elements

Subject: RE: Counting uniquely selected values of elements
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 15 Apr 2003 08:55:12 +0300
match use xsl key name
Hi,

> The a and b elements are always there but there might be some 
> (d) elements 
> before the c element: a/b/d/c, perhaps a/b/d/e/f/c.
> 
> Kan I in the solution below, just substitute a/b/c with a/b//c?

In the key match you can use

  <xsl:key name="uniq" match="c" use="." />

if c is not used as a non-countable item. If a/b//c selects all the c elements you want, then it'll work.

Cheers,

Jarno - Clan of Xymox: I Want You Now

 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.