Andreas> I've onlyy just begun learing about XSL, and there's one question Andreas> that I've not been able to find an answer for: is it possible to Andreas> transform XML documents into output that itself is *not* a valid Andreas> XML document? For a simple example, is it somehow possible to use Andreas> XSL to render the data in a given XML document into a plain text Andreas> representation, which may be formatted in a certain way for Andreas> readability, but contains no traces of XML or other markup?
Yes.
xsl

utput element takes attribute method. It can be (atleast) xml, html or text. You can output text with xsl:text element, but I have found (I use XSL to generate program sources) that <xsl:value-of select="concat('text',element,@attribute,$variable)"/> is needed quite alot. You might also need variable newline as the last parameter to concat, which is defined like
<xsl:variable name="newline">
<xsl:text>
</xsl:text>
</xsl:variable>
(Since I wrote Java programs and I use K&R kind formatting, I also defined variables indent1, indent2 etc. containing four or eight spaces)