Re: xsl:fo word

2003-07-16 Thread Bertrand Delacretaz
i'm trying to convert a large ms word 2000 file to xsl:fo. Are there
any converters available?
Don't know about direct converters, but there are several stable RTF to 
XML converters: for example, upCast which colleagues of mine used 
successfully in a project, and also logictran and majix of which I know 
little.

--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP locks output file under WinXP

2003-06-17 Thread Bertrand Delacretaz
Le Mardi, 17 juin 2003, à 16:52 Europe/Zurich, 
[EMAIL PROTECTED] a écrit :

Hi Nicolas
hmm... you've forgot to flushing and closing the OutputStream!
and you have to do it in a finally clause if you want it to be 
reliable.

--
  Bertrand Delacretaz
  independent consultant, Lausanne, Switzerland
  http://cvs.apache.org/~bdelacretaz/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP locks output file under WinXP

2003-06-17 Thread Bertrand Delacretaz
Le Mardi, 17 juin 2003, à 17:11 Europe/Zurich, Torsten Erler a écrit :
...
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();
right on - this is heavy duty distributed code review ;-)
-Bertrand
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP in production app

2003-03-11 Thread Bertrand Delacretaz
Le Lundi, 10 mars 2003, à 18:36 Europe/Zurich, Holk, David A a écrit :
Is anyone using FOP in a production app?
...
Several customers of companies that I'm working with are, daily 
production of small to medium-sized documents (from a few to 250 pages).

Stability is no problem IMHO, you can get good support here (best 
effort though) assuming you're ready to dig in to analyze possible 
problems precisely, and you have to limit your XSL-FO documents to what 
FOP can handle today.

If you keep these concerns in mind, using FOP in production is 
realistic IMHO.

--
  Bertrand Delacretaz (codeconsult.ch, jfor.org)
  XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RTF support in Apache FOP?

2002-12-23 Thread Bertrand Delacretaz
[EMAIL PROTECTED] wrote:
Could any one let me know when the RTF support will be implemented in the
Apache FOP. 
No idea unfortunately. Several people were supposed to work on this at 
various points but nothing concrete (except my very small effort to 
jumpstart the integration [1]) has happened yet.

Contributions are welcome as usual, I'd be happy to give pointers to 
anyone wanting to jump in, but currently lack the time to do the 
integration myself, and I don't think any other committers are working 
on it ATM.

-Bertrand
[1] http://marc.theaimsgroup.com/?l=fop-devm=103613363514120w=2
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Call upon FOP within a c++ application

2002-11-29 Thread Bertrand Delacretaz
On Friday 29 November 2002 01:43, Amit Bhatnagar wrote:
 Is it possible to call upon FOP with a c++ application? 

Should be possible using JNI, the Java Native Interface (info at 
java.sun.com).

 If it isn't possible, is my only alternative to make a system call
 and execute the FOP.bat?

You could also use an HTTP-based interface along these lines:

1. C++ makes HTTP request to FOP servlet including a unique filename

2. FOP servlet in turn makes HTTP request to C++ to get the XSL-FO data, 
passing it the unique filename

3. C++ receives PDF from FOP

Which is a nicely decoupled and language-independent interface.

Hope this helps!
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
 blogspace http://www.codeconsult.ch/bertrand

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Converting FOP to HTML

2002-11-21 Thread Bertrand Delacretaz
On Thursday 21 November 2002 03:14, Anton Hughes wrote:
. . .
 Take a look at apache cocoon http://xml.apache.org/cocoon/index.html

The Cocoon HTML/PDF howto at
http://xml.apache.org/cocoon/howto/howto-html-pdf-publishing.html
might be a good starting point to get an overview of how HTML+PDF publishing 
works.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, Cocoon, FOP, mentoring/teaching/coding.
 blogspace http://www.codeconsult.ch/bertrand

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTML+CSS - XSL:FO

