| Subject: [xsl] 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'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 | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] XML String as Parameter.., Hunsberger, Peter | Thread | [xsl] Error when calling Extension , Ramesh B | 
| Re: [xsl] XSL and CSS, Jarkko Moilanen | Date | Re: : RE: [xsl] suppressing default, Joerg Heinicke | 
| Month |