Re: XSLT transformations with Cocoon
I'm not sure I understand your question, so I'll try to answer as best I can: * Is it possible to use cocoon to do an XSLT transformation with the output being XML? Yes.map:serialize type=xml/ * Is it possible to use cocoon to do an XSLT transformation with the output being HTML? Yes.map:serialize type=html/ * Is it possible to use cocoon to do an XSLT transformation with the output being HTML tags, but in an XML format (i.e., in an XHTML format)? Yes.map:serialize type=xml/ HTH. If I didn't answer your question, then please write back and clarify. DR At 03:57 PM 12/10/01 +0100, you wrote: Hallo, I find myself in front of the task to process xml data through an xsl(t) stylesheet to a different xml. It is possible to do that using Cocoon [2] as if it where supposed to produce an html output. Before I embark in using Cocoon (instead of, for instance, SAXON) I'D like to ask professional Cocoon users whether you practice this way of transformation, whether you practice it with success and whether there are limitations to this kind of (ab-) use of Cocoon. Regards, Matthias Dott. Matthias Fischer abc.Mediaservice GmbH Nebelhornstraße 8 86807 Buchloe Tel. (08241) 9686-38 Fax (08241) 9686-26 http://www.abc-media.de e-mail: [EMAIL PROTECTED] ein Unternehmen der abc.Mediengruppe - 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]
RE: XSLT transformations with Cocoon
That was real quick, David. Thanks. I'll clarify: 1. In Tomcat [4] we have set the destination type to map:serialize type=xml/, as you have suggested. The following problems have arisen: - Internet Explorer gets into Cocoon's way and wants to open the xml file when I click onto it to start the transformation. We haven't found a way to stop IE doing that. - Alternatively, we have set Tomcat to map:serialize type=html/, producing an html output with the option of (a) viewing the source code, (b) copy it to the clipboard, (c) paste it into an empty xml file using some XML editor, (d) saving the xml file in the xml editor. This (a)..(d) does not seem satisfactory at all. We need the xml output as an xml file, to further process it. Therefore, we'd prefer to - set the destination type to map:serialize type=xml/ - click on the xml file or any other destination file from inside the browser - have our xml editor open the xml file produced by the transformation or, alternatively, view the xml sourcecode directly in the browser or, alternatively, have an xml file dropped unviewed somewhere in a specified destination folder. Is this possible, and if it is, how? 2. The other question I tried to get over before was this: When we embarked in FOP transformation we didn't expect so many problems linked to the processor. However, we got lots of problems with non-existing or even wrong documentation, non-working functions or functions working under some very specific conditions. Is the state of realization of XML2XML with Cocoon [2] satisfactory under this aspect? Or would anybody advise me to use rather a different processor? Thanks for your answer(s) in advance, Matthias -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 4:00 PM To: [EMAIL PROTECTED] Subject: Re: XSLT transformations with Cocoon I'm not sure I understand your question, so I'll try to answer as best I can: * Is it possible to use cocoon to do an XSLT transformation with the output being XML? Yes.map:serialize type=xml/ [...] DR - 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: XSLT transformations with Cocoon (added clearer formulation)
That was real quick, David. Thanks. I'll clarify: 1. In Tomcat [4] we have set the destination type to map:serialize type=xml/, as you have suggested. The following problems have arisen: - Internet Explorer gets into Cocoon's way and wants to open the xml file when I click onto it to start the transformation. We haven't found a way to stop IE doing that. - Alternatively, we have set Tomcat to map:serialize type=html/, producing an html output with the option of (a) viewing the source code, (b) copy it to the clipboard, (c) paste it into an empty xml file using some XML editor, (d) saving the xml file in the xml editor. This (a)..(d) does not seem satisfactory at all. We need the xml output as an xml file, to further process it. Therefore, we'd prefer to - set the destination type to map:serialize type=xml/ - click on the xml file or any other destination file from inside the browser TO START THE TRANSFORMATION - have our xml editor open the xml file produced by the transformation or, alternatively, view the xml sourcecode directly in the browser or, alternatively, have an xml file dropped unviewed somewhere in a specified destination folder. Is this possible, and if it is, how? 2. The other question I tried to get over before was this: When we embarked in FOP transformation we didn't expect so many problems linked to the processor. However, we got lots of problems with non-existing or even wrong documentation, non-working functions or functions working under some very specific conditions. Is the state of realization of XML2XML with Cocoon [2] satisfactory under this aspect? Or would anybody advise me to use rather a different processor? Thanks for your answer(s) in advance, Matthias -Original Message- From: David Rosenstrauch [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 4:00 PM To: [EMAIL PROTECTED] Subject: Re: XSLT transformations with Cocoon I'm not sure I understand your question, so I'll try to answer as best I can: * Is it possible to use cocoon to do an XSLT transformation with the output being XML? Yes.map:serialize type=xml/ [...] DR - 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]
RE: XSLT transformations with Cocoon
Jörn, what do mean by sitemap? (Please tell me the German term, maybe I'll understand it better...) Matthias -Original Message- From: Jörn Heid [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 5:08 PM To: [EMAIL PROTECTED] Subject: AW: XSLT transformations with Cocoon (added clearer formulation) The browser shows the xml file becuase of its content type text/xml. If you change that (you can do so in the sitemap) to application/x-whatever your browser should ask you to save or view it. But that's not Cocoon specific. [...] JOERN - 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: XSLT transformations with Cocoon
sitemap is the configuration file located in: $TOMCAT_HOME/webapps/cocoon/sitemap.xmap It defines the pipelines and the components of it. Have you try to rigth-click the xml that IE shows and click in view-source to see the xml file the cocoon returns? Regards... -- Mauricio Souza Lima Rational Consulting [EMAIL PROTECTED] Rua Helena, 140 / cj. 82 São Paulo - SP - Brazil Fone / Direct: +55 11 3842-7138 Matthias Fischer wrote: Jörn, what do mean by sitemap? (Please tell me the German term, maybe I'll understand it better...) Matthias -Original Message- From: Jörn Heid [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 5:08 PM To: [EMAIL PROTECTED] Subject: AW: XSLT transformations with Cocoon (added clearer formulation) The browser shows the xml file becuase of its content type text/xml. If you change that (you can do so in the sitemap) to application/x-whatever your browser should ask you to save or view it. But that's not Cocoon specific. [...] JOERN - 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]