001114-1

While HTML contains elements to describe the layout of information on a display, XML contains elements to describe the information in a logical way. How, then, can a web browser be instructed how to present and layout the XML information?

Answer

You connect the XML document to a style sheet. Two common style sheet languages are Cascading Style Sheets (CSS) (3), which provide ways of specifying properties of the XML elements, such as position, font, etc. (1). and Extensible Style Language Transformations (XSLT) (1), which allows the specification of transformation of the information in the XML document to a suitable format for display to users (1), such as addition of text or HTML code not included in the XML document itself.

An example of an instruction in a XML document to use a CSS style sheet when displaying it:

<?XML:stylesheet type="text/css" href="style-sheet.css" ?>

List of exam questions