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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
