This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Conflicting Node 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@epistemics.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list