This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Copying of nodes
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Copying of nodes
- From: "Java XML" <jaxlive at hotmail dot com>
- Date: Wed, 18 Apr 2001 10:21:50 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
u can do this by using the document() function.
try it i think it works.....
Have Fun
JAX
From: Martin Renner <m.renner@tiscon.com>
Reply-To: xsl-list@lists.mulberrytech.com
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] Copying of nodes
Date: Wed, 18 Apr 2001 16:07:43 +0159
Hi.
How can I combine the subelements of a given node of two xml files?
The xml files:
file1.xml
<root>
<data>
<a>...</a>
<a>...</a>
<b>...</b>
</data>
</root>
file2.xml
<root>
<data>
<a>...</a>
<b>...</b>
<b>...</b>
</data>
</root>
The resulting file should look like this one:
<root>
<data>
<a>...</a> (1st <a> from file1)
<a>...</a> (2nd <a> from file1)
<a>...</a> (1st <a> from file2)
<b>...</b> (1st <b> from file1)
<b>...</b> (1st <b> from file2)
<b>...</b> (2nd <b> from file2)
</data>
</root>
Or, in other words: "copy all file1/root/data/a, copy all file2/root/data/a,
copy all
file1/root/data/b, copy all file2/root/data/b".
I tried several combinations of "apply-templates", "template match" and
"copy-of
select", but I never got the correct result.
Martin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list