[OSM-talk] SVG output & Inkscape

David Groom reviews at pacific-rim.net
Sun May 28 11:00:07 BST 2006


The last bit in my jigsaw, Xalan doesn't seem to through up the encoding 
issues I was finding with msxsl.

so to get SVG output that will open in Inkscape:

1) edit osmarender.xsl as detailed below

2) use Xalan to generate the svg file

----- Original Message ----- 
From: "David Groom" <reviews at pacific-rim.net>
To: <talk at openstreetmap.org>
Sent: Sunday, May 28, 2006 10:37 AM
Subject: Re: [OSM-talk] SVG output & Inkscape


> Further to yesterdays posting.
>
> 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'/>
>        </style>
>
> This seems to need to be removed from osmarender.xsl
>
> David
>
> ----- Original Message ----- 
> From: "David Groom" <reviews at pacific-rim.net>
> To: <talk at openstreetmap.org>
> Sent: Saturday, May 27, 2006 1:47 PM
> Subject: [OSM-talk] SVG output & Inkscape
>
>
>> I've been frustrated for some while now (actually since Etienne first 
>> released details of the excellent Osmarender ) of my inability to open 
>> SVG files produced by msxml in Inkscape.
>>
>> I seem to have found a work around, which hopefully will lead to someone 
>> more technical than myself finding a permanent solution.
>>
>> My text editor of choice is win32pad available from 
>> http://www.gena01.com/win32pad/
>>
>> However when I open the SVG file in win32pad there seems to be some 
>> encoding issues.
>>
>> Therefore I first open the SVG file in notepad, then select all the text 
>> and copy it to the clipboard, and then paste it into win32pad.
>>
>> Next, just before the end of the first <defs> section (in my output its 
>> just after the SVG symbol for a church, there is the following code:
>>
>> <style type="text/css"></style>
>>
>>
>> delete that code, save the file, and it should open in Inkscape.
>>
>> David
>>
>>
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>>
>>
>
>
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
> 







More information about the talk mailing list