cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Afonchenko" <a...@ubaccess.com>
Subject Re: css loading
Date Sun, 10 Aug 2003 14:06:39 GMT
Yes, that was the reason.
replacing link's href to ../style.css will make it work.

Thank you very much Joerg and sorry for a stupid question

----- Original Message ----- 
From: "Joerg Heinicke" <joerg.heinicke@gmx.de>
To: <users@cocoon.apache.org>
Sent: Sunday, August 10, 2003 13:52
Subject: Re: css loading


> I guess it's simply the other base. If you have 
> http://www.yourserver.com/impact.html and change it to 
> http://www.yourserver.com/anydir/impact.html, the css link is also 
> resolved to http://www.yourserver.com/anydir/style.css.
> 
> You can change the css link's href to ../style.css or maybe /style.css 
> or add a further pipe:
> 
> <map:match pattern="**/*.css">
>    <map:read src="styles/{2}.css" mime-type="text/css"/>
> </map:match>
> 
> Is it this what you asked for?
> 
> Joerg
> 
> Anna Afonchenko wrote:
> 
> > Hi all.
> > I have a weird things happenning while serving css files.
> > 
> > I have an html file impact.html that has in it a link to a stylesheet:
> > <link rel="stylesheet" type="text/css" href="style.css"/>
> > 
> > I serve this file in cocoon:
> > <map:match pattern="impact">
> >   <map:generate src="impact.htm" type="html"/>
> >   <map:serialize type="html"/>
> > </map:match>
> > 
> > <map:match pattern="*.css">
> >   <map:read src="styles/{1}.css" mime-type="text/css"/>
> > </map:match>
> > 
> > This way it works, and loads the css correctly.
> > 
> > BUT if I change the pattern of the match from pattern="impact" to
> > something that contains / in it, e.g.
> > pattern="test/impact" and try to serve it, the css is not loaded.
> > 
> > Is there a reason for this? Am I missing something?
> > I am using cocoon 2.0.4.
> > 
> > Thank you very much for help.
> > 
> > Anna
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: 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