That won't work since the same XSLT is used for all paths.
Is it possible to do something like this?
<map:match pattern="**/images/*.gif">
<map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
</map:match>
I've tried it, but hasn't had any success in getting it working yet.
- Magnus
________________________________
From: Bhavya Sharma [mailto:[EMAIL PROTECTED]
Sent: 26. mars 2008 12:04
To: [email protected]
Subject: Re: Cocoon 2.2: Accessing resources (images, css)
try to use following syntax incase of
http://www.mysite.com/myapp/admin
<img alt="header logo" src="../images/header.gif"/>
---------- Forwarded message ----------
From: Magnus Haraldsen Amundsen <[EMAIL PROTECTED]>
Date: Wed, Mar 26, 2008 at 4:29 PM
Subject: Cocoon 2.2: Accessing resources (images, css)
To: [email protected]
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.
--
Thanks
Bhavya Sharma
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.