Tuesday, March 16, 2010

Inclusion in XML,SVGA,CSS

Inclusion in XML

The XML specification does not prescribe or limit which graphics format you can use. It also does not provide a standard method to describe image inclusion. Work in progress at W3C on XLink and XPointer will add standard hyperlinking capabilities - including links to graphics - to XML. This work provides the same hyperlinking capabilities HTML users will be familiar with - simple, since ended links to embedded media and simple, single-ended hypermedia links - but also provides more advanced compound links, bidirectional links, and out of line links. This provides a standardised basis which XML languages can use for the actual linking part.

Scalable Vector Graphics (SVG)

SVG, a vector graphics format designed at W3C, written in XML and stylable with CSS, is starting to become a popular choice for including graphics in XML documents. It may be included either by linkage, or by textual inclusion in an XML document that uses a different namespace. Because SVG can itself include raster images such as JPEG and PNG, SVG can be used to add raster and mixed vector/raster graphics to XML documents. SVG uses XLink and XPointer to provide linking functionality.
SVG does not limit but does prescribe the formats that can be used. All conformant SVG implementations must support PNG and JPEG and SVG images. Other formats may also be supported by various implementations, but these two can be relied upon.

Background image, using CSS

Any XML element can (when displayed visually) be given a background image using Cascading Style Sheets (CSS). The background color can also be specified, and the image will composite onto the background color if it has transparent portions. This allows the same image to be re-used with different visuall presentations. The width and height of the image can be adjusted. It can repeat in the horizontal(x) direction, vertical (y) direction, both , or neither. The position of the image relative to the box taken up by the element can be adjusted.
CSS does not prescribe or limit which graphics format you can use.

No comments:

Post a Comment