SVG: Modularized and mobile (1/2) - exploring XML | WebReference

SVG: Modularized and mobile (1/2) - exploring XML

SVG: Modularized and mobile

Mid-February the W3C released last call drafts of SVG 1.1 and SVG Mobile. SVG 1.1 is a modularized form of SVG 1.0, specified in W3C XML Schema rather than DTDs. By dividing up the functionality of SVG into modules, it facilitates the production of SVG profiles. Mobile SVG creates two such profiles: SVG Tiny, which is mainly aimed at cellphones, and SVG Basic for Personal Digital Assistants (PDAs).

The scope of SVG

SVG is a language for describing two-dimensional graphics in XML. SVG allows for three types of graphic objects: vector graphic shapes (e.g., paths consisting of straight lines and curves), images and text. Graphical objects can be grouped, styled, transformed and composited into previously rendered objects. The feature set includes nested transformations, clipping paths, alpha masks, filter effects and template objects.

SVG drawings can be interactive and dynamic. Animations can be defined and triggered either declaratively (i.e., by embedding SVG animation elements in SVG content), as shown in column 49, or via scripting.

Sophisticated applications of SVG are possible by use of a supplemental scripting language which accesses SVG Document Object Model (DOM), which provides complete access to all elements, attributes and properties. A rich set of event handlers such as onmouseover and onclick can be assigned to any SVG graphical object. Because of its compatibility and leveraging of other Web standards, features like scripting can be done on XHTML and SVG elements simultaneously within the same Web page.

What's new in version 1.1?

SVG 1.0 is a W3C Recommendation. This version 1.1 provides a modularization of the SVG 1.0 language which can be used to build profiles of SVG such as SVG Mobile, discussed below. There are also a small number of new features, including:

Modularization

The modularization of SVG is a decomposition of SVG 1.0 and a small set of extra features into a collection of abstract modules that provide specific types of functionality. These modules may be combined with each other and with other modules to create SVG subset and extension document types that qualify as members of the SVG-family of document types.

SVG identifiers

Identifiers for SVG files have been suggested as follows:

IdentifierValue
MIME type under registrationimage/svg+xml
Suggested file extension, Mac creator.svg, "svg "
Suggestion for compressed files.svgz, "svgz"
Namespacehttps://www.w3.org/2000/svg
Public Identifier 1.1PUBLIC "-//W3C//DTD SVG 1.1//EN"
System Identifier 1.1https://www.w3.org/TR/2002/WD-SVG11-20020215/DTD/svg11.dtd

Compatibility with other Standards

SVG leverages and integrates with other W3C specifications and standards efforts. By leveraging and conforming to other standards, SVG becomes more powerful and makes it easier for users to learn how to incorporate SVG into their Web sites.

The following describes some of the ways in which SVG maintains compatibility with, leverages and integrates with other W3C efforts:

Let's look at two profiles of SVG modules.


Produced by Michael Claßen

URL: https://www.webreference.com/xml/column51/index.html
Created: Mar 04, 2002
Revised: Mar 04, 2002