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

Re: Conflicting Node Values

Subject: Re: Conflicting Node Values
From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx>
Date: Thu, 25 May 2000 16:06:57 +0100
jeni values
Sebastian Rahtz wrote:
>Jeni Tennison writes:
> > 
> > <xsl:if test="generate-id(.) = generate-id(../ALIAS[1])">...</xsl:if>
> > 
>
>or
>
> <xsl:if test="count(.|../ALIAS[1])=1">
>
>as Mike Kay has taught us to say in our prayers?

Neat (though somewhat obscure!).  Might there be advantages (aside from
brevity) with using the same technique for testing for the first in a keyed
group using the Muenchian grouping method? i.e. instead of:

//tracker-id[generate-id(.)=generate-id(key('tid',.)[1])]

use:

//tracker-id[count(.|key('tid',.)[1])=1]

Just a thought.

Cheers,

Jeni

Dr Jeni Tennison
Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE
Telephone 0115 9061301 ? Fax 0115 9061304 ? Email
jeni.tennison@xxxxxxxxxxxxxxxx



 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.