<br><div><span class="gmail_quote">On 3/17/06, <b class="gmail_sendername">Tom Carden</b> <<a href="mailto:tom@tom-carden.co.uk">tom@tom-carden.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For those who don't follow the OpenStreetMap wiki too closely, I just<br>wrote a post to the new OpenGeoData blog highlighting Etienne's<br>interesting experiments with XSL transforms for generating SVG from<br>the OSM API's XML. (Excuse my TLAs).
</blockquote><div><br>The current recipe for anyone who wants to try rendering their own bit of the world is here:<br>
<a href="http://wiki.openstreetmap.org/index.php/Talk:KT13_Weybridge#Rendering_tool">http://wiki.openstreetmap.org/index.php/Talk:KT13_Weybridge#Rendering_tool</a><br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* SVG has built in support for rendering text along paths, making<br>drawing road names etc that bit easier</blockquote><div><br>Alas, this is one bit of SVG that is not yet implemented in Firefox (but Adobe's SVG plug-in does).
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">There's no reason I can think of not to put an XSL style sheet<br>directly into the OSM API output, and link to it from the map viewer
<br>for the current bounding box.  </blockquote><div><br>It would be nice to have an API call that would serve up the XML with
the appropriate processing instruction and also have the stylesheet
provided from the server.  It would need the bounding box attributes to
be part of the XML output, but you've already realised that.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The only thing I'm not sure about is<br>how easy it is to save the resulting SVG (I had to use the 'copy XML'
<br>option from the DOM inspection tool) and if it's ever going to work in<br>other browsers.</blockquote><div><br>One option would be to transform the xml using xalan on the server and just deliver the resulting svg.  This is probably the only way to make it work for IE (there are just too many ways IE can be "configured" so that the xml->xsl->svg stuff doesn't work).   Unfortunately this would put more load on the server :(
<br></div><br>Etienne<br><br></div>