This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml with XSLT" Watch "Xml with XSLT" New topic

Xml with XSLT

Ganesh Gowtham
Ranch Hand

Joined: Mar 30, 2005
Posts: 225


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

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

headline="YYYYYY" author="yyy">



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


<?xml version="1.0"?>










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
Paul Clapham

Joined: Oct 14, 2005
Posts: 19739

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.
I agree. Here's the link:
subject: Xml with XSLT
It's not a secret anymore!