This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml with XSLT

 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Paul Clapham
Sheriff
Pie
Posts: 20182
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic