XML technologies / SVG / SVG and XML

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

Now that you know SVG’s basics, you have probably noticed some disadvantages. Browser differences matter again: one needs a plug-in, another supports SVG directly but not the <EMBED> tag. Besides a page for browsers without SVG, you would therefore need two versions for SVG-capable browsers. At first glance SVG seems even less usable than techniques such as CSS, Flash or frames.

Remembering that SVG is XML-based quickly suggests a solution: suitable XSLT files can convert XML into virtually any format. Store the web page’s data in XML and create XSLT files converting it into HTML pages with embedded SVG. Croczilla can open the XML directly; other browsers can use the HTML files.

Note:
The programming of XSLT files is complex and beyond this book’s scope. Only XML and namespace basics follow. Converting XML to SVG, VML or HTML requires further reading.

   

   

 

 

 

back to top