|
Subject: Re: Conflicting Node Values From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx> Date: Thu, 25 May 2000 16:06:57 +0100 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Conflicting Node Values, Sebastian Rahtz | Thread | Re: Conflicting Node Values, Sebastian Rahtz |
| RE: getting element name into html , Paulo Gaspar | Date | Scripting in an XSL Stylesheet...Ho, Jonathan Asbell |
| Month |