cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Munat <>
Subject Re: serving css and images
Date Fri, 08 Aug 2003 18:04:48 GMT
Thanks for all the replies. I must have been pretty fuzzy last night to 
miss the fact that I hadn't changed the image map:match to the correct 
source and mime type! Thus are the dangers of cut & paste (yank & put, 

I've gotten it to find the image and stylesheet now, but I had to change 
the serializer to html. Don't I want to use the xml serializer to get 
xhtml output? Cocoon is also putting this namespace on my html tag:

<html xmlns:fo="">

which is what, I think, was making mozilla interpret the file as xml and 
hence not retrieve the stylesheet and image or even render the html, for 
that matter. Once I changed the serializer to html, it put in:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

so now mozilla treats it as html (even though the fo ns declaration is 
still there). I don't know that it matters that much, though I'd like to 
know why I'm getting that ns added... and for that matter, isn't there a 
way to have cocoon insert an xhtml dtd into the output file?

Thanks for all your help.

Ben Munat

Ben Munat wrote:

> Hello. I'm very new to Cocoon... wobbling along. At this point I'm just 
> trying to get Cocoon to serve an xml file transformed to xhtml with an 
> xslt. Well actually, I did get it to serve the file. However, the 
> resulting page has a link to an image and a css file and those are not 
> coming through.
> I have the Cocoon Developer's Handbook and it seems to indicate that I 
> need to do this in my subsitemap:
>        <map:pipeline>
>            <map:match pattern="**/*.css">
>                <map:read mime-type="text/css" src="style/{2}.css"/>
>            </map:match>
>        </map:pipeline>
>        <map:pipeline>
>            <map:match pattern="**/*.gif">
>                <map:read mime-type="text/css" src="style/{2}.css"/>
>            </map:match>
>        </map:pipeline>
> However, that hasn't solved the problem. Anyone have any idea what I'm 
> missing? I do need to have these pipelines in my sitemap so that pages 
> can find their images and stylesheets, right?
> Thanks in advance,
> Ben Munat
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message