Home › Forums › DITA and XMetaL Discussion › Changing default height and width for the image element (reference topics) › Reply To: Changing default height and width for the image element (reference topics)
Reply to: Changing default height and width for the image element (reference topics)February 11, 2009 at 6:29 pm
SVG is a special case. XMetaL does not currently support SVG natively. Instead for releases up to and including 5.5 we embed a copy of the Internet Explorer “WebBrowser Control” and let it deal with the SVG rendering. If you have an SVG viewer plug-in installed for IE (such as Adobe SVG viewer) then you should see SVG files.
However, as you have noticed, this feature has not been fully implemented. The script that tells IE how big to draw itself first loads the SVG document into MSXML to find the width and height attributes there. This in itself has some limits as MSXML cannot load all SVG files, particularly if they reference the SVG DTD or Schema. Code to get the width and height directly from the element's attributes was simply not implemented. Someone familiar with creating customizations for XMetaL Author could modify this as the functionality that controls it is in this file: “C:Program FilesXMetaL 5.1AuthorDITAXACssharedobjectjsobject_op.js”
If I get some time at some point I'll see what it might take to get this working.