You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mike Holt <mi...@zenserve.com> on 2005/06/30 12:43:04 UTC
Cocoon and CSS
Greetings all,
I'm having difficulty getting Cocoon 2.1 running on Tomcat 5 to
recognize and process a path in my CSS file:
list-style-image: url(images/bullet.gif);
I've tried a number of different ways of managing the CSS information:
at the moment it's contained within its own XSL stylesheet and
processed by a TextSerializer - this allows me to imbed XSL tags, but
apparently has no effect on the way the inline image path is processed.
Incidentally, the CSS class containing the bullet is processed
correctly if the entry is embedded within the page XSL. I'd prefer not
to do this.
This is my first post to this list, so apologies if this question has
already been answered. I searched the archive and couldn't find anything.
Best regards,
Mike Holt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon and CSS
Posted by Gerald Aichholzer <ga...@sbox.tugraz.at>.
Hi,
Mike Holt wrote:
>
> I'm having difficulty getting Cocoon 2.1 running on Tomcat 5 to
> recognize and process a path in my CSS file:
>
> list-style-image: url(images/bullet.gif);
>
AFAIU the CCS specification says thath the above path is
relative to the stylesheet location (not the location of
the resulting HTML file).
If your (X)HTML contains e.g. the following:
<link type="text/css" rel="stylesheet" href="css/default.css"/>
then your sitemap will need a matcher for
- the (X)HTML file
- the CSS (which path is relative to the (X)HTML file)
- the image used in url (which path is relative to the CSS path)
The following wiki entry might be useful, too:
http://wiki.apache.org/cocoon/ServingStaticFiles
HTH,
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Cocoon and CSS
Posted by Pierre-Yves Landuré <py...@dorigo.fr>.
hi mike
the tip is : the image url must be relative to the css file , not to the
html page. ;)
in your example : images folder should be in the folder where is the css
file.
Pierre-Yves
Mike Holt a écrit :
>Greetings all,
>
>I'm having difficulty getting Cocoon 2.1 running on Tomcat 5 to
>recognize and process a path in my CSS file:
>
>list-style-image: url(images/bullet.gif);
>
>I've tried a number of different ways of managing the CSS information:
>at the moment it's contained within its own XSL stylesheet and
>processed by a TextSerializer - this allows me to imbed XSL tags, but
>apparently has no effect on the way the inline image path is processed.
>
>Incidentally, the CSS class containing the bullet is processed
>correctly if the entry is embedded within the page XSL. I'd prefer not
>to do this.
>
>This is my first post to this list, so apologies if this question has
>already been answered. I searched the archive and couldn't find anything.
>
>Best regards,
>
>Mike Holt
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>
--
Pierre-Yves Landuré
-----------------------------------------------------------------
Dorigo Consultants
15 rue d'Hauteville - 75010 Paris
Tél. +33 1 48 07 20 75 - Fax +33 1 43 38 60 12
py.landure@dorigo.fr <ma...@dorigo.fr>
Avez-vous visité notre site Internet www.dorigo-consultants.com
<http://www.dorigo-consultants.com> ?
-----------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org