forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piroumian Konstantin <>
Subject RE: The Cocoon 'Crawler' [was: RE: cvs commit: xml-forrest/src/do cumentation/...]
Date Thu, 23 May 2002 06:55:15 GMT
> From: Steven Noels [] 
> > From: Nicola Ken Barozzi []
> > I'm not talking about how to reference them, but what Cocoon
> > creates as a
> > static result.
> Another issue with the 'crawler' is images referenced from referenced
> CSS (and the Forrest skin, or at least the page.html on which has been
> based, makes use of this IIRC):
> --- page.css
> .menu li .chapter  { list-style-image: url('images/chapter.gif');
> font-weight: bold }
> Those don't come up in the output, neither. Quite logical, the crawler
> isn't a full-blown web browser, but how can we circumvent this?

The HTML can be changed like this:
<li><a href="chapter.html"><img src="images/chapter.gif" />Chapter</a></li>

This will also work in other browsers that don't support that CSS feature. I
used the CSS because the list images are part of the presentation style and
it was much easier to implement Show/Hide in JavaScript changing only the
class name. But now as we decided do not use JS for menu I see that there is
no need to have this in CSS. And we can have differently styled images for
different skins if we need but use the same file names.


> </Steven>

View raw message