cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <j.re...@onehippo.com>
Subject Re: Howto: Make CSS available from within a stylesheet?
Date Wed, 29 Apr 2009 10:00:59 GMT
This probably won't work, since a generate is to generate from for 
instance an XML file, not a static resource. What you actually want to 
do is use a reader (map:read).

Regards,

Jeroen

Yet another person wrote:
> I made the following match in my pipeline:
> 
>  <map:pipeline id="stylesheet">
> <map:match pattern="*.css">
> <map:generate src="resources/internal/Stylesheets/{1}.css" type="file" />
> <map:serialize type="text" />
> </map:match>   
> 
> and my stylesheet pointed to the css like this:
> 
> <link rel="stylesheet" type="text/css" href="Main.css" />
> 
> On Wed, Apr 29, 2009 at 11:48 AM, Jeroen Reijn <j.reijn@onehippo.com 
> <mailto:j.reijn@onehippo.com>> wrote:
> 
>     Hi,
> 
>     your css file will be requested as a browser request, so you will
>     have to make sure you have a matcher in your sitemap that handles
>     this request.
> 
>     What did not work when you tried that?
> 
>     Regards,
> 
>     Jeroen
> 
> 
>     Yet another person wrote:
> 
>         I've been trying to use a css stylesheet in my xsl
>         transformation but It doesn't come through.
> 
>         It seems cocoon doesn't understand relative paths nor does it
>         understand resource/internal/stylesheets/file.css or any other
>         link i've tried.
> 
>         I even made a pipeline to match the css from my sitemap but that
>         didn't work either.
> 
>         It's probably something silly but I can't seem to find it - any
>         help would be greatly appreciated
> 
> 
> 
>         Thanks in advance!
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>     <mailto:users-unsubscribe@cocoon.apache.org>
>     For additional commands, e-mail: users-help@cocoon.apache.org
>     <mailto:users-help@cocoon.apache.org>
> 
> 

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


Mime
View raw message