Re: [xsl] problems with copying duplicate nodes

Subject: Re: [xsl] problems with copying duplicate nodes
From: Rahil Qamar <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 29 Jun 2005 15:48:16 +0100 (BST)
Hi David


--- David Carlisle <davidc@xxxxxxxxx> wrote:

> It _needs_ to use a node-set function, but as posted
> you did not use it
> (you need common:node-set($rtf))
> 

Had I to use the node-set function how would the
solution differ from the one that Mukul provided
below?

<xsl:for-each select="$rtf/temp/TD[generate-id() =
generate-id(key('by-td', .)[1])]">
     <xsl:copy-of select="." />
</xsl:for-each>

Im interested in educating myself with the different
ways of solving a given problem so that I can optimise
my coding.

Would appreciate a response.

Thanks
Rahil



		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

Current Thread