[Xsltforms-support] XForms + SVG/Xhtml
Brought to you by:
alain-couthures
From: Santosh C. <san...@gm...> - 2011-10-07 07:07:36
|
I had to include SVG into XForms application recently and thought to share my findings. Without fiddling much with setting the application type in javascript, we can simply give xhtml extension to the result of transformation and use this xhtml result which supports SVG. XSLTForms fully work in xhtml mode (I use older version), you only need to make sure that your application works in xhtml. Typically things like not using innerHTML etc., more details here - http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml SVG has limited support in HTML as well if we avoid namespaces (for IE version 9 works), so one could try HTML first and see if it works for all the requirements. Regards, Santosh |