You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Upayavira <uv...@upaya.co.uk> on 2003/05/23 15:01:18 UTC

Re: relative paths

See:
http://wiki.cocoondev.org/Wiki.jsp?page=ServingStaticFiles

If you want to refer to a CSS file, you need to make sure that the CSS file is available 
via a URI in your sitemap.

Regards, Upayavira

On 23 May 2003 at 14:53, morten svanæs wrote:

> Hi,
> 
> I'm trying to get a css file loaded from a relative path inside a xslt
> file like this:
> 
>     <link href="stylesheets/main.css" type="text/css"
>     rel="stylesheet"/>
> 
> the sitemap is in:
> /cocoon/foo/bar
> 
> the sitemap loads the xslt file like this:
> <map:transform src="stylesheets/page2html.xsl">
> 
> But this don't work, so my question is: what is the root of the html
> document served after the xslt transformation ? In other examples I
> see that contextPath is used,  but I don't understand where it's
> defined and what it's value is. 
> 
> Any clarification would be appreciated.
> 
> Best regards 
> Morten Svanæs
> www.web-som-virker.no
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org