SVGfix Plugin

Current Version: 0.4 (9/24/2009)


The W3C profile for XHTML+MathML+SVG requires that the SVG in such a compound document be prefixed and is unnecessarily restrictive about how the prefix for the XLink namespace is declared. These requirements clash with the SVG produced by common tools, like Inkscape, requiring extensive editing of the output of such tools before it can be used. These requirements are completely superfluous from the point of view of XML Namespaces but you'll have to adhere to them if you want to use the W3C Validator as part of your workflow.

With Sam Ruby's help, I created a MovableType plugin which converts ordinary namespace well-formed XHTML+MathML+SVG into the format demanded by the W3C Validator. The plugin adds a global filter, which you can use in your templates:

<MTEntryBody svg_fix="1">

As a bonus, the plugin does the conversion handled by the Numeric Entitites plugin.


  • XML::Parser
  • Encode

The plugin supports any blog Charset supported by the above two Perl modules.


  1. Download and unpack the distribution.
  2. Place the contents of the plugins folder in your MT plugins folder and the contents of the extlib folder in your MT extlib folder. Be careful: these folders already have files in them. Don't overwrite them!