FEB
24
2006

(X)HTML+SVG

Just a short note that I have experimented with svg embedded inline in xhtml. Taking the code
from webkit+svg, I did a prototype bundling khtml2 and ksvg2 on top of kdom, and making sure
the svg elements use render objects this time. I also used just one backend, which uses the qt4 painter.
Even though I did not get to implement all features (markers, text), it clearly shows that
inlining of svg in xhtml is very possible!
Here are examples of rendering of xhtml+svg docs:

http://www.xs4all.nl/~rwlbuis/simpleCDF.png
http://www.xs4all.nl/~rwlbuis/simpleCDF2.png

Cheers,

Rob.

Comments

Very nice results. Can i download the code somewhere? I'll take a look at it to get any idea's on rendering xhtml + xforms.


By Bertjan Broeksema at Fri, 02/24/2006 - 20:49

Thanks :)
The code is not really special. I just combined khtml2
and ksvg2 from kdenonbeta and took the ideas from Apple's
webkit (http://webkit.opendarwin.org/).
Particularly the webkit codebase should give enough pointers
how the dom building and rendering with compound documents
should work. Feel free to join us in irc at #ksvg and/or #webkit
to get more detailed answers :-)
Cheers,

Rob.


By Rob Buis at Sat, 02/25/2006 - 09:13