Aaaargh, I just want to include some VML in my webpart, but I can't set the namespace!
I'm trying to create a web part that will display some data in a nice graphic way and I figured that VML would fit my bill. It's not cross-browser, but so is SharePoint, so what the heck. After all, Google Maps does the same, so I guess it's not off-limits anymore :).
VML is just a little bit of XML in the namespace urn:schemas-microsoft-com:vml. Along the lines of HTML extensibility as suggested in the XHTML recommendations. Problem here is that the namespace must be declared. In all of the VML samples, the VML namespace is declared on the HTML tag. If you do that, it works fine. But as I am building a web part and not the whole page, I cannot change the HTML tag of the page. So I thought I would just set the xmlns:v attribute on the container element for my shapes, but this doesn't seem to work. It requires the xmlns attribute to be on the HTML tag and nowhere else. I also tried setting the namespace from script, but without success.
Anyone has any suggestions/tips on how to tackle this? I am pretty sure that I've seen web parts using VML before.