You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Volker Schneider <vo...@danet.de> on 2002/05/22 22:09:11 UTC

Getting out of Cocoon-context

Dear colleagues,

I want to use static files like images etc. but don't want to use pipelines,
but static files served by the webserver.

Does anybody know how I can configure WebSphereApplicationDeveloper in this
way, so that static files are being served by the webserver and can be used
in HTML pages generated by cocoon?

If there is an image tag within my html result, cocoon will assume that it's
a pipeline - but I do not want this.

Best regards
- Volker -


---------------------------------------------------------------------
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: Getting out of Cocoon-context

Posted by Paul Gilligan <pd...@oyap.net>.
My site does that....


I have an alias ... from the web server of say Images, so 
www.oyap.net/Images gives me the images.

So in XML I can have:

			<mediaobject>
				<imageobject>
					<imagedata fileref="http://www.oyap.net/Images/tech_up.gif" format="GIF" 
id="tech"/>
				</imageobject>
			</mediaobject>


Which is totally outside of cocoon :)

did that make sense?

Then translate that to HTML with say:

<xsl:template match="imagedata">
   <img name="{@id}" border="0" src="{@fileref}" align="absbottom" 
alt="{@id}"/>
</xsl:template>

(using the ID element to pass the name parameter as it should be unique)








Volker Schneider wrote:

> Dear colleagues,
> 
> I want to use static files like images etc. but don't want to use pipelines,
> but static files served by the webserver.
> 
> Does anybody know how I can configure WebSphereApplicationDeveloper in this
> way, so that static files are being served by the webserver and can be used
> in HTML pages generated by cocoon?
> 
> If there is an image tag within my html result, cocoon will assume that it's
> a pipeline - but I do not want this.
> 
> Best regards
> - Volker -
> 
> 
> ---------------------------------------------------------------------
> 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: Getting out of Cocoon-context

Posted by Volker Schneider <vo...@danet.de>.
Hi Luca,

thank you for your reply. With WebSphereApplicationDeveloper I can do your
second suggestion by creating a new WebProject for static files only. From
Cocoon I can access the parallel URI path using "../static/logo.gif" for
example, so I don't have to specify the server. And it works.

Thank you, best regards
- Volker -

-----Original Message-----
From: Luca Morandini [mailto:luca.morandini1@tin.it]
Sent: Mittwoch, 22. Mai 2002 22:23
To: cocoon-users@xml.apache.org
Subject: RE: Getting out of Cocoon-context


Volker,

just tell the web-server to pass only the ".html" (or ".xml")-ending URI to
Cocoon, or...
tell the web-server to pass only the URI containing "cocoon" (or your app's
name) to Cocoon and use another root in your static content's URI (like
"/images/foo-gif" or "/static/images/foo.gif").

Best regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Volker Schneider [mailto:volker.schneider@danet.de]
> Sent: Wednesday, May 22, 2002 10:09 PM
> To: cocoon-users@xml.apache.org
> Subject: Getting out of Cocoon-context
>
>
> Dear colleagues,
>
> I want to use static files like images etc. but don't want to use
> pipelines,
> but static files served by the webserver.
>
> Does anybody know how I can configure
> WebSphereApplicationDeveloper in this
> way, so that static files are being served by the webserver and
> can be used
> in HTML pages generated by cocoon?
>
> If there is an image tag within my html result, cocoon will
> assume that it's
> a pipeline - but I do not want this.
>
> Best regards
> - Volker -
>
>
> ---------------------------------------------------------------------
> 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>


---------------------------------------------------------------------
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: Getting out of Cocoon-context

Posted by Luca Morandini <lu...@tin.it>.
Volker,

just tell the web-server to pass only the ".html" (or ".xml")-ending URI to
Cocoon, or...
tell the web-server to pass only the URI containing "cocoon" (or your app's
name) to Cocoon and use another root in your static content's URI (like
"/images/foo-gif" or "/static/images/foo.gif").

Best regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Volker Schneider [mailto:volker.schneider@danet.de]
> Sent: Wednesday, May 22, 2002 10:09 PM
> To: cocoon-users@xml.apache.org
> Subject: Getting out of Cocoon-context
>
>
> Dear colleagues,
>
> I want to use static files like images etc. but don't want to use
> pipelines,
> but static files served by the webserver.
>
> Does anybody know how I can configure
> WebSphereApplicationDeveloper in this
> way, so that static files are being served by the webserver and
> can be used
> in HTML pages generated by cocoon?
>
> If there is an image tag within my html result, cocoon will
> assume that it's
> a pipeline - but I do not want this.
>
> Best regards
> - Volker -
>
>
> ---------------------------------------------------------------------
> 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>