Hi Nick,
On Mit, 13 Sep 2000, you wrote:
> I need to come up with a way to generate documents that end users can edit
> in their word processors (Word, WordPro, etc.). Looks like that means RTF.
> My data is or will be in XML format. Having zero experience with RTF, I'm
> looking for advice on whether to:
> (3) some other approach??? I was hoping to learn XSL/FO, but so far I have
> only heard of PDF output (via FOP), not RTF.
We have a solution that is working with XSL:FO to produce RTF documents from
XML input. This stylesheet produced the correct output for all of our test
cases. The only thing you have to have installed is an XSLT processor (Xalan or
something else) and you have to write an XSL that produces correct XSL:FO from
your XML input sources. You can use the examples which come with the FOP
package to test the FO2RTF stylesheet.
If you are or anybody else is interested in this stylesheet point your browser
to:
http://www.smb-tec.com/cgi-bin/cvsweb.cgi/infozone/prowler/src/org/infozone/ui/f\
ormatter/rtf
There you will find 2 solutions:
1. fop2rtf.xsl: a very simple stylesheet that ignores colors and complex
layouts _but_ produces the RTF in only step
2. fop2itm.xsl and itm2.rtf.xsl: the first stylesheet produces an
intermediate format which is used to enrich with color information in
the second step
Hope this helps a little bit,
Lars
--
___________________________________________________________________
Lars Martin mailto:
lars@...
SMB GmbH
http://www.smb-tec.com