Thanks....but I am using C1 and I am unable to change mime-type whatever I
do. Anyway I have managed to get the display I wanted by using
disable-output-escaping and specifically outputting tag markup in the
stylesheet.....but there is another problem.....in certain circumstances,
I want to force the user to save the output to disk.....I tried to set the
mimetype to something weird to manage this.....but I am unable to.If
anyone has any idea as to how to set the mime-type of the reponse from an
xsp page, please let me know. I have already tried using
response.setContentType() within <xsp:logic>, besides using xsl:output.

Thanks in advance.

Vartika

On Fri, 6 Jul 2001, Christian Haul wrote:

> On 05.Jul.2001 -- 03:13 PM, Vartika Bhandari wrote:
> > Hi!
> >     I am using cocoon for an application wherein in certain
> > circumstances I need to display a dynamically generated XML document as
> > plain text i.e with all markup as is. However cocoon strips off tags and
> > never displays them..................I would be grateful for some ideas
> > as to how to manage this.
> 
> For C2
> 
> 1) use views e.g. the predefined "content" view by adding a request
>    parameter named "cocoon-view", value "content". The "content" view
>    shows the result of the generation step.
> 
> 2) change the serializer type to "xml", in addition you might want to
>    change its mime-type to "text/plain". I think you could change the
>    serializer using a selector e.g. based on a request parameter.
> 
>       Chris.
> 
> 


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