Comments below...
On 6/14/07, Richard Kaye <[EMAIL PROTECTED]> wrote:
Hi everyone - and apologies if I am sending this to the wrong
list. I don't know if this counts as "minor customization
(for example, at the theme level)" but I suspect not.
I want a MathML-enabled blog. Specifically entries should be
in XHTML+MathML (and not plain HTML). I haven't decided yet,
but I may also want to allow MathML in comments too. I have
just installed a working roller (3.1) under tomcat (5.5), and
all is well with this, but don't even know where to start
with customising it.
The documents the client sees should be served as content-type
"application/xhtml+xml" (ideally, though "text/xml" is
possible, as is "text/xml; charset=utf-8" and couple of
other more obscure ones). This is absolutely necessary
for them to be displayed correctly on both major browsers
(firefox, IE). I have no control over these content-types.
In particular, the space after ";" and capitalization in
"text/xml; charset=utf-8" are essential for IE, which
doesn't load the plugin correctly if given
"text/xml;charset=utf-8" or "text/xml; charset=UTF-8".
Also, adding a charset to "application/xhtml+xml" also
stops it working. (Don't ask me why... I wasn't able to
study the IE source code.)
The other constraint I have is that ideally other clients
(such as the google bots, which do not understand XHTML
and IE clients without the required plugin) must see a
plain HTML version of the pages, served as text/html.
So it seems I need two "flavours" of the same pages.
I could not see how to achieve either of these requirements
by creating and editing a new template, and I couldn't find
any other helpful roller settings. I guess atom, rss, (etc)
feeds work in the sort of way I need but I need some pointers
on how to add new flavours to my roller.
The only idea I have is that I suppose I could use my apache
and a connector and do all these changes using apache modules
and XSLT transformations, but I would have thought good blog
software wouldn't require this sort of thing. Does anyone here
have other ideas of how to configure or customise roller itself?
In 3.1 we serve pages as "text/html;charset=utf8" unless the page's
link has an extension that allows us to guess (using
ServletContext.getMimeType()) the content type. So you're basically
out of luck with 3.1.
Currently, in 4.0 we allow you to set the content-type of each page
template, which should be helpful to you except that we don't allow
you set the content-type of the required templates (Weblog, _css,
_day).
If we fixed that and allowed you to set the content-type for each and
every page template, you'd be almost there. Do you really need to be
able to serve different content-types to different browsers of the
very same page?
- Dave