Sure...
Attached is a new FOInputHandler.java file.
As you can see all I did was add a new method to set a String input-source, and to get an InputSource that was fed from a StringReader.
Let me know if you have any questions.
-----Original Message-----
From: Jim Wright
To: [EMAIL PROTECTED]
Sent: 11/12/2001 2:02 PM
Subject: RE: Question on XSLTInputHandler
Andrew:
For me, at least, that example would be greatly appreciated. Could you
send it along?
Thanks...
jw
-----Original Message-----
From: Clute, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 12:58 PM
To: '[EMAIL PROTECTED] '
Subject: RE: Question on XSLTInputHandler
There is no way to do it without modifying the source code.
I added an InputSource that took in a String...took about 10 minutes and
5 lines of code (I did it on .20.1).
I can send you the code to make the changes, if you want.
Any reasons why this is not part of the class structure?
-andrew
-----Original Message-----
From: Ulrich Mayring
To: [EMAIL PROTECTED]
Sent: 11/12/2001 1:49 PM
Subject: Question on XSLTInputHandler
Hello,
I've looked at the example servlet and found that the XSLTInputHandler
takes as input a java.io.File. However, I am constructing the XML
document dynamically and have it as a java.lang.String in memory. It
seems unnecessary I/O to write it out to a temporary file, just to pass
it to the XSLTInputHandler. Looking at the source of
XSLTInputHandler.java I didn't find any alternate way to call it. What
would the recommended procedure be in this case, where I already have
the XML document in memory?
thanks in advance for any pointers,
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
FOInputHandler.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]