WebReference.com - Excerpt from Inside XSLT, Chapter 2, Part 5 (4/4)

Inside XSLT

Output Method: Text

The text output method is not just for creating plain text; it's used for any
non-XML, non-HTML text-based format. For example, you can use it to create Rich Text Format
(RTF) documents. Rich Text Format uses embedded text-based codes to specify the format of
documents, and you can place those text-based codes in documents yourself if you use the
text output method.

Here's an example stylesheet (that you'll see in Chapter 6) that converts
planets.xml into planets.rtf:

You might also note that I've started the RTF codes immediately after the
<xsl:template> element. I've done that because RTF documents must start
with RTF codes from the very beginning; if I had begun inserting RTF codes on the next line,
like this: