Download presentation
Presentation is loading. Please wait.
Published byErika Strickland Modified over 9 years ago
2
Module Road Map
3
Credit Categories Assignment 2 Credit Category 2 You are able to demonstrate how data may be filtered using Xpath You are able to demonstrate how an XSLT file may transform XML into another document format e.g. XHTML
4
Document Transformations Web Form (ASPX) HTML Form
5
The Structure of an XML Document - Trees and Nodes Need a good conceptual model of XML/XSLT Error reporting is poor Visual Studio debugger a big help
6
XML Tree Structure Viewed in the browser
7
Simple XSLT File (EXtensible Stylesheet Language Transformations)
8
Examples Title/LocalTitle 28 Days Later Title/IMDBrating 7.6 Title/Genres/Genre Action
9
xsl for each loop Notice how we reference the data
10
Keeping Track of the Context 28 Days Later 7.6 2002 Etc... Gives us
11
When the Context Changes Action Horror Sci-Fi Thriller. Gives us Losing track of the context is the source of most problems in XSLT!
12
Instructions and Literals Instruction(s) Literals Output document is a merging of the instructions and literals.
13
Templates Root template + others (Like sub main in C) (similar to a function)
14
Patterns The Root Pattern / Compare the two patterns below…
15
More Complex Patterns
16
Expressions Used to perform calculations on a node/data
17
Sorting Data in a Node The Key - a pattern that identifies the data The Order -may be ascending or descending.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.