Metapost programming language: Examples
tex.loria.fr
tex.loria.fr
metafun: http://mirror.contextgarden.net/general/manuals/metafun-p.pd...
ConTeXt: http://wiki.contextgarden.net
I think SVG is a great idea, in theory; however, I've found SVG creation tools to be uniformly disappointing. Your suggestion, if reasonably well executed, would definitely be a step in the right direction.