|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^3: optical encoderby moritz (Cardinal) |
| on Mar 16, 2012 at 17:23 UTC ( #960027=note: print w/ replies, xml ) | Need Help?? |
|
The misspelling is right in the code I've posted, not in the module. In fact SVG.pm doesn't handle style specially in any way (though I've pondered it should). I've now actually tested the code, and this seems to work (the resulting SVG displays fine in firefox and inkscape).
As for the xmlns:svg declaration, that just means that the svg XML namespace is set up as being interpreted as SVG. This allows you (in theory) to do fun stuff like embedding <svg:rect ...> elements straight into XHTML. But even for browsers that support it, it is only supported if the document is delivered as application/xml+xhtml, which is generally no fun, because most IE versions don't render such documents, but offer them for download. </rant>
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||