Hi,
Thank you all for trying to solve this problem. As far as possible I've tried your suggestions but so far I only realized I haven't provided enough information. BTW. Christian: I haven't been able to find any info on the LinkRewritingTransformer. Could you give a URL?
Sorry, slight misspelling: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/LinkRewriterTransformer.html
OK, there are two problems. One is to make all links relative to some application root and the second is to compute this application root.
For the first problem, you could add the application root to all links by using eg XSLT or you could use relative links and add
<base href="http://foo.bar.invalid/my/app/base/url"/>
to the <head/> of your <html/>. COnsequently, all relative links will be considered relative to <base/>, not the current URL.
Of course, this <base/> needs to be computed again, which leaves us with solving problem 2. However, this is much harder to solve because while the servlet path is available as well as the request URL or the sitemap URL, your application root is a fuzzy concept not known to cocoon. So, you need to compute this from the data given or configure it. For the full URL you need the servlet path + some path into cocoon. Server name and port are optional but could even be read from the request if so desired.
This leaves "some path into cocoon". Best is to configure that (doesn't change anyway). Options include global configurations, configuration file, system properties, servlet init parameter....
Chris.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
