cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Geissel" <ageis...@zenark.com>
Subject Re: PlainText Output
Date Fri, 06 Jul 2001 07:56:09 GMT
----- Original Message -----
From: Daniel Pfuhl <pfuhli@yahoo.de>
To: User CocoonList <cocoon-users@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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message