| Lesson 10: Write XSLT to Format XML  | 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 |
| 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. |
No comments:
Post a Comment