Vector markup language

from Wikipedia, the free encyclopedia

The Vector Markup Language ( VML ) was a markup language for describing two-dimensional vector graphics in XML . VML was passed in 1998 by Microsoft , Macromedia and others to the World Wide Web Consortium (W3C) for standardization . VML was rejected as a web standard because Adobe , Sun and others applied for another standard called Precision Graphics Markup Language (PGML). These two proposals were combined under the name Scalable Vector Graphics (SVG) and adopted as a standard by the W3C.

Although rejected as a standard by the W3C and largely ignored by developers, Microsoft implemented VML in Internet Explorer 5 through 9 and in Microsoft Office 2000 and higher. As of Internet Explorer 10, Microsoft no longer supports VML. When saving Office documents as a “ website ”, the format is used to embed vector drawings in the resulting HTML files in such a way that they can be opened again with the same Office program without loss.

Google Maps currently uses VML to draw vector graphics when using Internet Explorer 5.5 or higher.

example

The following VML example shows an oval with a blue fill:
<html xmlns:v>
 <style>v\:*{behavior:url(#default#VML);position:absolute}</style>
<body>
 <v:oval style="left:0;top:0;width:100;height:50" fillcolor="blue" stroked="f"/>
</body>
</html>
Example as SVG
The same example as SVG would look like this:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="50">
  <ellipse cx="50" cy="25" rx="50" ry="25" fill="blue" stroke="none" />
</svg>

See also

Web links