Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.

Similar presentations


Presentation on theme: "Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL."— Presentation transcript:

1 Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL

2 Advanced Internet Technologies 2 Objectives Create simple XML/XSL Web Pages. Understand what an Xpath is and how to use it. Use the tag to extract and display XML data. Use the tag to make Web content dynamic.

3 Advanced Internet Technologies 3 Objectives (cont.) Use the tag to display XML data repetitively. Use the tag for conditional XML data processing.

4 Advanced Internet Technologies 4 XSL Basics XSL stands for XML Stylesheet Language. XSL was designed to be a companion technology to XML.

5 Advanced Internet Technologies 5 Hello World—Again XSL documents are called stylesheets. The purpose of XSL stylesheets is to define how XML data should be displayed in a Web browser.

6 Advanced Internet Technologies 6 Hello World—Again (cont.) The XSL stylesheet for a particular XML document is identified by an XML directive tag.

7 Advanced Internet Technologies 7 Hello World—Again (cont.) All XSL stylesheets must include an tag and an tag. The tag identifies the XML namespace to use. The tag identifies the root node of the corresponding XML document.

8 Advanced Internet Technologies 8 XSL Transformations Combining an XML document with an XSL stylesheet is called transforming it. The resulting Web page is called an XML Stylesheet Language Transformation (XSLT). The tag extracts a data value from an XML file and displays it.

9 Advanced Internet Technologies 9 Understanding Xpaths An Xpath is a notational convention used to identify a particular data element in an XML document. Xpaths can be absolute or relative.

10 Advanced Internet Technologies 10 Text Strings in XSL Placing arbitrary text strings in XSL stylesheets can cause syntax errors. Static text strings should be enclosed within and tags. Hello XSL World!

11 Advanced Internet Technologies 11 XSL Tag Attributes Static XSL tag attributes must follow the same syntax rules as XML and XHTML tag attributes. XSL allows tag attributes to be added dynamically with the tag. Dynamic attribute values can be extracted and set with the tag.

12 Advanced Internet Technologies 12 XSL Conditional Tags All programming languages include “if” statements. XSL supports conditional processing with the tag. The condition is specified in the test attribute of the tag. tags can determine whether a particular XML data element is present or not.

13 Advanced Internet Technologies 13 Summary You created simple XML/XSL Web pages. You understand what an Xpath is and how to use it. You used the tag to extract and display XML data. You used the tag to make Web content dynamic.

14 Advanced Internet Technologies 14 Summary (cont.) You used the tag to display XML data repetitively. You used the tag for conditional XML data processing.


Download ppt "Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL."

Similar presentations


Ads by Google