Friday, 5 August 2011

XML 101: Lesson 10: Write XSLT to Format XML

If you can't see this email, click here

About.com


Lesson 10: Write XSLT to Format XML
Jennifer Kyrnin
From Jennifer Kyrnin, your Guide to Web Design / HTML
Formatting XML is a critical step in creating a platform for your data. Without it, the XML is meaningless. One way to accomplish this task is with XSLT. Style sheets take your design and present it on a web page. XSLT is a style sheet and part of the XSL family of languages. XSLT transforms XML into a viable markup language, such as XHTML.
Click on the Link Below to See the Class Online
Lesson 10: Write XSLT to Format XML - Transforming XML

Things You Need:
Text Editor
A basic text editor like Notepad for Windows or TextEdit for Macintosh.

Learn XSLT
How to Transform XML
This is the first in a series of tutorials that will teach you the basics of the XSLT language. The first section explains how to build a declaration statement for your XSLT file and define the namespace. One fundamental difference between XML and XSL languages is the namespace and static root element.

Setting Up an XSLT Output Stream
The goal of XSLT is to create a stream that presents the formatting rules for the XML data. This tutorial covers how the output stream works and how to build your formatting instructions.

How to Use the Value-of Element in XSLT
Value-of is a component of XSLT that uses XPath to locate the data you want to display from the core XML file. It tells the XML parser where to look for the information.

How to Use the For-each Element in XSLT
For-each is the part of XSLT that records XML data to the output stream. This article works you through the steps to apply for-each and explains the XPath syntax. For-each is a filtering system that delivers the data.

How to Filter XML Data in XSLT
There is more to XSLT than ordinary formatting. With this language, you control not only the appearance of the page, but the information that displays, as well. XSLT has 'if' statements, sorting capability and item selection. This tutorial explains how to filter the XSLT output stream to generate the information your visitor needs to see.

Homework
Homework for Lesson 10
Open an XML practice file , such as the music catalog, and write corresponding XSLT code. Try to work all the components of XSLT, such as sorting, into your formatting document. Pay specific attention to the syntax for XPath.

If you would like help with the homework, or want to discuss the class, you can do so in the HTML / XML Forum.

Get Lost Lessons
This is a self-paced class. This means that if you need more time than a week to study the lessons, that is fine. And if you finish the lessons before the next lesson is mailed to you, you may request it early.



This email is written by:
Jennifer Kyrnin
Web Design / HTML Guide
Email Me | My Blog | My Forum
 
Missing a lesson? Click here.

About U. is our collection of free online courses designed to help you learn a new skill, solve a problem, get something done, or just learn more about your world. Sign up now, and we will email you lessons on a daily or weekly basis.
You are receiving this email because you subscribed to the About.com 'XML 101' email. If you wish to unsubscribe, please click here.

About respects your privacy: Our Privacy Policy

Contact Information:
249 West 17th Street
New York, NY, 10011

© 2010 About.com
 

Advertisement

No comments:

Post a Comment