[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problems with copying duplicate nodes

Subject: Re: problems with copying duplicate nodes
From: Rahil Qamar <qamar_rahil@xxxxxxxxxxx>
Date: Wed, 29 Jun 2005 15:48:16 +0100 (BST)
Re:  problems with copying duplicate nodes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.