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
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
The xsl:group Element
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
<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
Tying It All Together
Workshop: Sharing data and transforming it for the Web
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, …
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)
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, …