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

Combining two nodesets

Subject: Combining two nodesets
From: Adam van den Hoven <adam@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Dec 2003 17:16:29 -0800
xsl combine nodesets
Ah, if only it was just a union. I know better than that!

My situation is that I have a nodeset from document A and a nodset from document B and I want to get a node set where I have all the nodes from A plus all the nodes from B that does not have a name equal to one of the nodes from A.

Which is to say if I have:

<foo>
   <a>A</a>
   <b>B</b>
   <c>C1</c>
   <c>C2</c>
   <d>D</d>
</foo>

and

<bar>
   <a>A2</a>
   <d>D2</d>
   <e>E</e>
   <s>S</s>
</bar>

I want to end up with:
   <a>A</a>
   <b>B</b>
   <c>C1</c>
   <c>C2</c>
   <d>D</d>
   <e>E</e>
   <s>S</s>

Any ideas?

Adam


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.