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

merging 2 xml's to 1 xml

Subject: merging 2 xml's to 1 xml
From: "Joeri Belis" <joeri.belis@xxxxxxxxxxxx>
Date: Fri, 29 Mar 2002 10:58:50 +0100
merging 2 xml
merging 2 xml's to 1 xml

xml 1 ( and my source xml )

<root>
  <row>
   <cell>
    <data>1</data>
    <namedcell name="linenr">
   </cell>
   <cell>
    <data>100</data>
    <namedcell name="article">
   </cell>  
  </row>
</root>

xml that i import via the document function

<root>
   <orderlines linenr="1">
   <article>77</article>
   <orderlines linenr="2">
   <article>88</article>
   <orderlines linenr="3">
   <article>99</article>
</root>

Now i want to get the following output xml.
i want to use the namedcell attribute name to make the match.
so i can add more elements to the import xml.

I tried several approached but now i am stuck.
I can't figure out how to get the elements from the import file
and match the to my source. 

<root>
  <row>
   <cell>
    <data>1</data>
    <namedcell name="linenr">
   </cell>
   <cell>
    <data>77</data>
    <namedcell name="article">
   </cell>  
  </row>
  <row>
   <cell>
    <data>2</data>
    <namedcell name="linenr">
   </cell>
   <cell>
    <data>88</data>
    <namedcell name="article">
   </cell>  
  </row>
  <row>
   <cell>
    <data>3</data>
    <namedcell name="linenr">
   </cell>
   <cell>
    <data>99</data>
    <namedcell name="article">
   </cell>
  </row>
</root>



 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.