cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Re: relative paths
Date Fri, 23 May 2003 13:01:18 GMT
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


Mime
View raw message