RE: XT Question

Subject: RE: XT Question
From: "Wilson, James.W" <James.W.Wilson@xxxxxxxxxxxxx>
Date: Fri, 18 Jun 1999 11:42:01 -0500
whoops, sorry, I misread your question. I thought you wanted to OUTPUT to a
string. I'll shut up now. ;) 

-----Original Message-----
From: Wilson, James.W 
Sent: Friday, June 18, 1999 12:36 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: XT Question

I believe you can pass any OutputStream to
resultTypeHandler.setOutputStream(). You can make an OutputStream which
writes to a String and pass this in. off the top of my head, I know you can
do it with a combination of StringWriter and PrintWriter - there's probably
a nicer way to do this of course.


-----Original Message-----
From: Nigel Byrnes [mailto:byrnes@xxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Friday, June 18, 1999 12:10 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: XT Question

Hi XSL-ers

I would like to use XT for transforming xml into a formatting markup
language. The xml content which I have in mind is not stored as a file
but is represented as a Java String. So for speed reasons, it'd be cool
to pass the xml document as a String.

Having studied the code to com.jclark.xsl.sax.Driver where I think any
modifications should be made, I am not too sure about what is the best
approach to take. I have tried creating my own transformFile() method
replacing the "File inputFile," argument with "String xmlContent" but to
no avail.

Any advice will be appreciated



 XSL-List info and archive:

Current Thread