• 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

Html Report

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I want to create html reports. This is what i am doing: writing all the required data into a xml file and then parse it with the xslt to produce html. This to produces one really big html page (with one xslt and one big xml file).
What should i do to get multiple html pages using? Creating a new xml file for each html page and then parsing it would be time consuming.Can i pass data directly to xslt from the java application?


Thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Can i pass data directly to xslt from the java application?


Sure, it is not necessary to create a disk file. Look at the various ways an org.xml.sax.InputSource can be created and the javax.xml.transform.sax.SAXSource class as used in Transformers.
Bill
 
pradeep selvaraj
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am still confused (as to how to use the input source), was not able to find an example on how to generate html without xml files.
This is my code, it works fine, but i want to create the reports without using xml files.


Can it be done by implementing javax.xml.transform and then using setSystemId(String systemId) to set the data and then get this data in the xslt as a normal variable.
[ June 13, 2006: Message edited by: pradeep selvaraj ]
reply
    Bookmark Topic Watch Topic
  • New Topic