Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 77425 invoked from network); 6 Feb 2001 17:16:45 -0000 Received: from fw.infoplanning.net (HELO infoplanning.com) (@209.8.58.131) by h31.sny.collab.net with SMTP; 6 Feb 2001 17:16:45 -0000 Received: (qmail 12538 invoked from network); 6 Feb 2001 17:29:19 -0000 Received: from unknown (HELO apache.org) (192.168.0.189) by inet with SMTP; 6 Feb 2001 17:29:19 -0000 Message-ID: <3A80309F.A9C38C09@apache.org> Date: Tue, 06 Feb 2001 12:13:03 -0500 From: Berin Loritsch X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Plain text from Cocoon References: <008a01c0905f$7d9b3370$0200000a@peter> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N "Peter C. Verhage" wrote: > > << Hi! > > I wan't plain text output from cocoon, but somehow it gives an > error message unless i include som html-tags. How can i get plain > text without the tags ? >> > > You probably can't. Because of the simple reason that XSL(T) is ment for > transforming one XML file to another. So you always have to make a XML tree > with XSLT, whatever the program that interprets the output does with it is > up to the program (for example transform it to a PDF or HTML document), but > you cannot use XSLT to create a plain text file without at least some root > tag. That's not necessarily true. Otherwise XSP and VRML won't work. The way it works in Cocoon, is you must have root tags. Everything can be translated to text inside the base tags. The TextSerializer or similar mechanism in Cocoon 1 will strip out the root tags. Example: This is plain text. We can have some more text. And even some more. When put through the TextSerializer, will strip the root tags and you get: "This is plain text. We can have some more text. And even some more." (quotes included to show that it is one string).