cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: How to stop "mimed" files from causing the browser todo a file-save-as
Date Thu, 30 May 2002 20:57:24 GMT
> From: Paul Gilligan [mailto:pdgilligan@oyap.net]
> 
> In my sitemap I have setup :
> 
>                  <map:match pattern="*.txt">
>                      <map:generate src="{1}.xml"
mime-type="text/plain"/>

File generator does not support mime-type attribute. Serializers do.

>                      <map:transform src="system/docbook2txt.xsl"/>
>                      <map:serialize type="text"/>

Try:

 <map:serialize type="text" mime-type="text/plain"/>

Vadim


>                  </map:match>
> 
> And when I do:
> 
> http://www.oyap.net/cocoon/oyap/index.txt
> 
> The browser does not recognise the mime of text/plain, which is
strange
> because it can handle text files normally.
> 
> So how do we get the response from cocoon correct here?
> 
> Paul
> 
> 
> ---------------------------------------------------------------------
> 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>


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