On Fri, 19 Apr 2002, Ariel Bender wrote: > Hi all. > I'm a newbie in these technologies, and I've got a problem that I don't know > how to resolve. May be be someone can help me. > I am using cocoon1, xml, xsl... > I want to get a pure txt as output file, obviosly whithout a hedar, and also > with no xml tags. > I'm using this code: > <xsl:output method="text" media-type="text" > omit-xml-declaration="yes" indent="no" encoding="ISO-8859-1"/> > but it doesn't work propely. > xsl:output is > The generated file is this: > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" > "http://www.w3.org/TR/REC-html40/strict.dtd"> > <content>THE EXPECTED TEXT > </content>
> <!-- This page was served in 538 milliseconds by Cocoon 1.8.2 --> > Cocoon 1 does not support the xsl:output method. This is explained in the FAQ. You have to add the following processing instruction in your xsl stylesheet to output as pure text: <?cocoon-format type="text/plain"?> This should work. > More information: when I try to save the file, the window dialog expects to > save as html file, when I explicitly say that the filename is txlog.txt. > > Any ideas? > Ariel > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>