Matthias,

Have a look at
org.apache.roller.weblogger.ui.rendering.servlets.PageServlet.java, could
experiment by changing it there:

// looks like we need to render content
        // set the content deviceType
        String contentType = "text/html; charset=utf-8";
        if (StringUtils.isNotEmpty(page.getOutputContentType())) {
            contentType = page.getOutputContentType() + "; charset=utf-8";
        } else {
            String mimeType = RollerContext.getServletContext().getMimeType(
                    page.getLink());
            if (mimeType != null) {
                // we found a match ... set the content deviceType
                contentType = mimeType + "; charset=utf-8";
            } else {
                contentType = "text/html; charset=utf-8";
            }
        }


On 28 November 2013 11:08, Matthias Wimmer <[email protected]> wrote:

> Hi,
>
>
> I am trying to convert my weblog to use the MIME type
> application/xhtml+xml instead of text/html. I tought I could do this
> using the the <contentType/> element in the theme.xml of my Weblog
> theme. But changing this setting does not seem to have an effect to my
> blog.
>
> Where does roller then get the content type of its pages from?
>
>
> Regards,
> Matthias
>
> --
> Matthias Wimmer
> Contact details:     http://matthias.wimmer.tel/
>

Reply via email to