2002-11-06 Thread Bertrand Delacretaz
On Wednesday 06 November 2002 18:31, Alex McLintock wrote:
 Sorry for asking a question which I know is already in my FAQ but I have a
 colleague who needs to render HTML *with* CSS to PDF. 

I hope this is not the FAQ answer ;-)

Assuming client-side is ok (or you want to try to automate these functions), 
I see two possibilities:

a) print to PostScript or PDF from a browser 
b) import the pages to Acrobat (Windows version does it nicely, I think 
including CSS) and save as PDF

-Bertrand


Re: keep-with-.. property

2002-06-25 Thread Bertrand Delacretaz
On Tuesday 25 June 2002 08:58, Hahn Kurt (CHA) wrote:
. . .
 Is there another reason why my
 example here doesn't keep the rows together?

I don't know exactly what is supposed to work or not, but here we've been 
successfully using the following constructs with FOP 0.20.3rc:

fo:table-row keep-with-previous=always keep-together=always
fo:table-row keep-with-next=always keep-together=always
fo:table-row keep-with-previous=always

Note however that bug 7449 is not fixed yet: rows that do not fit on one page 
cause infinite loops (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7449)

-Bertrand


Re: Embedding a table in a table-row

2002-06-12 Thread Bertrand Delacretaz
Hi Kurt,

On Wednesday 12 June 2002 10:45, Hahn Kurt (CHA) wrote:
 I'm trying to embed a table in a table row. 

It would be easier if you could post the XSL-FO that results from your 
transformation, ideally the smallest complete FO document that demonstrates 
your problem.

-Bertrand


Re: How do I learn to understand the W3 XSL Recommendation?

2002-06-10 Thread Bertrand Delacretaz
On Monday 10 June 2002 06:04, David Penton wrote:
. . .leads me to believe that I should
 understand the W3 Recommendation in its more technical aspects better.

A good starting point is http://www.w3.org/Style/XSL/ , it contains links to 
a number of resources.

I find it important to consider XSLT (transformations) and XSL-FO 
(formatting) separately while learning - altough both covered by the XSL 
recommendation these two technologies have very different purposes.

