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?
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
Joined: Nov 29, 2005
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 ]