You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Daniel Pfuhl <pf...@yahoo.de> on 2001/07/05 22:05:12 UTC

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?

thanks in advance

daniel

=====
--------------------------------------------------------
Daniel Pfuhl
mailto:daniel@dphome.de

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: PlainText Output

Posted by Adrian Geissel <ag...@zenark.com>.
----- Original Message -----
From: Daniel Pfuhl <pf...@yahoo.de>
To: User CocoonList <co...@xml.apache.org>
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>