David,

The problem I am facing is using svg in my theme. As you know svg is an xml format, and I am trying to embed it in my decotartor. However, browsers don't display these images because they are receiving a content type in the http header showing that the content is "text/html". When I save the pages as static files through the browser save dialog and modify the contents type to "application/xhtml+xml" , I get the images to display correctly. I tried to change this mime type in multiple locations in jetspeed but the header still contains text/html in the response. I am using firebug to check the http header.

In an earlier email, I was advised to change the DB table. I will try this soon, since it's the only option I have, however, I prefer not to use or modify anything in the DB, as I am looking to keep the deployments easy and simple. I have worked before with CMS that stores contents and configuration in the DB, and deployment were nightmares because I had to sync the DB, while if the configurations are only in the files, deployments can be smooth.

As I said, I will try the option of modifying the db table, however, I like to hear your input.

Thank you in advance.



David Sean Taylor wrote:

On Oct 3, 2008, at 10:13 AM, Jeroen Hoffman wrote:

Hi Mansour,
Well, Jetspeed's table called 'mimetype' holds the know mimetype, of which the entry with id 1 stands for application/xhtml+xml and 2 for text/html. In the table called 'client', various browsers for different platforms can be identified. Each entry has a value preferred_mimetype_id that sets the default mimetype to be set as content type of the response.

So to change it you need to update your client table.
Using SQL this would be:
> update client set preferred_mimetype_id=1 where preferred_mimetype_id=2;


Im not sure if I understand the problem, but I thought I would give a little history that might help

Device configuration is imported with Jetspeed XML. We have the following mime types:

    <MimeTypes>
        <MimeType>application/xhtml+xml</MimeType>
        <MimeType>text/html</MimeType>
        <MimeType>text/vnd.wap.wml</MimeType>
        <MimeType>text/vxml</MimeType>
        <MimeType>text/xhtml</MimeType>
        <MimeType>text/xml</MimeType>
    </MimeTypes>

You can add an additional mime type, for ex:

        <MimeType>image/svg+xml</MimeType>

Whereas your browser's headers provide mime types, Jetspeed maps them to a more generic media type. You can create your own media type:

    <MediaTypes>
        <MediaType name="svg">
            <charcterSet value="UTF-8"/>
            <title value="SVG"/>
            <description value="SVG Media Type"/>
            <capabilities></capabilities>
            <mimeTypes>image/svg+xml</mimeTypes>
        </MediaType>


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



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

Reply via email to