HOME

XSL Tutorial
XSL HOME
XSL Introduction
XSL Languages
XSL Browsers
XSL Transform
XSL template
XSL value-of
XSL for-each
XSL sort
XSL if
XSL choose
XSL apply-templates
XSL on the Client
XSL on the Server

References
XSLT Elements
Download XMLSpy here
Please visit our sponsors !

Introduction to XSL

prev next

XSL (eXtensible Stylesheet Language) is a language for expressing style sheets. It consists of three parts: XSLT, XPath, and XSL Formatting Objects.


CSS - The Style Sheet of HTML

Because HTML uses predefined tags, the meanings of these tags are well understood: The <p> element defines a paragraph and the <h1> element defines a heading; and the browser knows how to display them.

Adding styles to HTML elements with CSS is simple. Telling a browser to display each element in a special font or color, is easy to do and easy for a browser to understand. 


XSL - The Style Sheet of XML

Because XML does not use predefined tags (we can use any tags we want), the meanings of these tags are not understood: <table> could mean an HTML table, a piece of furniture, or something else. A browser does not know how to display an XML document.

Therefore there must be something in addition to the XML document that describes how the document should be displayed; and that is XSL!


XSL - More than a Style Sheet

XSL consists of three parts:

  • XSLT (a language for transforming XML documents)
  • XPath (a language for defining parts of an XML document)
  • XSL Formatting Objects (a vocabulary for formatting XML documents)

If you don't understand the meaning of this, think of XSL as a language that can transform XML into XHTML, a language that can filter and sort XML data, a language that can define parts of an XML document, a language that can format XML data based on the data value, like displaying negative numbers in red, and a language that can output XML data to different devices, like screen, paper or voice. 


XSL is a W3C Standard

XSL is a standard recommended by the World Wide Web Consortium.

The first two parts of the language (XSLT and XPath) became a W3C Recommendation in November 1999. The full XSL Recommendation including XSL formatting became a W3C Recommendation in October 2001.

Click here to read more about the W3C XSL activities.


prev next

Jump to: Top of Page or HOME or Printer Friendly Printer friendly page


Search W3Schools:


What Others Say About Us

Does the world know about us? Check out these places:

Dogpile Alta Vista MSN Google Excite Lycos Yahoo Ask Jeeves


We Help You For Free. You Can Help Us!


W3Schools is for training only. We do not warrant its correctness or its fitness for use. The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2002 by Refsnes Data. All Rights Reserved


Validate How we converted to XHTML Validate

IISProtect
Password Protect
Your Web Pages



Your own Web Site?

Read W3Schools
Hosting Tutorial



$15 Domain Name
Registration
Save $20 / year!



Advertise
at W3Schools

Only 0.5 CPM



SELECTED LINKS

University Online
Master Degree
Bachelor Degree


Web Software

The Future of
Web Development


Jobs and Careers

Web Security
Web Statistics
Web Standards


PARTNERS

W3Schools
TopXML
VisualBuilder
XMLPitstop
DevelopersDex
DevGuru
Programmers Heaven
The Code Project
Tek Tips Forum
ZVON.ORG
TopXML Search