Bob DuCharme's "XSLT Quickly" has chapter 6.5 "Non-XML output" devoted to XML -> RTF conversion. Essentially, it is one small example. You can download the code from
http://www.manning.com/ducharme/source.html (xq387.xsl and xq388.xml), but since I already downloaded it, I decided to post it here. Hope I wont be sued for CopyRight violation
XML:
<article>
<title author="bd" ver="1.0">My Article</title>
<p>First paragraph. 3 < 4.</p>
<p>Second paragraph. AT&T is a big company.</p>
</article>
XSL:
<!-- xq387.xsl: converts xq388.xml into xq389.rtf (sample.rtf) -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="article">{\rtf1 <xsl:apply-templates/> }
</xsl:template>
<xsl:template match="title">
\par {\b <xsl:apply-templates/>}
</xsl:template>
<xsl:template match="p">
\par <xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
For automatic conversion,
XML software recommends two programs:
XTAL's
http://www.zeigermann.de/xtal.html rdc2rtf
http://www.sema.be/mtc/products/rdc2rtf/index.html - I did not try them myself, though.
[This message has been edited by Mapraputa Is (edited August 13, 2001).]