From OpenStreetMap Wiki
Jump to: navigation, search

Dave's inkscape bugfix

Posted here so it's easy to find...

The extra <style type="text/css"></style> seems to result from the following code in osmarender.xsl at about line 111

       Get CSS definitions from the rules file (deprecated)
       <style type='text/css'>
         <xsl:value-of select='style'/>

The above seems to need to be removed from osmarender.xsl in order for Inkscape or GIMP to open the SVG file.

If using msxsl to generate the SVG file then I found the following necessary to resolve some character encoding issues:

Edit osmarender.xsl, and insert around line 46 the following code:

<xsl:output method="xml" omit-xml-declaration="no" encoding="UTF-8"/>