Home About Courses Schedule Services Webinars Contact Search

Introduction to XPath 2.0 and XSLT 2.0

SEE SCHEDULE

Duration: 3 Days

Method: Instructor led, Hands-on workshops

Price: $1625.00

Course Code: XM1022


Audience

This course is designed for experienced application developers who wish to learn the details of XSLT.

Description

If you know XML and want to discover how to write XML documents whose function it is to transform an XML document into another document such as HTML or XML, this is the course for you!

You will learn how to use XPath and XSLT to transform XML documents into HTML, plain text and other XML formats.

Objectives

Upon successful completion of this course, the student will be able to:

  • Learn to use XPath to access XML elements and attributes
  • Learn to loop through XML elements
  • Learn to use conditionals in XSLT
  • Learn to create and call templates
  • Learn to work with multiple XSLTs
  • Learn to reference external XML documents

Prerequisites

Basic XML

Topics

  • I. XSLT Basics
    • eXtensible Stylesheet Language
    • An XSLT Stylesheet
      • xsl:template
      • xsl:value-of
      • Whitespace and xsl:text
    • Output Types
      • Text
      • XML
    • HTML and XHTML
    • XSLT Elements and Attributes
      • xsl:element
      • xsl:attribute
      • Attributes and Curly Brackets
  • II. XPath Path Expressions
    • XPath in XSLT
    • XPath Expression
    • XPath Terminology
      • Context Node
      • Current Node
      • Context Size
      • Proximity Position
    • Location Paths
    • Axis
    • Node Test
    • Predicate
    • Accessing Nodes
    • Abbreviated Syntax
  • III. XPath Language Basics
    • XPath Functions
    • XPath Operators
    • XPath Data Types
    • XPath Expressions
      • for Expressions
      • if-then-else Expressions
  • IV. Flow Control in XSLT
    • Looping in XSLT
    • Sorting with XSLT
    • Looping and Sorting
    • Conditions with XSLT
  • V. XSLT Templates, Parameters and Variables
    • xsl:apply-templates
    • xsl:call-template
    • Passing Parameters
    • Removing Content
    • Template Modes
    • Template Priority
      • Default Priorities
      • Assigning Priorities
    • XSLT Variables
  • VI. Multiple XML and XSLT Documents
    • Including XSLTs
    • Importing XSLTs
    • Conflict resolution
    • The document() Function
    • The collection() Function
    • Multiple Result Documents
  • VII. Grouping
    • The xsl:group Element
    • Grouping by Value
    • Grouping Adjacent Elements
    • Grouping by Starting and Ending Elements
  • VIII. Regular Expressions
    • Regular Expression Syntax in XSLT
    • The xsl:analyze-string Element
    • Built-in Functions that Use Regular Expressions
  • IX. User-Defined Functions
    • The xsl:function Element
    • Function Names and Parameters
    • Calling User-Defined Functions
  • X. Advanced XSLT Techniques
    • Working with Namespaces
    • – What Are Namespaces?
    • – Declaring Namespaces in XSLT
    • – Namespace Declarations and XPath Expressions
    • Working with Keys
      • Key Basics
    •  <xsl:key/>
    •  The key() Function
    •  Improving Performance with Keys
    •  Cross References
    •  The Key Way
      • The generate-id() Function
    • Working with Numbered Lists
      • The position() function
      • .xsl:number
    • Outputting Processing Instructions
      • Copying Nodes
    •  xsl:copy
    •  .xsl:copy-of
  • XI. Tying It All Together
    • Workshop: Sharing data and transforming it for the Web