I have worked through some XSLT tutorials, and all of them talk about using input and output files; In my specific case I have the XML and XSL all as strings - I read them from the database at runtime, and it changes depending on the record I am working with.
Is there a way to do some sort of conversion in order to manipulate the StreamSource, to give it the actual string instead of a file name?
I'm talking about:
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(new StreamSource(xsl));
StreamSource src = new StreamSource(new FileInputStream(xml));
where xml and xls are both strings, containing the actual xml or the actual xsl.