xsl-list
[Top] [All Lists]

[xsl] Correlate elements in 2 different trees?

2006-06-14 06:51:32
I am trying to figure out how to process 2 trees in a XML file using xslt 1.0. First I need to sort the elements alphabetically. Then correlate the element and its attributes found in both trees, then output the result to a html table.
Any advise how to do this?  Thanks in advance!

Input xml:
<Tree1>
 <element3>
   <child3 xxx yyy>

 <element2>
   <child2 xxx yyy>

 <element1>
   <child1 xxx yyy>
</dataset1>

<Tree2>
 <element1>
   <child1 aaa bbb>

 <element3>
   <child3 bbb>

 <element2>
   <child2 aaa bbb>
</dateset2>


output to a html table:
 <element1>  <child1 xxx yyy aaa bbb>
 <element2>  <child2 xxx yyy aaa bbb>
 <element3>  <child3 xxx yyy       bbb>

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--~------------------------------------------------------------------
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>
--~--

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