ah, I misunderstood you.
You can do that by using a <use /> element that points to the same geometry of you polyline without having to store the geometry twice. Then you can just add a different stroke type to simulate your border effect. As an example see http://www.svgopen.com/2002/papers/ isakowski_neumann__svg_for_interactive_topographic_maps/index.html Section on "code optimization" and this example: http://www.svgopen.com/2002/papers/ isakowski_neumann__svg_for_interactive_topographic_maps/reuse_with_xlink.svg If you want asymmetric lines, you can use masks. Dr. Olaf Hoffmann did examples here: http://olaf.kilu.de/hilfe.php?me=svg2&in=svginnenaussen&stil=a here one of his animated example: http://olaf.kilu.de/svgueb/klippklapp05.svg Andreas --- In svg-developers@yahoogroups.com, "sent1729" <[EMAIL PROTECTED]> wrote: > > But the stroke does not add border to the polyline. > > Say for a Polyline with "red" stroke and stroke width "10", I would > like to add a white border with stroke width "2". How to do that? > > Any input would be appreciated. > Nathan. > > > --- In svg-developers@yahoogroups.com, "Andreas Neumann" > <neumann@> wrote: > > > > yes, you can use "stroke" and "stroke-width" on any graphics > element, incl. the <polyline /> > > element. > > > > Andreas > > > > --- In svg-developers@yahoogroups.com, "sent1729" <sent1729@> > wrote: > > > > > > Hi all, > > > > > > Is it possible to draw a polyline with a border in svg. For > example, > > > we can draw a rectangle with a border by assigning a stroke and > a > > > stroke width. Can we do similar thing to a polyline to draw a > border? > > > > > > Nathan. > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/