ff.
Steve
-Original Message-
From: Shkuro, Yuri [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 2:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Question on XSLTInputHandler
I've already posted this code to the list, but
will do it again. I would like to see it f
"Shkuro, Yuri" wrote:
>
> By using SAX events at this point you save a lot of memory
> and streamline the process.
Ok, I understood you incorrectly yesterday, now it makes sense to me.
I'll try to implement your version, because it means I don't have to
change fop and that is a good thing :)
th
streamline the process.
Yuri.
-Original Message-
From: Ulrich Mayring [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 4:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Question on XSLTInputHandler
[EMAIL PROTECTED] wrote:
>
> You can use org.apache.fop.apps.Driver to g
ubject: Re: Question on XSLTInputHandler
That's the famous JAXP API, a standard API that enables you to exchange
XML parsers and XSLT processors without changing your source code. I
suggest you have a look at: http://java.sun.com/xml/. JAXP is one of an
XML programmer's basic tools.
That's the famous JAXP API, a standard API that enables you to exchange
XML parsers and XSLT processors without changing your source code. I
suggest you have a look at: http://java.sun.com/xml/. JAXP is one of an
XML programmer's basic tools.
Xerces for example supports JAXP, as does Crimson and
"Shkuro, Yuri" wrote:
>
> import javax.xml.transform.Source;
> import javax.xml.transform.Result;
> import javax.xml.transform.stream.StreamSource;
> import javax.xml.transform.sax.SAXResult;
> import javax.xml.transform.Templates;
> import javax.xml.transform.Transformer;
I'd like to implement
[EMAIL PROTECTED] wrote:
>
> You can use org.apache.fop.apps.Driver to get the
> org.xml.sax.helpers.DefaultHandler and fire sax events on that.
Well, my XML is unparsed and in the form of a java.lang.String, so
parsing it just to fire SAX events seems to be a bit of an overhead, no?
You're prob
The problem is that FOP still makes extensive use of static constructs.
The Options class accesses the Configuration class which has static
Hashtables to hold the configuration.
Apart from that the code below should work.
On Mon, 12 Nov 2001 11:31:28 -0800 Ramin Firoozye wrote:
> Since we're on
t; Ramin
>
>
>>-Original Message-
>>From: Jim Urban [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, November 12, 2001 11:08 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: Question on XSLTInputHandler
>>
>>
>>Here is a block of code our of one my se
cc:
11/12/01 01:39 PM
Subject: RE: Question on XSLTInputHandler
EMAIL PROTECTED]
Subject: RE: Question on XSLTInputHandler
Here is a block of code our of one my servlets. This code takes a string
containing XML, applies an XSL:FO style sheet to it, and runs the XML:FO
through FOP and send s the PDF directly back to the browser.
Writer out
Original Message-
> From: Clute, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 1:13 PM
> To: '[EMAIL PROTECTED] '
> Subject: RE: Question on XSLTInputHandler
>
>
> Sure...
> Attached is a new FOInputHandler.java file.
> As you can se
:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Question on XSLTInputHandler
>
>
> Here is a block of code our of one my servlets. This code takes a string
> containing XML, applies an XSL:FO style sheet to it, and runs the X
Title: RE: Question on XSLTInputHandler
Thanks a
lot!
jw
-Original
Message-
From: Clute, Andrew
[mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001
1:13 PM
To: '[EMAIL PROTECTED] '
Subject: RE: Question on
XSLTInputHandler
Sure...
Attache
Title: RE: Question on XSLTInputHandler
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
ength(content.length);
uResponse.getOutputStream().write(content);
uResponse.getOutputStream().flush();
uResponse.flushBuffer();
}
catch (Exception e){}
Jim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 12:49 PM
To: [EMAIL PROTECTED]
Title: 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: '[
Title: 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
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 XS
19 matches
Mail list logo