• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Chain reaction. How to chain multiple translations

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic