Hi,
I have two XML representing a master-detail relationship and I want to 'join' them into a single XML with all fields from both files. For example One XML file (Order.XML) looks like <Orders> <Order> <productID>1234</productID> ...other order elements... </Order> </Orders>
Another XML(Products) looks like
<Products>
<Product productID='1234'>
<Name>...
<Category>...
....
</Product>
<Product>
....
</Product>
</Products>
I want to get a final XML look like
One XML file looks like
<Orders>
<Order>
<Product productID='1234'>
<Name>...
<Category>...
....
</Product>
...other order elements...
</Order>
</Orders>
How can I do the join using a XSLT? Any links/suggestion will be helpful.
-FJ
I have two XML representing a master-detail relationship and I want to 'join' them into a single XML with all fields from both files. For example One XML file (Order.XML) looks like <Orders> <Order> <productID>1234</productID> ...other order elements... </Order> </Orders>
Another XML(Products) looks like
<Products>
<Product productID='1234'>
<Name>...
<Category>...
....
</Product>
<Product>
....
</Product>
</Products>
I want to get a final XML look like
One XML file looks like
<Orders>
<Order>
<Product productID='1234'>
<Name>...
<Category>...
....
</Product>
...other order elements...
</Order>
</Orders>
How can I do the join using a XSLT? Any links/suggestion will be helpful.
-FJ