|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








