This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Chain reaction. How to chain multiple translations  RSS feed

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I'm new to the XML/Java stuff and was wondering how to implement a chain of XLST translations.
Means: I start with an XML input file and apply two or three translations. How do I connect the XLSTResultSet (is this the right class?) with the InputSource of the next translation? The final step would be either XML->HTML or PDF. For PDF I'm looking at http://www.xmlpdf.com . The methods there want an input stream. How to convert the result of an XLST translation into an input stream..
Any help, pointers to sample code appreciated
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use apache ant xslt task, you can easily chain your xslt transformation.
http://ant.apache.org/manual/CoreTasks/style.html
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A detailed example are posted here for you now:
http://bobcat.webappcabaret.net/javachina/faq/xslt_01.htm#xslt_real_Q50
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!