Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Xml with XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml with XSLT" Watch "Xml with XSLT" New topic
Author

Xml with XSLT

Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225

first.xml

<?xml version="1.0" encoding="iso-8859-1"?>

<content a="1.4" source="s" d="28" date="2006-06-28"

headline="YYYYYY" author="yyy">

.......

</content>



Xml file which is to be merged with first.xml file to give output.xml file









second.xml

<?xml version="1.0"?>

<mcontent>

<ccc>

<id></id>

<source></source>

<date></date>

<headline></headline>

........

</ccc>

</mcontent>







now I need to write an Xslt which takes first.xml file & loads the second.xml file and put the data(attributes values) of the first xml

in between the appropriate elements(tags) in the second xml file ...



Thanks in Advance...


Thanks, Ganesh Gowtham
http://ganesh.gowtham.googlepages.com
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

You weren't looking for somebody to write that XSLT for you, were you? Because that's not how JavaRanch works. If you had a specific question (like "How do I read a second XML file into my XSLT?") then we could answer that (like "With the XPath document() function.") Or if you had some code that wasn't working, you could post that with an explanation.
 
 
subject: Xml with XSLT