XSLT
Using XSLT to generate RTF
15:49, 12 Jul 2001 UTC | Simon St.Laurent

Eric van der Vlist announced an RTFOutputHandler for the XT XSLT processor which allows XT to produce Rich Text Format (RTF) output.

Developers who want to create RTF can build a style sheet which produces an XML version of the RTF vocabulary, and then specify this output method to have it serialized as RTF rather than XML.

Although the serialization approach is quite simple, it has substantial implications:

"I think that its very simplicity should make it a powerful and flexible tool, especially since it comes (ala XSL-FO) after a XSLT transformation.... If the XML serialization of RTF happens to be a good idea, this output handler could be very easily turned into a SAX writer and a RTF parser could be developed to parse RTF documents into XML."

The use of a serialization method still requires developers to have an understanding of RTF to create documents:

"The good news is that you don't need to fight with the text output method any longer to generate RTF, the bad news is that you still need to know RTF to use this output method!"

This initial release also has some signficant whitespace and Unicode limitations.

Eric van der Vlist is an editor of xmlhack.

Related stories:

| See all 5 comments

Newest comments

Re: Using XSLT to generate RTF (Evan - 11:55, 14 Jun 2002)
... if someone interested, there is a RTF Generator - but it uses its own language to create RTFs .. ...
Re: Using XSLT to generate RTF (jabba - 07:22, 18 May 2002)
Cocoon allows a utility called JFOR (Java Formatting Object to Rtf) to be used with it. With it, you ...
Re: Using XSLT to generate RTF (Eric van der Vlist - 08:58, 17 Jul 2001)
> This doesn't seem terribly useful. Wouldn't a better approach be to generate RTF from XSLFO, the ...
Re: Using XSLT to generate RTF (Tim McCune - 17:24, 16 Jul 2001)
This doesn't seem terribly useful. Wouldn't a better approach be to generate RTF from XSLFO, the wa ...
  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
XSLT
Tools