cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Haraldsen Amundsen" <Magnus.Haraldsen.Amund...@computas.com>
Subject Cocoon 2.2: Accessing resources (images, css)
Date Wed, 26 Mar 2008 10:59:27 GMT
Hi,

 

We have a web app where the images and stylesheets are defined in the
pipeline as this:

 

<map:match pattern="images/*.gif">

  <map:read src="resources/images/{1}.gif" mime-type="image/gif"/>

</map:match>

 

In our XSLT we use the following syntax to display the images:

 

<img alt="header logo" src="images/header.gif"/>

 

And this works just fine when the url is like this:

 

http://www.mysite.com/myapp

 

However, when the url look like this:

 

http://www.mysite.com/myapp/admin

 

The images and stylesheets aren't accessed. How can this be solved?

Both the example URLs use the same XSLT to be transformed.

 

- Magnus


IMPORTANT NOTICE:
This message may contain confidential information. 
If you have received this e-mail in error, do not use, copy or 
distribute it. Do not open any attachments. Delete it immediately from
your system and notify the sender promptly by e-mail that you 
have done so. Thank you.


Mime
View raw message