This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
merging 2 xml's to 1 xml
- From: "Joeri Belis" <joeri dot belis at nollekens dot be>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 29 Mar 2002 10:58:50 +0100
- Subject: [xsl] merging 2 xml's to 1 xml
- Reply-to: xsl-list at lists dot mulberrytech dot com
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