Regarding XSL-FO, I find Dave Pawson's FO questions pages 
(http://www.dpawson.co.uk/xsl/sect3/index.html) to be a very good starting 
point.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







Re: Dynamically creating XML data for XSLT - FOP

2002-05-31 Thread Bertrand Delacretaz
Hi Thorsten,

On Friday 31 May 2002 04:30, Thorsten wrote:
 I have been using FOP both within Cocoon and as a servlet, using static XML
 (data) and XSL files as input.

 Now I need to dynamically generate the XML data portion from within the
 servlet (the XSL file would still be static.) What is the best approach for
 this?

jdom (http://www.jdom.org) is a very good library for generating XML data 
dynamically, it allows you to manipulate XML documents at a higher level than 
just DOM. 

Also, you might want to have a look at Cocoon (http://xml.apache.org/cocoon) 
which allows you to easily combine Generators (to produce XML), Transformers 
(XSL files for example) and Serializers (XML, PDF using FOP, RTF, etc.) to 
create many formats dynamically.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







Re: Displaying a table

2002-05-31 Thread Bertrand Delacretaz
Hi Kurt,

Did you compare your table construct with the samples from 
/docs/examples/tables? You can find them under http://xml.apache.org/cvs.html 
if you didn't download them.

 fo:table-columns column-width=6cm /

Should be table-column I think, no s.

  fo:table-row color=black background-color=red

Should be in the fo:table-body element I think.

-Bertrand


Re: design help for multiple output formats?

2002-05-30 Thread Bertrand Delacretaz
On Wednesday 29 May 2002 22:49, Chuck Paussa wrote:
. . .
 What we've done is perform all of the non-output-format transformations
 into an intermediate node-set. e.g.:
. . .

same here. You can think of the intermediate document as a logical document 
that describes your output content, independently of any format-specific 
stuff.

Martin Fowler's two step view pattern explains this concept very well, see 
http://www.martinfowler.com/isa/htmlRenderer.html .

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







Re: Who uses MIF-Renderer?

2002-05-30 Thread Bertrand Delacretaz
On Wednesday 29 May 2002 18:15, Robert Wachter wrote:
 Is anybody out there, who uses fop to generate MIF-files? 

Not to downplay FOP, but I think the current MIF rendering suffers from the 
same problems we encountered when trying to implement an RTF renderer: the 
current FOP rendering system is well suited for print rendering (i.e. PDF) 
but not for structure rendering (which MIF is to a large extent: describing 
sections, paragraphs etc. but not necessarily their detailed layout).

So I'm skeptical about how far you can go with the current MIF renderer. 
We're currently working (slowly) on integrating the jfor RTF converter (which 
is also mostly structure based) into FOP, and hopefully this will pave the 
way for better structure-based renderers.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







Re: Using FOP from ASP

2002-02-28 Thread Bertrand Delacretaz
On Thursday 28 February 2002 16:58, [EMAIL PROTECTED] 
wrote:
   I'm using FOP in a Windows environment and I want if possible to
  be able to process a large batch of .fo files using a script. The
  easiest way for me to do this is to use FOP as a COM object.
  Can I do this?

Not out-of-the box AFAIK, only MS-specific java programs will work as 
COM objects, or you need a COM-to-java bridge which is not very common 
and usually fairly hard to setup.

It might be much easier to simply call FOP as an external process, 
something like java . . .  org.apache.fop.apps.Fop.

Another option would be to use FOP over an HTTP interface: configure 
FOP as an HTTP servlet (using Cocoon for example) and call it from your 
ASP code: 

-ASP sends HTTP request to FOP backend
-FOP responds with a PDF document which ASP can use

Depending on your configuration FOP or Cocoon might have to make 
another request to your app to get the input XML - sounds a little 
complicated but is not hard to do once you get a clear picture of the 
interactions.

This would give you a much more modular solution, and much less 
configuration headaches.

Hope this helps!
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







Re: Using FOP from ASP

2002-02-28 Thread Bertrand Delacretaz
On Thursday 28 February 2002 17:26, [EMAIL PROTECTED] 
wrote:
 Bertrand wrote:
 Another option would be to use FOP over an HTTP interface: configure
 FOP as an HTTP servlet (using Cocoon for example) and call it from
  your ASP code:

 That sounds a much saner way of doing things, although I don't know
 much java :- 

You don't need to know java to configure Cocoon with FOP: it's out of 
the box in the standard installation, if you get Cocoon to run you're 
in business and you have a dynamic HTTP-to-PDF server which can take a 
lot of different data sources as input.

Then, to configure Cocoon you will need to understand the sitemap 
concept, it's not that hard for simple things, and it's XML-based, no 
programming needed.

The skills you will need to get Cocoon running are more in the area of 
life at the command-line, configuring stuff through XML files and 
using text-based log files to troubleshoot your installation.

. . .
 The trouble is every month or so we have to print out the whole bunch
 (about 600) of the things to post off to clients, which is why I need
 a sturdy batch process.

Existing examples of Cocoon sites show that it is ready for production. 
Depending on the complexity of your documents, FOP's memory 
requirements might get in the way, but that's a problem you will have 
anyway. 

Cocoon also has a command-line mode which I do not know well, but I 
think could allow you to generate your PDF docs to files directly.

Hope this helps!
-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.


Re: Pipe XSLT Transform to FOP

2002-02-12 Thread Bertrand Delacretaz
On Tuesday 12 February 2002 02:00, Ryan Howe wrote:
 I have been looking for a way to pipe the output of my Transformer
 into the Input of the FOP Driver object. 

Cocoon (xml.apache.org/cocoon) does just that and much more - you might 
want to have a look!

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