----- Original Message -----
From: Daniel Pfuhl <[EMAIL PROTECTED]>
To: User CocoonList <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 9:05 PM
Subject: PlainText Output


> Hello
>
> can someone tell me where to find some examples to
> learn how I can transform my xml and output this as
> plain text?

Put the following into your style-sheet (the last in the chain)

<xsl:template match="/">
<xsl:processing-instruction
name="cocoon-format">type="text/plain"</xsl:processing-instruction>
<root>
...
</root>
</xsl:template>

You will need a dummy root tag, as XSLT expects to write out XML - but when
displayed in the browser, it should appear as plain ASCII text.

Hope this helps,

>
> thanks in advance
Welcome,
Adrian



---------------------------------------------------------------------
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]>

Reply via email to