[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xml to pdf or word

Subject: Re: xml to pdf or word
From: Bertrand Delacretaz <bdelacretaz@xxxxxxxxxxxxxx>
Date: Thu, 25 Oct 2001 09:54:10 +0200
xml to pdf asp
On Wednesday 24 October 2001 15:43, Adam Darwin wrote:
> How would one use this FOP processor in ASP?

You wouldn't ;-)

Seriously, I think interfacing FOP with ASP at the API level (i.e. with java 
method calls) could be an integration nightmare with various JVM and class 
libraries problems.

I would suggest calling FOP using HTTP requests, which FOP would in turn 
relay to your ASP data-generating page.

Cocoon (http://xml.apache.org/cocoon2) could be used to provide the "glue" to 
make this work.

Here's the scenario:

a) client makes an HTTP request to Cocoon on a specific path
b) on this path a Cocoon "pipeline" is configured to:
b1) get XML data from your ASP page using HTTP
b2) possibly use an XSLT transform to generate an XSL-FO document
b3) use FOP to generate a PDF document
c) client receives the PDF document from Cocoon as a response to its original 
request.

In this way, your ASP page stays in use as a pure XML generator, and the 
XML-to-PDF conversion is nicely modularized using Cocoon as the "XML-to-PDF 
filter".

To get this working you would need to know:
-How to install Cocoon and configure a pipeline
-How to have Cocoon make HTTP requests to "back-end" servers
-XSL-FO vocabulary
-XSLT to transform your XML

Looks like a lot but this knowledge is reusable for a lot of different 
purposes.

Hope this helps.
-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.