Mastering XSLT 2.0 and XPath 2.0

84 Ratings

Course Number: XML-122
Duration: 3 days (19.5 hours)
Format: Live, hands-on

XSLT 2.0 Training Overview

Accelebrate's XSLT 2.0 training class teaches developers how to use XPath 2.0 and XSLT 2.0 to transform XML documents into other XML document formats, XHTML, and plain text.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Use XPath 2.0 to access XML elements and attributes
  • Loop through XML elements
  • Use conditionals in XSLT 2.0
  • Create and call templates
  • Work with multiple XSLTs
  • Reference external XML documents via document()
  • Master grouping results with xsl:group (similar to grouping in SQL queries)
  • Build user-defined functions with xsl:function
  • Specify data relationships with keys
  • Work with namespaces
  • Apply advanced XSLT

Prerequisites

Prior knowledge of core XML tagging syntax, as taught on the first day of Accelebrate's Core XML training class or acquired through experience, is required. Prior knowledge of XML Schema is helpful, but we can adapt the class to any level of prior XML Schema familiarity.

Outline

Expand All | Collapse All

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
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
XPath Language Basics
  • XPath Functions
  • XPath Operators
  • XPath Data Types
  • XPath Expressions
    • for Expressions
    • if-then-else Expressions
Flow Control in XSLT
  • Looping in XSLT
  • Sorting with XSLT
  • Looping and Sorting
  • Conditions with XSLT
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
Multiple XML and XSLT Documents
  • Including XSLTs
  • Importing XSLTs
  • Conflict resolution
  • The document() Function
  • The collection() Function
  • Multiple Result Documents
Grouping
  • Grouping by Value
  • Grouping Adjacent Elements
  • Grouping by Starting and Ending Elements
Regular Expressions
  • Regular Expression Syntax in XSLT
  • The xsl:analyze-string Element
  • Built-in Functions that Use Regular Expressions
User-Defined Functions
  • The xsl:function Element
  • Function Names and Parameters
  • Calling User-Defined Functions
Advanced XSLT Techniques
  • Working with Namespaces
    • What Are Namespaces?
    • Declaring Namespaces in XSLT
    • Namespace Declarations and XPath Expressions
  • Working with Keys
    • Key Basics
    • The generate-id() Function
  • Working with Numbered Lists
    • The position() function
    • xsl:number
  • Outputting Processing Instructions
  • Copying Nodes
    • xsl:copy
    • xsl:copy-of
Tying It All Together
  • Workshop: Sharing data and transforming it for the Web
Conclusion

Training Materials

All XSLT training students receive comprehensive courseware.

Software Requirements

  • The XML/XSLT editing and transformation environment that your developers will be using after class. If none has been selected, we default to using XMLSpy, for which we can provide an academic license for the duration of the training.


Related Topics

Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan