Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Html Report

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic