Presentation is loading. Please wait.

Presentation is loading. Please wait.

Multimedia Seminar XSLT Tobias Naumann. MM Seminar - XSLT2 Structure What is XSLT? Design and Concepts Practical use Examples.

Similar presentations


Presentation on theme: "Multimedia Seminar XSLT Tobias Naumann. MM Seminar - XSLT2 Structure What is XSLT? Design and Concepts Practical use Examples."— Presentation transcript:

1 Multimedia Seminar XSLT Tobias Naumann

2 MM Seminar - XSLT2 Structure What is XSLT? Design and Concepts Practical use Examples

3 What is XSLT? Popularity of XML Alternative Interfaces: Document Object Model (DOM) Simple API for XML Processing (SAX). Require knowledge of these Languages XSLT as simplification

4 What is XSLT? One of 3 parts of XSL XSLT XPath XSL-FO (XSL Formatting Objects)

5 What is XSLT? Implemented in XML, XML Syntax Transformation in any output file format Developed by James Clark (XSLT 1.0, XSLT 1.1) At the moment version 2.0 (Michael Kay )

6 MM Seminar - XSLT6 Structure What is XSLT? Design and Concepts Practical use Examples

7 Design and Concepts XSLT Program = Stylesheet XSLT Stylesheets using XML syntax Parts of the stylesheet = Templates Templates describe the rules how to transform a source document into the target format

8 Design and Concepts XSLT free of side effects (functional language) Iteration and Recursion XSLT based on Pattern Matching XSLT and XPath since 1999 (Version 1.0) official standards of the W3C

9 Design and Concepts XPath: Referencing parts of XML documents Tree structure Relative und absolute reference to nodes possible

10 Design and Concepts Illustration: N1 N2 N4 N5

11 Design and Concepts

12 MM Seminar - XSLT12 Structure What is XSLT? Design and Concepts Practical use Examples

13 Practical use Webservice for stock exchange in XML One document for different target platforms Variable designs Exchange of business documents

14 MM Seminar - XSLT14 Structure What is XSLT? Design and Concepts Practical use Examples

15 Functioning of XSLT Processors: read an elemente (actual Context) search matching template in stylesheet If none is found, use standard template Process data with rules of template Read next elemente Repeat until no elements left

16 Examples Hallo Welt! Beispiel Hallo Welt!

17 Hallo Welt! Greeting:

18 Examples output: Hallo Welt! Greeting: Hallo Welt!

19 Examples

20 Examples, and (Kein Titel)

21 Examples Iteration with

22 Examples and x = y =

23 XSLT Processors Xalan, Apache Project Saxon, Java XSL Prozessor XT, by James Clark Sablotron, XML and XSLT Toolkit Oracle Micrososft XSLT Tools

24 End… Questions? ? ? ? ? ? ?


Download ppt "Multimedia Seminar XSLT Tobias Naumann. MM Seminar - XSLT2 Structure What is XSLT? Design and Concepts Practical use Examples."

Similar presentations


Ads by Google