26.01.2019 Views

XML Simplified

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7Module<br />

More on XSLT<br />

Module Overview<br />

Welcome to the module, More on XSLT. This module aims at giving a clear understanding on<br />

XPath, and identifying the various nodes of XPath. This module lists the different operators used<br />

with XPath and describes the various XPath expressions and functions. Finally, this module<br />

explains how to switch between styles and how to transform <strong>XML</strong> documents into HTML using<br />

XSLT.<br />

Concepts<br />

In this module, you will learn about:<br />

‣ ¾ XPath<br />

‣ ¾ XPath Expressions and Functions<br />

‣ ¾ Working with different styles<br />

7.1 XPath<br />

In this first lesson, XPath, you will learn to:<br />

‣ ¾ Define and describe XPath.<br />

‣ ¾ Identify nodes according to XPath.<br />

‣ ¾ List operators used with XPath.<br />

‣ ¾ Describe the types of matching.<br />

7.1.1 XPath<br />

XPath can be thought of as a query language like SQL. However, rather than extracting information from<br />

a database, it extracts information from an <strong>XML</strong> document. XPath is a language for retrieving information<br />

from a <strong>XML</strong> document. XPath is used to navigate through elements and attributes in an <strong>XML</strong> document.<br />

Thus, XPath allows identifying parts of an <strong>XML</strong> document.<br />

<strong>XML</strong> <strong>Simplified</strong><br />

Version 1.0 © Aptech Limited

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!