You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Piroumian Konstantin <KP...@protek.com> on 2002/05/23 08:55:15 UTC

RE: The Cocoon 'Crawler' [was: RE: cvs commit: xml-forrest/src/do cumentation/...]

> From: Steven Noels [mailto:stevenn@outerthought.org] 
> > From: Nicola Ken Barozzi [mailto:nicolaken@apache.org]
> 
> > 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.

Konstantin

> 
> </Steven>
>