You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Vartika Bhandari <Va...@inria.fr> on 2001/07/05 17:13:55 UTC

outputting XML tags

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.



---------------------------------------------------------------------
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: outputting XML tags

Posted by Vartika Bhandari <Va...@inria.fr>.
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: outputting XML tags

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
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.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
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: outputting XML tags

Posted by Luca Morandini <l....@tin.it>.
Vartika,

	have you already tried to remove the <map:transform/> tag in your sitemap ?
	If there is no XSL transformation, then Cocoon will output raw XML tags.

	This is for C2. If you happen to use C1, you must edit each XML file and
remove the XSL-transformation directive.

Best regards,
 
---------------------------------------------
               Luca Morandini
               GIS Consultant
            lmorandini@ieee.org
          +39 0744 59  85  1 Office
          +39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Vartika.Bhandari@inria.fr [mailto:Vartika.Bhandari@inria.fr]
> Sent: giovedì 5 luglio 2001 17.14
> To: cocoon-users@xml.apache.org
> Subject: outputting XML tags
>
>
> 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.
>
>
>
> ---------------------------------------------------------------------
> 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>
>


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