• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml with XSLT

 
Ganesh Gowtham
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • 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
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic