xsl-list
[Top] [All Lists]

Re: problems with copying duplicate nodes

2005-06-29 07:48:16
Hi David


--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--