[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

Subject: Re: How to transform multiple XML docs with XSLT 2.0 into single doc
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 23 Jun 2010 08:28:20 +0100
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.