Hi,

I've a simple pipeline to make CSV data:

    <!-- Chart CSV Data -->
    <map:pipeline>
      <map:parameter name="expires" value="now plus 50 seconds"/>
      <map:match pattern="members/only/charts/*.csv">
        <map:generate type="xsp" src="logic/members/{1}.xsp"/>
        <map:transform src="style/xml2csv.xsl"/>
        <map:serialize type="text"/>
      </map:match>
    </map:pipeline>

where I've tried putting 

  <xsl:output omit-xml-declaration="yes" method="text"/>

in the XSLT transformation, and

<omit-xml-declaration>true</omit-xml-declaration>

or

<omit-xml-declaration>yes</omit-xml-declaration>

in the serializer declaration in the sitemap

      <map:serializer name="text" mime-type="text/plain"
        pool-max="8" pool-min="2" pool-grow="2"
        src="org.apache.cocoon.serialization.TextSerializer"
        logger="sitemap.serializer.text">
        <omit-xml-declaration>true</omit-xml-declaration>
      </map:serializer>

In all cases I still end up with

<?xml version="1.0" encoding="UTF-8"?>

prior to the plain text output. This is with cocoon 2.1-dev.

Anyone any ideas?

Thanks,

        Bruce

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to