You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stéphane MESTRE <st...@etu.enseeiht.fr> on 2004/07/27 11:43:10 UTC
Problem with CSS reader ...
Hello,
I've got a problem with the CSS file in my Cocoon generated pages.
The goal of the sitemap is making a listing of directory and subdirectory.
When the browser ask the first page (first xsl) the css file is applied.
request : http://localhost:8080/cocoon/injac/?cssfile=default.css
For the other pages ans the next requests the css file is not apply.The
browser ask the listing of the subdirectory, in this case
"publications/Publication3_PDF"
request :
<http://localhost:8080/cocoon/injac/publications/Publication3_PDF?cssfile=de
fault.css>
http://localhost:8080/cocoon/injac/publications/Publication3_PDF?cssfile=def
ault.css
In the xsl stylesheets, I include the css :
<xsl:param name="cssfile"/>
...
<link rel="stylesheet" href="{$cssfile}" mime-type="text/css"/>
In the sitemap, I have a reader for the css like this :
<map:match pattern="*.css">
<map:read
src="file://C:/Serveurs_INJAC/Tomcat-5.0.18/webapps/cocoon/injac/stylesheets
/css/{1}.css
<file:///C:/Serveurs_INJAC/Tomcat-5.0.18/webapps/cocoon/injac/stylesheets/cs
s/%7B1%7D.css> " mime-type="text/css"/>
</map:match>
The xsl file is aproximativle the same than the first, at least for the link
on the css.
I don't understand why the css is not apllied.
I try other solution using the 'context' or 'cocoon' but the problem is the
same, if it's right, the solution is not generic for all subdirectory
because it's applied to a specific context who's changing.
Thank you in advance for your answer
---------------------------------------------------
Stéphane MESTRE
ENSEEIHT
<ma...@etu.enseeiht.fr> stephane.mestre@etu.enseeiht.fr
---------------------------------------------------