You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by TREGAN Fabien <fa...@airbus.aeromatra.com> on 2002/03/11 10:48:51 UTC

How are mime type working in C2 ?

something I do not understand about mime-type in C2 (the problème only
appears with C2, but maybe it's not C2 related ?)

I use IE 5.5, and I use 2 serializers (default configuration) :

in xmap:
<map:serializer name="svg2jpeg"
src="org.apache.cocoon.serialization.SVGSerializer" 
logger="sitemap.serializer.svg2jpeg" mime-type="image/jpeg"/>
in xconf :
<component-instance name="xml"
class="org.apache.cocoon.serialization.XMLSerializer"
                       mime-type="text/xml"
                       logger="sitemap.serializer.xml"/>

-when I acces image.svg and use the SVGserializer, IE reconize it's a
image/jpeg and open it as an image.
-when I open data.xml and use the XML serializer, IE open it an HTML file (I
have to use 'view source' to see my data, or to use a xml -> xhtml
transformer)

When I open a .xml localy, IE reconize it as an xml file and display the
normal blue/red common treeview.

Is it a C2 related problem ? Is it an hack from IE to handle XHTML ?

fabien.


---------------------------------------------------------------------
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: Combining XSP files in Cocoon2

Posted by Conny Pemfors <co...@uarda.lu.se>.
Hi do you know how I get cocoon to work on a tomcat Apache/ Sun solaris
server
I have installed all the java classes that is needed but it doesn't work.


/Conny
----- Original Message -----
From: "Vadim Gritsenko" <va...@verizon.net>
To: <co...@xml.apache.org>
Sent: Monday, March 11, 2002 2:40 PM
Subject: RE: Combining XSP files in Cocoon2


> > From: Alex McLintock [mailto:alex@arcfan.demon.co.uk]
> >
> > Can you merge multiple XSP files in Cocoon 2 into one page?
>
> Ahem... After reading all this... Are you sure you want to merge
> *sources* of XSP pages, and not *results*???
>
> Vadim
>
>
> > I basically want to produce a single PDF with each page from the
> website
> > appearing in it.
> >
> > The FAQ says I can try this
> >
> >   <map:pipelines>
> > <map:pipeline internal-only="true">
> > <map:match pattern="one">
> > <map:generate src="docs/one.xml"/>
> > <map:serialize type="xml"/>
> > </map:match>
> > <map:match pattern="two">
> > <map:generate src="docs/two.xml"/>
> > <map:serialize type="xml"/>
> > </map:match>
> > </map:pipeline>
> > <map:pipeline>
> > <map:match pattern="desc.html">
> > <map:aggregate element="newRootElement">
> > <map:part src="cocoon:/one" element="firstXMLfile"/>
> > <map:part src="cocoon:/two" element="secondXMLfile"/>
> > </map:aggregate>
> > <map:transform src="stylesheets/merge2html.xsl"/>
> > <map:serialize type="html"/>
> > </map:match>
> > </map:pipeline>
> > </map:pipelines>
> >
> >
> > Now my problem is that I can't seem to combine two xsp files into one
> valid
> > xsp file.
> >
> > Are there special tags I can use to achieve this? (ie replacements for
> > "newRootElement",
> > "firstXMLfile", and "secondXMLfile")
> >
> > Alex Mc
> >
>
>
> ---------------------------------------------------------------------
> 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>


RE: Combining XSP files in Cocoon2

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Alex McLintock [mailto:alex@arcfan.demon.co.uk]
> 
> Can you merge multiple XSP files in Cocoon 2 into one page?

Ahem... After reading all this... Are you sure you want to merge
*sources* of XSP pages, and not *results*???

Vadim


> I basically want to produce a single PDF with each page from the
website
> appearing in it.
> 
> The FAQ says I can try this
> 
>   <map:pipelines>
> <map:pipeline internal-only="true">
> <map:match pattern="one">
> <map:generate src="docs/one.xml"/>
> <map:serialize type="xml"/>
> </map:match>
> <map:match pattern="two">
> <map:generate src="docs/two.xml"/>
> <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
> <map:pipeline>
> <map:match pattern="desc.html">
> <map:aggregate element="newRootElement">
> <map:part src="cocoon:/one" element="firstXMLfile"/>
> <map:part src="cocoon:/two" element="secondXMLfile"/>
> </map:aggregate>
> <map:transform src="stylesheets/merge2html.xsl"/>
> <map:serialize type="html"/>
> </map:match>
> </map:pipeline>
> </map:pipelines>
> 
> 
> Now my problem is that I can't seem to combine two xsp files into one
valid
> xsp file.
> 
> Are there special tags I can use to achieve this? (ie replacements for
> "newRootElement",
> "firstXMLfile", and "secondXMLfile")
> 
> Alex Mc
> 


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


Combining XSP files in Cocoon2

Posted by Alex McLintock <al...@arcfan.demon.co.uk>.
Can you merge multiple XSP files in Cocoon 2 into one page?

I basically want to produce a single PDF with each page from the website 
appearing in it.

The FAQ says I can try this

  <map:pipelines>
<map:pipeline internal-only="true">
<map:match pattern="one">
<map:generate src="docs/one.xml"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="two">
<map:generate src="docs/two.xml"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="desc.html">
<map:aggregate element="newRootElement">
<map:part src="cocoon:/one" element="firstXMLfile"/>
<map:part src="cocoon:/two" element="secondXMLfile"/>
</map:aggregate>
<map:transform src="stylesheets/merge2html.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
</map:pipelines>


Now my problem is that I can't seem to combine two xsp files into one valid 
xsp file.

Are there special tags I can use to achieve this? (ie replacements for 
"newRootElement",
"firstXMLfile", and "secondXMLfile")

Alex Mc


---------------------------------------------------------------------
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: How are mime type working in C2 ?

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: TREGAN Fabien [mailto:fabien.tregan@airbus.aeromatra.com]
> 
> something I do not understand about mime-type in C2 (the problème only
> appears with C2, but maybe it's not C2 related ?)
> 
> I use IE 5.5, and I use 2 serializers (default configuration) :
> 
> in xmap:
> <map:serializer name="svg2jpeg"
> src="org.apache.cocoon.serialization.SVGSerializer"
> logger="sitemap.serializer.svg2jpeg" mime-type="image/jpeg"/>
> in xconf :
> <component-instance name="xml"
> class="org.apache.cocoon.serialization.XMLSerializer"
>                        mime-type="text/xml"
>                        logger="sitemap.serializer.xml"/>
> 
> -when I acces image.svg and use the SVGserializer, IE reconize it's a
> image/jpeg and open it as an image.
> -when I open data.xml and use the XML serializer, IE open it an HTML
file (I
> have to use 'view source' to see my data, or to use a xml -> xhtml
> transformer)
> 
> When I open a .xml localy, IE reconize it as an xml file and display
the
> normal blue/red common treeview.
> 
> Is it a C2 related problem ? Is it an hack from IE to handle XHTML ?

I don't think so. For me, if I see similar behavior, I just close/open
IE and it works (shows XML as XML).

Vadim
 


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