xsl-list
[Top] [All Lists]

Combining two nodesets

2003-12-03 18:16:29
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



<Prev in Thread] Current Thread [Next in Thread>