Magnus Haraldsen Amundsen pisze:
> 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.
Hello Magnus,
I was little bit surprised how many people could give different answers and all
of them feeling (at
least to me) inappropriate. ;-)
I try to evangelize usage patterns of SSF obstinately but still I see there is
a plenty of room for
improvement of my actions. ;-)
What I want to say: use servlet: protocol + LinkRewritingTransformer and forget
about path issues!
You can check Forms samples in order to see how powerful this technique is or
this document that
would give you some hints:
http://cocoon.apache.org/2.2/blocks/forms/1.0/1351_1_1.html
If you need further help don't hesitate to ask.
--
Grzegorz
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]