Hello Ben,

Cocoon has a so called XHTML serializer, which is in fact a XML serializer, but adds the correct mime-type and the DOCTYPE, so that Mozilla correctly recognizes the page as XHTML. So you should use

<map:serialize type="xhtml"/>

The XSL FO namespace declaration comes from your stylesheet I guess - and the serializer does not remove it, but it does not add ns declarations by magic. The ns declaration has no influence on the mime type recognition of Mozilla, but the wrong mime-type text/xml of the XML serializer has.

Regards,

Joerg

Ben Munat wrote:

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, actually).

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="http://www.w3.org/1999/XSL/Format";>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to