xsl-list
[Top] [All Lists]

Re: [xsl] How to transform multiple XML docs with XSLT 2.0 into single doc

2010-06-23 02:28:41
On 23 June 2010 04:37, Jack Bush <netbeansfan(_at_)yahoo(_dot_)com(_dot_)au> 
wrote:
    <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)

Call the above doc1 ^^^

      <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" />

Call the above doc2 ^^^^

 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>

1. Transform doc1 with the XSLT.
2. Within that XSLT, reference doc2 using the doc() function.
3. When generating the <team> output for doc1, pull in the relevant
information from doc2.


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
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>
--~--