• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chain reaction. How to chain multiple translations  RSS feed

 
Anonymous
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
 
Roseanne Zhang
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!