Course : Developing with XSL-T and XSL-FO

generate XML, HTML, graphics and pdf documents

Practical course - 4d - 28h00 - Ref. LSX
Price : 2580 € E.T.

Developing with XSL-T and XSL-FO

generate XML, HTML, graphics and pdf documents



You will master the XSL-T and XPath languages. You will learn XSL-FO for PDF document generation and SVG for image and interface generation. Participants will set up a complete environment for the automated production of documents containing both text and images.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. LSX
  4d - 28h00
2580 € E.T.




You will master the XSL-T and XPath languages. You will learn XSL-FO for PDF document generation and SVG for image and interface generation. Participants will set up a complete environment for the automated production of documents containing both text and images.


Teaching objectives
At the end of the training, the participant will be able to:
Creating style sheets using XSL-T and XPath
Data manipulation and navigation in XML documents
Generate PDF documents using XSL-FO
Generate images and graphical interfaces using the SVG format

Intended audience
Application designers and developers, software architects, project managers.

Prerequisites
Basic knowledge of XML and HTML syntax.

Course schedule

1
Introduction to the context of XSL and XPath

  • XML technology requirements.
  • CSS technology for presentation, CSS limitations.
  • Introduction to XSL, XSL-T, XSL-FO and SVG.
  • Introduction to Xpath. Basic principles and mechanisms.
  • XML parser and XSL processor. Web browser support.
  • Implementation of XSL technologies.

2
The XPath query language

  • XPath expressions. Querying an XML document.
  • Research areas and vectors.
  • Review of a few simple expressions.
  • Select elements/nodes, node sets and attributes in an XML tree.
  • Location operator.
  • Equation of equality and relation, Boolean operators. Numerical operations.
  • Standard functions and processor extensions.
Hands-on work
Writing and testing XPath expressions.

3
The transformation language: XSL-T

  • XSL-T stylesheet structure, XSL-T processor processing.
  • Namespaces and root XSL elements.
  • Output formats: XML, HTML, X-HTML or text vocabularies.
  • Use XPath expressions.
  • Knots and sets of knots.
  • Processing model: templates.
  • XSL-T syntax, data types, control structures, etc.
  • Notions of variables and parameters.
  • Element and attribute generation.
  • Declarative or mandatory invocation of processing.
  • Element and content retrieval.
  • Analysis of XSL-T processor behavior.
  • Optimization of node searches.
  • Error handling.
Hands-on work
Composition of different types of XSL-T stylesheets.

4
XSL-T, advanced features

  • Write functions: simple and recursive calls.
  • Modular structure of style sheets.
  • Design patterns: Fill-in-the-blank, Navigational, Rule-based, Computational.
  • Import and include style sheets with argument passing.
  • Creation of reusable libraries.
  • Modularity and heritage.
  • Transformations based on multiple sources.
  • Generate groups of documents.
  • Specific features of certain processors.
  • Work on heterogeneous namespaces.
  • XSL dynamization of office documents: Microsoft Office (Open XML), Open Office (Open Document).
Hands-on work
Creation of modular, nested style sheets, with multiple input structures and generation of multiple output documents. Creation of MS Office documents using XSL.

5
The developer's toolbox

  • Launch command-line transformations.
  • Use of various processors (XT, Saxon, Xerces, MSXml...).
  • Transformation scripting with Ant.
  • Website management.
Hands-on work
Implementation of an XML-based Web site management environment.

6
XSL-T 2.0 and 3.0, X-PATH 2.0 and 3.0

  • New features: functions, expressions, operations, sorting, fallbacks and error handling, etc.
  • New data types supported.
  • Differences in treatment.
  • Create a result tree, a sequence of nodes or values.
  • XPath queries with regular expressions.
  • Numerical functions and operators.
  • String functions.
  • Functions and operations on dates.
Hands-on work
Manipulate and navigate XML trees.

7
SVG for graphic interfaces and image creation

  • SVG, Scalable Vector Graphics. The challenges of vector languages. Advantages of SVG over Flash.
  • Server-side and client-side use.
  • Editing and user environments: browsers...
  • Document structure.
  • Coordinate systems and dimensioning. Coordinate system transformation.
  • Basic shapes. Styles. Curves and paths. Patterns and gradients. Text and internationalization.
  • Masking and cutting.
  • Filtering.
  • Animation, interaction and scripts.
Hands-on work
Creation of style sheets to generate SVG documents. Generate HTML pages containing graphs.

8
XSL-FO for paper document generation

  • XSL-FO, Formatting Objects.
  • XSL-FO requirements and objectives. Introduction to the language.
  • Available solutions and implementations.
  • Example from the Apache.org FOP project.
  • Initialization, definition of page templates.
  • Content area, region dimensions, page sequences.
  • Inclusion of graphics in SVG format.
  • Result generation.
Hands-on work
Creation of style sheets combining XSL-T and XSL-FO to generate PDF output. Generate a report containing images in SVG format.


Publication date : 08/14/2024



This programme is an original creation, developed by the teaching teams at ORSYS Formation. Any reproduction, representation, adaptation or use, in whole or in part, without the prior written authorisation of ORSYS, is strictly prohibited. ORSYS reserves the right to take any action necessary to protect its intellectual property rights.


This programme is an original creation, developed by the teaching teams at ORSYS Formation. Any reproduction, representation, adaptation or use, in whole or in part, without the prior written authorisation of ORSYS, is strictly prohibited. ORSYS reserves the right to take any action necessary to protect its intellectual property rights.