I am using FOP and I have a
java String representation of XML which I create dynamically by writing out the properties of my model. Anyway my XML is too big for a java String. What and how is another way of dynamically creating XML not using java Files or Strings and still use the transformer?
Here is my code:
//set up XML using java String
Source xmlSource = new StreamSource(new StringReader(xmlString));
//set up transformer
Source xsltSrc = new StreamSource(new File(xslParam));
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer(xsltSrc);
//start the transformation and render
transformer.transform(xmlSource,res);
[ February 10, 2004: Message edited by: jay ]
[ February 10, 2004: Message edited by: jay ]