Lately I have become a huge fan of XSL, XPath and XML, but I've only used it to format outputted html documents, with a head and body sections.
I was wondering if its possible to use good of XSLT to format other types of documents, like plain txt?
Lately I have become a huge fan of XSL, XPath and XML, but I've only used it to format outputted html documents, with a head and body sections.
I was wondering if its possible to use good of XSLT to format other types of documents, like plain txt?
Yes of course - just use
<xsl:output method="text" indent="yes"/>
instead of
<xsl:output method="html" indent="yes"/>
Marc
UPDATE: whitespace and formatting text exactly as needed are always a bit tricky in XSLT. Check out some of those references: