[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to transform multiple XML docs with XSLT 2.0 i
On 23 June 2010 04:37, Jack Bush <netbeansfan@xxxxxxxxxxxx> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|