Home | Industry Information | Business News | Browse by Publication | X | XML Journal

Got XSLT? Part 4 of 5: how to transform XML to SVG easily. (xslt tutorial).(Tutorial)

Publication: XML Journal
Publication Date: 01-FEB-02
Format: Online
Delivery: Immediate Online Access

Article Excerpt
The two most commonly used graphics formats on the Web today are GIF and JPEG. Both are pixel-based and, as we've all probably seen, lose quality when you try to zoom. SVG -- Scalable Vector Graphics -- is entirely based on XML, and takes up less space than the average GIF and JPEG.

SVG a...

View more below

Read this article now - Try Goliath Business News - FREE!   
You can view this article PLUS...

  • Over 5 million business articles
  • Hundreds of the most trusted magazines, newswires, and journals (see list)
  • Premium business information that is timely and relevant
  • Unlimited Access

Now for a Limited Time, try Goliath Business News - Free for 7 Days!
Tell Me More   Terms and Conditions

Purchase this article for $4.95

Already a subscriber? Log in to view full article

...brings to the Web the rich, high-resolution graphics that we've all come to expect in printed catalogs and magazines. And because of its vector-based nature, it has the same high quality when it's displayed on PDAs with limited screen real-estate as when it's displayed on high-end monitors (even TVs), or when it's printed out on paper.

In previous issues of XML-J (Vol. 2, issues 10, 11; Vol 3, issue 1) I've offered instruction in how to transform XML documents into HTML, WML, and VoiceXML. In this tutorial I'll give you basic introduction to SVG and show you how to use XSLT to transform our XML example into SVG.

Note: Currently, to view SVG graphics, you need to download and install a compatible viewer or Web browser plug-in. Check the Resources section for a list of available programs. I've used Adobe SVG Viewer (3.0) for Windows -- English, and a Xalan-java version XSLT processor.

What is SVG?

SVG is a powerful language for describing two-dimensional vector and mixed vector/raster graphics in XML. It is defined best perhaps by W3C as

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.

The SVG 1.0 specification was released in September 2000 as a Web standard (a W3C Recommendation). The specification defines...

NOTE: All illustrations and photos have been removed from this article.



More articles from XML Journal
Building Web Services with Java: Making Sense of XML, SOAP, WSDL, and ..., February 01, 2002
Updated DocExpress adds XML links. (XML News).(Brief Article)(Product ..., February 01, 2002
Schema-based spec for business reporting finalized. (XML News).(Brief ..., February 01, 2002
BusinessObjects Developer Suite 5.5 unveiled. (XML News).(Brief Articl..., February 01, 2002
Sun introduces Java XML pack. (XML News).(Brief Article)(Product Annou..., February 01, 2002

Looking for additional articles?
Search our database of over 3 million articles.

Looking for more in-depth information on this industry?
Search our complete database of Industry & Market reports by text, subject, publication name or publication date.

About Goliath
Whether you're looking for sales prospects, competitive information, company analysis or best practices in managing your organization, Goliath can help you meet your business needs.

Our extensive business information databases empower business professionals with both the breadth and depth of credible, authoritative information they need to support their business goals. Whether it be strategic planning, sales prospecting, company research or defining management best practices - Goliath is your leading source for accurate information.