[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Retrieving data from two XMLs and creating another

Subject: RE: Retrieving data from two XMLs and creating another XML using XSLT
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Wed, 15 Feb 2006 23:18:09 +0000
xmls sign in page
HI Manasi,
Show us exactly what you did.
Vasu

-----Original Message-----
From: Manasi Kulkarni [mailto:Manasi.Kulkarni@xxxxxxxxxxxxxxxx]
Sent: 15 February 2006 18:42
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'> > Subject: Retrieving data from two XMLs and creating
> another XML using XSLT
>
> I want to read data from two XML files with completely
> different structure
> and build third XML using XSLT.
>
> The input XML files are of the form:
>
> Input File 1:
>
> <Data>
> 	<Section>
> 		<Specimen Name="John Smith">
>             	<Test Name="Test1">
> 	                    <Result>
> <TextResult Value="123"/>
>                           <Result>
>            		</Test>
> 	</Section>
> </Data>
>
> Input File 2:
> <Root>
> 	<Form Name="Form1">
> 	      <Section Name="Sect1">
> 	            <Set Name="Set1">
> 	                  <Item Name="Item1"/>
>                   </Set>
>             </Section>
>        </Form>
> </Root>
>
>
> Output File:
> <Info>
> 	<Person Name="John Smith">
> 	      <Data Tag="Sect1.Set1.Item1" Value="123"/>
> 	</Person>
> </Info>
>
> The output XML contains some value from first XML and some
> from second XML.
>
> My mail problem is creating 'Tag' attribute for output XML which is
> concatenated string of values from second XML.
>
> I tried using xsl:variable / param, however it gives me an
> error when I use
> concat function with variables.
>
> Can this be done using XSL? Or should I write custom
> converter using Java /
> C#?
>
> Any help would be appreciated.
>
> Thanks,
> Manasi
>
>
>
> This message contains privileged and confidential information
> intended only
> for the use of the addressee(s) named above.  If you are not
> the intended
> recipient of this message, or the employee or agent responsible for
> delivering it to the intended recipient, you are hereby
> notified that any
> dissemination or copying of this message is strictly
> prohibited.  If you
> have received this message in error, please immediately
> notify the sender by
> return electronic mail and delete the original message
> without retaining a
> copy.
>
>
>

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters


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.