[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Using keys in templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 13 Jul 2004 15:39:03 +0100
> Would it be possible to kill the if using a syntax like :

yes:

zap the rest:
<xsl:template match="module/dist"/>

handle the first:
<xsl:template match="module/dist[generate-id(.) = generate-id(key('dists',@name)]">
something
</xsl:template>



________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member