Hi Martin,
Below is the 2 XML documents I would like to transform into one as an example:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:html="http://www.w3.org/1999/xhtml" >
<head>
……
</head>
<body onload="loadMapLocation(-46.1240, 149.543, 49, 1); setClockTime(2008, 01,
19, 12, 36, 01); setInterval('updateTime()', 2000);" onunload="GUnload();" >
<a shape="rect" name="top" />
<div id="container" >
<div id="header" >
<div id="postmark" />
<a shape="rect" class="imglink" href="http://www.abc.com/" >
<img id="logoimg" src="http://www.abc.com/images/world-cup.gif" width="192"
height="33" alt="World Cup Logo" />
</a>
<hr/>
</div>
<h1>World Cup Competition</h1>
<p>
</p>
<p>
<strong>World Cup Team:</strong>
<br clear="none" />
<a shape="rect" href="http://www.abc.com/team/brasil.html?aid=427231"
Brasil</a> (30 goals)
<br clear="none" />
<a shape="rect" href=" www.abc.com/team/argentina.html?aid=427231"
Argentina</a>(25 goals)
<br clear="none" />
<a shape="rect" href=" www.abc.com/team/Germany.html?aid=427231"
Germany</a>(22 goals)
<br clear="none" />
<a shape="rect" href=" www.abc.com/team/usa.html?aid=427231" >United States
of America</a>(15 goals)
<br clear="none" />
……
</p>
<p>
</p>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:html="http://www.w3.org/1999/xhtml" >
<head>
</div>
<h1>World Cup Player</h1>
<p>
<strong>World Cup Player:</strong>
<br clear="none" />
<a shape="rect" href="http://www.abc.com/team/brasil.html?aid=427231"
Brasil</a> (250 players)
<br clear="none" />
<a shape="rect" href=" www.abc.com/team/argentina.html?aid=427231"
Argentina</a>(500 players)
<br clear="none" />
<a shape="rect" href=" www.abc.com/team/Germany.html?aid=427231"
Germany</a>(350 players)
<br clear="none" />
<a shape="rect" href=" www.abc.com/team/usa.html?aid=427231" >United
States of America</a>(300 players)
<br clear="none" />
……
</p>
</div>
</head>
<body onload="loadMapLocation(-23.4210, 43.324, 42, 0); setClockTime(2008, 01,
20, 31, 36, 01); setInterval('updateTime()', 5000);" onunload="GUnload();" >
......
</body>
</html>
Desire output
<team>Brasil (250 players with 30 goals)<team>
<team>Argentina (500 players with 25 goals)<team>
<team>Germany (350 players with 22 goals)<team>
<team>USA (300 players with 15 goals)<team>
Thanks in advance,
Jack
----- Original Message ----
From: Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de>
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Sent: Tue, 22 June, 2010 11:48:23 PM
Subject: Re: [xsl] How to transform multiple XML docs with XSLT 2.0 into single
doc
Jack Bush wrote:
I would like to find out how to use XSLT to transform multiple XML
documents into a single one, each document would have their own
stylesheets.
Can you give an example on how exactly you want to combine the output from
different stylesheets into a single result document? Do you simply want to wrap
all results into a single common root element?
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--