I would like to use SVG and MathML embedded in an XHTML document --
the reason for embedding is to eventually allow JavaScript to
manipulate the DOM to update the display.  Unfortunately, I am running
into  some browser issues and content-type issues.

Firefox (and others) requires that I set a type of application/xhtml
+xml for it to render correctly.  IE requires that the type be text/
html.  So this brings up a few questions:

  1.  How can I set the MIMI content type that is returned in the HTTP
response?
  2.  What's the best way to do this dynamically based upon the client
type?
  3.  Are there other solutions I should consider?

A description of the problem with Apache rewrite info can be found
here:  http://wiki.svg.org/Inline_SVG.  I would prefer to deal with
everything in TurboGears / Pylons instead of spreading the solution
out between the framework and Apache.

To see the problem first-hand, copy the following XHTML doc into two
files -- one with an extension of .xhtml and one with .html.  Firefox
will render the .xhtml one correctly and IE will render the .html one
correctly.

Thanks,

Eric


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to