For excellent examples of doing this with XSLT, look at the OReilly XSLT Cookbook.
-----Original Message----- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 12:19 PM To: [EMAIL PROTECTED] Subject: Re: Writing plain text files? On 28.10.2003 15:44, Jorg Heymans wrote: > why not write your own transformer ? At the end it's only a simple stylesheet. Joerg > Stephanie Zohner wrote: > >> Hi, >> >> I want to write plain text files with Cocoon, What's the best way to do >> this? >> >> The task sounds simple, but for me, it turned out to be quite tricky. >> >> So far I have tried with the SourceWriteTransformer. However, it still >> requires at least a root tag for its output. >> Another problem ist, that I need line breaks in my output text file and I >> don't know, how to tell the XSLT Processor to do this. >> >> To make myself a bit clearer: >> I would like to turn an XML-fragment like this, >> >> <page> >> <line> bla bla bla bla bla bla </line> >> <line> murmel murmel murmel </line> >> </page> >> >> into: >> >> #-----Beginning of text file-------- >> >> bla bla bla bla bla bla murmel murmel murmel >> #-----End of text file--------------- >> >> Does anybody have an idea? >> >> Thanks, >> >> Stephanie --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
