Re: outputting XML tags
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: outputting XML tags
Thanksbut 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]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: outputting XML tags
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 [EMAIL PROTECTED] +39 0744 59 85 1 Office +39 0335 681 02 12 Mobile http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: giovedì 5 luglio 2001 17.14 To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]