Mathieu wrote:
>
> I 'd like to transform xml into another xml by using xslt.
>
> My problem is that input xml and xslt are not in files but in strings.
> Moreover output xml must be in string (because I use a database)
Create a javax.xml.transform.stream.StreamResult with the Writer
constructor. Use CharArrayWriter as the Writer implementation, then
toString when you have finished.
Or more efficiently, go for a CharArrayReader. For large results, I
think you can use java.sql.Clob.setCharacterStream (which actually
returns a Writer).
Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/