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

RE: Eliminating duplicate nodes

Subject: RE: Eliminating duplicate nodes
From: "Mac Martine" <pub@xxxxxxxxxxxxxxxx>
Date: Tue, 15 Oct 2002 08:43:14 -0700
xsl unique duplicate
I know this is a weird situation, but I will have multiple nodes with
the same id's that will have different sets of children. Again, I
realize this sounds weird, but there is good reason, and there's really
no way around it in my situation.
So, I just want to traverse through every single node in the xml tree,
and display the id of every node without duplicating.
So, again, I could have:

<main>
<page id="newPage>
    	<chapter id="chapter1" />
	<chapter id="chapter2" />
</page>
<page id="newPage>
    	<chapter id="chapter1" />
	<chapter id="chapter2" />
	<chapter id="chapter3" />
</page>
</main>

...and I would want to display...

chapter1
chapter2
chapter3

Please help me :)
Thanks a lot-
 Mac




-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Vasu
Chakkera
Sent: Tuesday, October 15, 2002 2:10 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Eliminating duplicate nodes

>Notice that although the first 2 'contact' nodes have the same id, I
>want to traverse inside them.
why??

You wanted to select unique nodes, and you also want some of them to be
out 
of this constraint. is there any special condition or rule that says.. 
"These set of nodes need not be unique"??

(Condition like.. The first node need not be unique .. or . contact id =
001 
need not be unique  etc.. )

Vasu

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.