Tag Archives: XSLT

Training XSLT 2.0 and XPath 2.0 – 3 days

Class overview :

This XSLT 2.0 training class teaches developers how to us XPath 2.0 and XSLT 2.0 to transform XML documents into HTML, plain text and other XML formats.

Class goals :

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

Content of Training XSLT 2.0 and XPath 2.0

Class Outline

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

Onze voordelen :

  • Type of training: Inter-company, intra-company and individual
  • 100% flexible & personalised training : You choose the place, the dates and the training program
  • Offer request : Response within 24 hours
  • 50% discount for SME’s from Brussels-Capital Region
  • Free parking, lunch & drinks
  • Free use of our Digital Competence Centre: Manuals, courses, exercises, …

Training Transforming XML using XSLT Style Sheets – 2 days

Class overview :

XML has rapidly become a de-facto standard for exchanging data between applications and organisations. The growth of XML has led to the emergence of XPath and XSLT as standard ways of accessing and transforming content in an XML document.

Class goals :

After completing this course, delegates will be able to:

  • locate content in an XML document using XPath
  • write XSLT style sheets to transform XML documents
  • apply XSLT style sheets statically or dynamically to XML documents
  • generate new XML content using XSLT
  • perform repetition and conditional logic in an XSLT style sheet
  • sort documents, and control textual and numeric output
  • define and use named templates
  • parameterise template rules and style sheets
  • coordinate multiple XML documents using style sheets
  • reuse, customise, and extend XSLT style sheets

Content of Transforming XML using XSLT Style Sheets

XSLT and XPath Introduction

  • Recap of XML document structure
  • What is XPath?
  • What is XSLT?
  • Why are XSLT and XPath useful?
  • Transforming XML documents using XPath and XSLT
  • Generating XML and/or HTML output
  • Industry support for XPath and XSLT

Selecting XML Nodes using XPath

  • XPath nodes and properties
  • Axes, node tests, and predicates
  • Location paths and location steps
  • Accessing elements and attributes
  • Accessing other node types
  • Filtering nodes using predicates
  • Using XPath operators and functions

Writing and Applying XSLT Style Sheets

  • XSLT style sheet structure
  • Defining template rules
  • Obtaining node values
  • Invoking template rules
  • Literal result elements
  • Applying a style sheet to an XML document
  • Applying a style sheet dynamically using DOM

The XSLT Programming Language

  • Performing iteration
  • Making decisions
  • Creating named templates
  • Calling named templates
  • Defining and using variables
  • Defining and using parameters

Fine-Tuning XSLT Output

  • Formatting numbers
  • Sorting the result tree
  • Controlling whitespace
  • Character encodings
  • Specifying XML, HTML, and plain text output methods

Mapping XML dialects with XSLT

  • Creating new XML content with XSLT
  • Creating elements
  • Creating attributes
  • Namespace issues
  • Generating and formatting text content
  • Creating numeric output
  • Creating other XML content

Managing multiple XML documents with XSLT

  • Accessing multiple XML documents
  • Cross-referencing data using keys
  • Accessing XML data with keys
  • Generating cross references in XML documents

Producing Scalable Solutions with XSLT

  • Including style sheets
  • Importing style sheets
  • Overriding imported template rules
  • Invoking overridden template rules
  • Specifying template priorities

The Way Ahead

  • Extension elements
  • Extension functions
  • Forwards-compatible processing
  • Fallback processing
  • The role of XPath in XPointer
  • Likely impact of the XML Schema Definition Language (XSLD)
Transforming XML using XSLT Style Sheets
Training Transforming XML using XSLT Style Sheets

Onze voordelen :

  • Type of training: Inter-company, intra-company and individual
  • 100% flexible & personalised training : You choose the place, the dates and the training program
  • Offer request : Response within 24 hours
  • 50% discount for SME’s from Brussels-Capital Region
  • Free parking, lunch & drinks
  • Free use of our Digital Competence Centre: Manuals, courses, exercises, …